PDA

View Full Version : Change in OF Scripting Interface


curt.clifton
09-06-2007, 05:20 AM
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
09-06-2007, 08: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
09-06-2007, 08: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
09-06-2007, 04:00 PM
Thanks for the confirmation, Tim.

curt.clifton
09-06-2007, 07:35 PM
The problems with my scripts are fixed. Updates available here (http://www.rose-hulman.edu/~clifton/software.html).