The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Today's Posts

 
AppleScript to sync and then quit? Thread Tools Search this Thread Display Modes
Quote:
Originally Posted by luomat View Post
1. Is there a way to tell OmniFocus to "Sync and Then Quit" using AppleScript, and if so, how?
OmniFocus automatically waits for syncing to finish before quitting, so you the app to sync and then quit, and it will wait for the*sync to finish:

Code:
tell application "OmniFocus"
	synchronize
	quit
end tell
But presumably this is academic, since…

Quote:
2. Am I correct that if I choose 'Quit' from OmniFocus' menu, and it needs to sync first, it will attempt to do so before quitting?
Yes, if OmniFocus has any edits on the local device which it hasn't already synchronized (which it normally does within 2 minutes), it will automatically try to synchronize them before it exits.
 
Fantastic! Thanks for the info.
 
 





All times are GMT -8. The time now is 06:36 AM.


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