PDA

View Full Version : applescript for ipod


ssev
10-15-2004, 12:18 PM
Im very new a writing scripts and what I want to do is create a applescript that will update the ipod with itunes and then sync with iSync and then eject the ipod so far I have the update iTunes and the eject, I can't find out how to make the iSync program sync. any help. I know that the shortcut keys to sync are "command-t" would that help?

tell application "iTunes"
try
update "name of ipod"
end try
end tell
tell application "iSync"
try
activate
***THIS IS WHERE I DON"T KNOW HOW TO MAKE iSYNC SYNC***
end try
end tell
delay 8
tell application "Finder" to eject "name of ipod"
display dialog "The iPod has been ejected." buttons {"Ô"}

davewalcott
10-15-2004, 12:31 PM
This should do it:

tell application "iSync"
try
activate
synchronize
end try
end tell

ssev
10-15-2004, 12:41 PM
holy crap thanks a bunch it worked, i tried that before but my spelling was off... yeap Thanks again