PDA

View Full Version : Sync with iCal via AppleScript


The Limey
2007-07-21, 05: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
2007-12-19, 04: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
2007-12-19, 06: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