The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Document version from AppleScript (http://forums.omnigroup.com/showthread.php?t=13058)

dmcg 2009-07-16 01:39 AM

Document version from AppleScript
 
Hi

Now that I have my tasks to iCal events script running every hour, it occurs to me that I could avoid traversing all tasks if nothing has changed since the last time.

I guess that with all the sync code that there is the concept of current version for the document. Is there any access to this via AppleScript?

Cheers

Duncan McGregor

RobTrew 2009-07-16 06:03 AM

As far as I can see, the [I]modified[/I] property of an Omnifocus 'document' (really a database) always seems to return [I]false[/I]

[CODE]tell application "OmniFocus"
display dialog (modified of default document) as string
end tell[/CODE]

dmcg 2009-07-19 05:10 AM

I'm guessing that's on account of changes being automatically saved. I could look at the last modified on the db file I suppose.

RobTrew 2009-07-19 11:03 PM

[QUOTE=dmcg;62941]I could look at the last modified on the db file I suppose.[/QUOTE]

Possibly - but remember that OmniFocus.ofocus is not really a 'file' - it's a package folder containing potentially thousands of different files.


All times are GMT -8. The time now is 01:31 PM.

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