Sync Devices that quits iSync when done

General discussions about LaunchBar
Post Reply

Sync Devices that quits iSync when done

Post by drbrain » Mon Dec 11, 2006 7:58 am

Code: Select all

tell application "iSync" to synchronize
set isSyncing to true
repeat while isSyncing
   delay 10
   tell application "iSync"
      set isSyncing to syncing
   end tell
end repeat
tell application "iSync" to quit

I don't want the app hanging around when its done, so I added to the default 'Sync Devices' script.

Objective Development
Objective Development
Posts: 648
Joined: Thu Nov 09, 2006 6:30 pm

Post by norbert » Mon Dec 11, 2006 6:44 pm

Nice idea, thanks. However, when you run this script via LaunchBar it will block LaunchBar until the script has finished execution. To prevent this you can open the script with Shift-Return to run it in background.

Post Reply