Creating folder names with variables in applescript?
im trying to make folders and name them with structured names but im getting an error and im not sure what im doing wrong.
the error i get is:
Finder got an error: Can’t make "/Users/USERNAME/Desktop/Fake Server/Project Name" into type item.
----------------------these variables are just used for my example, the actual script asks for input and makes that into the variables -------------------
set the_folder to "Macintosh HD:Users:USERNAME:Desktop:Fake Server"
set theChosenOne to "Selected"
set Code to "ABCD"
set Number1 to "12345"
set projLocation to (POSIX path of the_folder & "/" & theChosenOne)
set folderTags to Code & " " & Number1
tell application "Finder"
makenewfolderatprojLocationwith properties {name:folderTags & " artfile"}
end tell
Applescript-OTHER, Mac OS X (10.7.4)