PDA

View Full Version : HELP! APPLESCRIPT to move files to ipod


marcscrookedfing
10-01-2004, 04:06 PM
SO I have a problem and I'm sure other iPod owners have similar concerns.

I have an iMac at home and a PowerMac at the office not to mention the school's computer labs I'm in all the time. I use my ipod to transfer all my files between all three, but I most often use my iMac at home.

What I'm looking for is a way to keep the master files on my iMac; transfer them to work and school; edit them on the iPod then when I return home upload the changed files to the iMac. THIS way I have a backed up copy at home or a backed up copy on the POD.

MY envisioning was 2 applescripts saved as programs. The first would move (copy) a specific file in my home folder "iPod files" to the iPod (overwriting any old files). I can then take my POD and go to school, work and edit on the iPod. I go home hook up my iPod and...
the second script would move (copy) the files on the iPod to the file in my HOME called "iPod files" over writing the old files.

I figure with the two applescripts saved as applications I can run them from the script menu or put their icons in the dock and just click to upload or download. MAKE SENSE?

HELP! I've searched everywhere and no one has written any scripts that are even close.
Even if someone could give me any heads up it's appreciated.

Gnarlodious
10-02-2004, 07:50 PM
Here's a simple solution. Requires the free Satimage OSAX: http://satimage.fr/software/en/downloads_osaxen.html as the "backup" command is not vanilla Applescript.

This script assumes the ejectable disk is mounted:
set the localFolder to alias choose folder
set the otherFolder to alias choose folder

backup localFolder onto otherFolder level 2
backup otherFolder onto localFolder level 2

tell application "Finder"
update folder localFolder necessity yes
update folder otherFolder necessity yes
end tell

display dialog "Finished" with icon noteThis script will do incremental synchronization recursively on 2 folders, that is, only the newer files will be copied overwriting older files. Files deleted on one disk will reappear at the next update unless both are deleted. In your case, all 3 must be deleted or unwanted files will propagate.
This script could actually be kept on your iPod and semiautomated by saying "container of (path to me)" for 2way backups. Hope that gets you going.

-- http://Gnarlodious.com/Apple/AppleScript/