K, this is my first stab at this. On my iDisk I created 35 main folders each with 4 subfolders where documents are going to be placed. Basically, it’s a mirror of the folders on my HD. I want my assistant to be able to put the documents she creates in these subfolders. I then want to run this script which will file her documents (regardless of the name she gives them) in the appropriate place on my HD (I don’t want to give her SSH access to my computer). So, wrote this Script to copy her files from my iDisk, save them in their respective folders on my HD, and then delete the iDisk files from the iDisk. Turns out, it’s going take a lot of typing to accomplish this! Anwyay, here’s what I got so far. This represents only 2 of the 35 main folders that I have to make a script for. So, is the code ok? Is there a better way? Is there another way to do the other 33 besides manually making the changes??? Thank you…
tell application “Finder”
set fold_path to folder "II. Bills" of folder "ALLEN" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path2 to folder "II. Bills" of folder "Allen" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path to fold_path2
select every file of fold_path
delete selection
set fold_path3 to folder "III. Correspondence" of folder "ALLEN" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path4 to folder "III. Correspondence" of folder "Allen" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path3 to fold_path4
select every file of fold_path3
delete selection
set fold_path5 to folder "IV. Disc/Stips/Misc" of folder "ALLEN" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path6 to folder "IV. Disc/Stips/Misc" of folder "Allen" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path5 to fold_path6
select every file of fold_path5
delete selection
set fold_path9 to folder "VIII.Write-ups" of folder "ALLEN" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path10 to folder "VIII.Write-ups" of folder "Allen" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path9 to fold_path10
select every file of fold_path9
delete selection
set fold_path13 to folder "II. Bills" of folder "ANDRADE" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path14 to folder "II. Bills" of folder "ANDRADE" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path13 to fold_path14
select every file of fold_path13
delete selection
set fold_path15 to folder "III. Correspondence" of folder "ANDRADE" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path16 to folder "III. Correspondence" of folder "ANDRADE" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path15 to fold_path16
select every file of fold_path15
delete selection
set fold_path17 to folder "IV. Disc/Stips/Misc" of folder "ANDRADE" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path18 to folder "IV. Disc/Stips/Misc" of folder "ANDRADE" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path17 to fold_path18
select every file of fold_path17
delete selection
set fold_path19 to folder "VIII.Write-ups" of folder "ANDRADE" of folder "*** WWW ***" of folder "Public" of disk "iDisk"
set fold_path20 to folder "VIII.Write-ups" of folder "ANDRADE" of folder " ** BOXES **" of folder " WWW" of folder "Documents" of folder "radio" of folder "Users" of startup disk
duplicate every file of fold_path19 to fold_path20
select every file of fold_path19
delete selection
end tell