The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   How to make OmniFocus work with File Maker Pro? (http://forums.omnigroup.com/showthread.php?t=24946)

Indyprint 2012-07-20 02:51 PM

How to make OmniFocus work with File Maker Pro?
 
How anyone know how to enable my Filemaker database interface with OmniFocus?


Thanks!

RobTrew 2012-07-21 06:08 AM

You can read the OF cache through SQLite SQL, but don't try writing to it.

Indyprint 2012-07-21 11:15 AM

Thanks...though I'm not sure I follow. Is that an app a plugin or some other way of interfacing FMP w/ OmniFocus? Thanks!

RobTrew 2012-07-21 02:58 PM

[I]sqlite3[/I] is a standard command in OS X installations.

Probably only an option if you're familiar with (or happy to learn) some SQL.

For the relevant dialect of SQL: [url]http://www.sqlite.org/[/url]

Google searches for
[INDENT][I]filemaker sqlite3 | sqlite[/I][/INDENT]
will lead you to examples of the options for reading from the FileMaker end.

(as I mentioned, writing to the cache is not an option)

You can track down the location of the OmniFocus sqlite cache by running code like:

[CODE]GetCachePath()


on GetCachePath()
set strDefaultFolder to "~/Library/Caches/com.omnigroup.OmniFocus"
set strAppStoreFolder to "~/Library/Caches/com.omnigroup.OmniFocus.MacAppStore"
set strDBName to "OmniFocusDatabase2"

set strCacheFolder to strDefaultFolder
if (do shell script ("test -d " & strCacheFolder & "; echo $?")) ≠ "0" then
set strCacheFolder to strAppStoreFolder
if (do shell script ("test -d " & strCacheFolder & "; echo $?")) ≠ "0" then return ""
end if

return strCacheFolder & "/" & strDBName
end GetCachePath[/CODE]

RobTrew 2012-07-21 03:16 PM

General pattern, from the command line:

[CODE]OFOC=$(osascript -e 'tell application "Finder" to get id of application file id "OFOC"')
sqlite3 ~/Library/Caches/$OFOC/OmniFocusDatabase2 'select count(*) from task where projectInfo is null and childrenCount=0'[/CODE]


All times are GMT -8. The time now is 08:45 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.