I have a question on moving files from a folder on our mac hard drive to a folder on a mounted volume from the desktop. The following applescript worked flawlessly on our OS9 machines, but we recently got new machines with OS X.
The mounted volume is called “Label Images”.
Any ideas? tough for this windows guy to figure this out apparently. I think it might have something to do with the file structure in OSX and how we are calling the “desktop”, but not sure.
– moves the file to the right folder
(* if (the folder one_digit of disk “Label Images” of desktop exists) then
if (the folder two_digits of folder one_digit of disk “Label Images” of desktop exists) then
if (the folder three_digits of folder two_digits of folder one_digit of disk “Label Images” of desktop exists) then *)
if (the folder account_number of folder three_digits of folder two_digits of folder one_digit of disk “Label Images” of desktop exists) then display dialog “Label Images of Desktop”
move file file_name of folder this_folder_name of disk disk_name of desktop to folder account_number ¬
of folder three_digits ¬
of folder two_digits ¬
of folder one_digit ¬
of disk “Label Images” of desktop (* replacing conflicts *)
display dialog “Folder Exists”
else
make new folder at folder three_digits of folder two_digits of folder one_digit of disk “Label
Images” of desktop with properties {name:account_number} move file file_name of folder this_folder_name of disk disk_name of desktop to folder account_number
of folder three_digits ¬
of folder two_digits ¬
of folder one_digit ¬
of disk “Label Images” of desktop (* replacing conflicts *)
end if