Debinaize It

September 12, 2008

MacOS X: iSync AppleScript

Filed under: MacOSX, Scripts — zaher14 @ 10:57 am
I wanted to run iSync Priodically everyday so that my mobile and MacBook get synced regularly, this is what I found after some googling:

tell application “System Events” to set isync_running to (name of processes) contains “iSync”

<code><br />tell application "iSync"<br />  activate<br />  if isync_running is not true then<br />      tell application "System Events" to set visible of process "iSync" to false<br />  end if<br />  synchronize<br /><br />  repeat until syncing is false<br />      delay 1<br />  end repeat<br /><br />  if sync status is 2 then<br />      if isync_running is false then<br />          quit<br />      end if<br />  else<br />      activate<br />  end if<br />end tell<br /></code>

save the file with a .scpt extension and add the script in iCal to run every day.

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.