0
votes

I'm looking to:

  1. Move folder from desktop

    1a. Create a folder with set jobName to text returned of (display dialog "Please enter Job Name:" default answer "Job_Name")

    1b. Drop folder from desktop inside the make new folder at newfo with properties {name:"Emails"}

Script:

set jobName to text returned of (display dialog "Please enter Job Name:" default     answer "Job_Name")
set loc to choose folder "Choose Parent Folder Location"

tell application "Finder"
set home_path to home as text
set source to alias (home_path & "Desktop:WorkingFolder")
set newfo to make new folder at loc with properties {name:jobName}
    make new folder at newfo with properties {name:"Emails"}

set destination to home_path & jobName

tell application "Finder" to duplicate source to destination with replacing
end tell

Any help would be appreciated. Thank you,

1

1 Answers

0
votes

Is this what you are trying to achieve?

    set jobName to text returned of (display dialog "Please enter Job Name:" default answer "Job_Name")
set loc to choose folder with prompt "Choose Parent Folder Location"

tell application "Finder"
    set source to alias ((path to desktop as text) & "WorkingFolder:")
    set newfo to make new folder at loc with properties {name:jobName}
    make new folder at newfo with properties {name:"Emails"}
    set destination to make new folder at (path to home folder) with properties {name:jobName}
    tell application "Finder" to duplicate source to destination with replacing
end tell