I’ve made a script to name a folder with the current date, using examples from these extremely helpful pages. I’d like to also add the time to the folder name, but can’t seem to get it to work. Any ideas ?
tell application “DropStuff” to open file “X”
tell application “Finder”
set file_location to “Y”
set file_name to "HES " & (do shell script “date +%d-%m-%y-%h”)
set file_alias to (“Y”) as alias
tell application “Finder”
set name of file_alias to file_name
end tell
end tell
tell application “Finder” to move file_alias to disk “zip 100” replacing yes
Thanks for replying and yes, I know it is a bit messy, but I was having trouble with the syntax and it seemed to work.
The file that was created and named with the date/time will be copied to a external zip drive. This works fine, but retrieving it is harder. As the name of the file will be different every time, can I write a script that has a variable in it such as:
“if the file on the zip disk contains HES copy it to blah blah”