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


Click here to return to the 'how to do it with applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
how to do it with applescript
Authored by: netsmiley on Sep 21, '02 01:39:21PM
well, i poked around in applescript for a few minutes, and here's what i can figure. disclaimer: i don't have an iPod, so i could only kind of test this with a disk image... if anyone wants to send me an iPod, i'd be happy to test it further :p

tell application "Finder"
set theDisks to the name of every disk
repeat with i from 1 to the number of items in theDisks
set thisDisk to item i of theDisks
if disk thisDisk is local volume and disk thisDisk is ejectable then
if folder "iPod_Control" of disk thisDisk exists then
--display dialog thisDisk & " is the disk"
copy entire contents of folder "Calendars" of folder "Library"
¬ of home to folder "Calendars" of disk thisDisk
end if
end if
end repeat
end tell

(or you can download it from here if that looks too messy. if you copy&paste this, recombine the lines that start "copy entire contents" and "of home to" so they're one line)


[ Reply to This | # ]