I’m trying to make a script that will allow me to specify a location and name for its creation through variables.
Heres what I have:
set FolderName to text returned of (display dialog "What would you like the folder to be named?" default answer "Untitled Folder")
set FolderPlace to text returned of (display dialog "Where would you like the folder?" default answer "Home")
tell application "Finder"
make new folder at FolderPlace with properties {name:FolderName}
end tell
Every time I run the script (Without altering the default answers) I get this error message:
Finder got an error: Can’t make “Home” into type item.
I tried replacing variable FolderPlace with an actual location and it works fine. Please post if you know how I can still allow the use of a variable.