Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Use cron to automate iSync at non-standard intervals' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use cron to automate iSync at non-standard intervals
Authored by: lucidsystems on Jan 12, '12 02:03:37PM

Another update to the script from "TheWayOfTheGun".

This will only quit iSync after syncing if it was not running before the script is called.

set isync_status to do shell script "ps -A | grep -i /Applications/iSync | grep -v \"grep\" > /dev/null ; if [ $? != 0 ] ; then echo \"not running\" ; else echo \"running\" ; fi"
tell application "iSync"
if not syncing then exit repeat
end repeat
if isync_status is equal to "not running" then
end if
end tell

[ Reply to This | # ]