Various scripts on this board query the cache, and typically start with a property like:
AppStore-purchased copies of OmniFocus can not run these scripts without modification.
A possible modification might be something like the following (though this is not bullet-proof):
--
Code:
property pstrDBPath : "~/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2"
A possible modification might be something like the following (though this is not bullet-proof):
Code:
set pstrDBPath to 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
Last edited by RobTrew; 2011-06-30 at 03:52 AM..