Hi Im no applescript expert (as you can probably see from below)..
Im trying to get a a user to duplicate a folder and rename it all in the same parent folder.
Each time it works it just replaces the original. I have created this from different scripts I have found.
This is what i have at the moment:
Ideally id rather the user didn't have to input the destination folder. I hope this makes some sense, and someone can help..
Thanks Rob
Im trying to get a a user to duplicate a folder and rename it all in the same parent folder.
Each time it works it just replaces the original. I have created this from different scripts I have found.
This is what i have at the moment:
Code:
tell application "Finder"
choose folder with prompt "Choose a folder to copy"
set targetFolder to choose folder with prompt "And where do you want it to go?"
set Dialog_1 to display dialog "Enter the Divison Code" default answer "ABCD"
set the DivCode to the text returned of the result
set Dialog_2 to display dialog "Enter the Project Number" default answer "0000"
set the ProjNum to the text returned of the result
set Dialog_3 to display dialog "Enter the Job Number" default answer "0000"
set the JobNum to the text returned of the result
set Dialog_4 to display dialog "Enter the Job Title" default answer "Job Title"
set the JobTitle to the text returned of the result
set name of theFolder to (DivCode & "_" & ProjNum & "_" & JobNum & "_" & JobTitle)
copy theFolder to targetFolder
end tell
Ideally id rather the user didn't have to input the destination folder. I hope this makes some sense, and someone can help..
Thanks Rob
Last edited by a moderator: