PDA

View Full Version : Sync with iCal via AppleScript


The Limey
07-21-2007, 06:12 AM
I can't find this in the dictionary, which rather surprised me.

Anybody know if this is planned at all? And if not, would scripting it via GUI scripting be a bad idea?

Netzach
12-19-2007, 05:31 AM
I'm trying to do the same thing, I'm not that good at AS, so this is all I can figure out from the dictionary:

tell application "OmniFocus" to ical_synchronize

What am I doing wrong?
It looks in the dictionary that I'm supposed to refer to the default document, how do I do that?

bokonon38
12-19-2007, 07:19 AM
go this way:

tell front document of application "OmniFocus"

ical_synchronize

end tell

or the simple way:

tell front document of application "OmniFocus" to ical_synchronize