The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   AppleScript to sync with MobileMe (http://forums.omnigroup.com/showthread.php?t=8684)

AquaMethod 2008-07-14 04:30 PM

AppleScript to sync with MobileMe
 
I'm writing an AppleScript to make sure everything is synced to my iPhone before I leave the house--it downloads new podcasts and does an iTunes sync. I'd like to have it also sync my OmniFocus data with MobileMe before I go, so that I'm certain I'll have my latest changes on my iPhone.

I don't know a lot about AppleScript, but from what I can tell there doesn't seem to be an easy way to do it. I've got some really rough scripting to click a menu bar item, but I'd like to know if there's a better way to do it. (And does anyone know if there's a way to tell when iTunes has finished syncing?)

[code]tell application "OmniFocus"
activate window 1
end tell

tell application "System Events"
tell process "OmniFocus"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "Synchronize with Server"
end tell
end tell
end tell
end tell
end tell[/code]

AquaMethod 2008-08-13 10:10 AM

Sorry to double post, but I just wanted to point out that it looks like OmniFocus has a nice, clean way to sync with AppleScript now. Thanks guys!


All times are GMT -8. The time now is 03:45 PM.

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