The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Change in OF Scripting Interface (http://forums.omnigroup.com/showthread.php?t=4782)

curt.clifton 2007-09-06 04:20 AM

Change in OF Scripting Interface
 
A recent build changed the OmniFocus AppleScript dictionary in a backward-incompatible way.

Scripts that traverse trees and extract values are broken. So far, it appears that the "value" property on trees changed somehow.

I'll post updated scripts as soon as I am able, but it won't be immediately.

Tim Wood 2007-09-06 07:07 AM

Bah; silly AppleScript. This is probably because I added the style scripting support (which has 'value' terminology). Our tree scripting support has 'value' too, but I forgot to align the 4-character codes, so AppleScript is probably confused.

This will still mean compiled scripts will be incompatible, non-compiled .applescript files will be more robust in the face of changes like this.

Tim Wood 2007-09-06 07:21 AM

OK, I was temporarily confused by a svn conflict in my home working directory =)

'value' on 'tree' has changed to use the 4-character code 'valL' (which is what System Events uses) to match what the style scripting uses (since I *did* notice the re-used terminology before publishing this batch of changes).

But yes, this will break compiled scripts -- sorry for the trouble!

curt.clifton 2007-09-06 03:00 PM

Thanks for the confirmation, Tim.

curt.clifton 2007-09-06 06:35 PM

The problems with my scripts are fixed. Updates available [URL="http://www.rose-hulman.edu/~clifton/software.html"]here[/URL].


All times are GMT -8. The time now is 05:07 AM.

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