hi,
I’ve been re-writing an archive utility in Xcode using AppleScript and is somewhat working. In summary I need to:
a) move folder from server1 to an archive folder
b) create a new folder inside moved folder for ripped files
c) find matching job number folders from three server2 shares and put them on that new folder.
Here’s where I’m at right now:
on clicked theObject
if name of theObject is “Submit” then
set j_num to content of text field “jobnumber” of window “SuperArchive”
tell application “Finder”
try
mount volume “afp://10.0.0.9/RAID/” as user name “myusername” with password “mypassword”
end try
end tell
–RAID is the share in server1
tell application "Finder"
move (every folder of folder "ALLJOBS" of disk "RAID" whose name starts with j_num) to folder "RAID:TOBACKUP"
end tell
end if
–second button for option of moving ripped files
if name of theObject is “brisque” then
set j_num to content of text field “jobnumber” of window “SuperArchive”
tell application “Finder”
try
mount volume “afp://10.0.0.20/brisque03.1.0/” as user name “macuser” with password “macuser”
mount volume “afp://10.0.0.20/brisque03.3.1/” as user name “macuser” with password “macuser”
mount volume “afp://10.0.0.20/brisque03.3.0/” as user name “macuser” with password “macuser”
mount volume “afp://10.0.0.20/brisque03.5.0/” as user name “macuser” with password “macuser”
end try
make folder at (folder of folder “TOBACKUP” of disk “RAID” whose name starts with j_num) with properties {name:“brisque”}
end tell
end if
–button to launch toast
if name of theObject is "Burn DVD" then
tell application "Toast 6 Titanium"
activate
end tell
end if
end clicked
My problem is at the brisque button…it errors out telling me “can’t get folder that starts with j_num” (it gets the job number but can’t find it, hence can’t create the folder.
I’m stuck and out of ideas
thanks