I'm trying to set up an applescript that
- Asks the user for a text input
- Creates a new folder with the input data
- Copies files into this folder from another folder
This is what i have so far but i'm getting the error : "File /Users/*****/Desktop/Temp/_scripts/ wasn’t found"
tell application "Finder"
set newfoldername to text returned of (display dialog "Project name:" default answer "no name")
set loc to container of (path to me) as alias
set newclient to make new folder at loc with properties {name:newfoldername}
set structure to ((POSIX path of loc) & "_scripts/") as alias
duplicate folder structure to loc
end tell
the _scripts folder is located in the same folder as my applescript. Is it is expecting a file rather than a folder?