Hello,
I would like to open automatically the last saved file from a folder residing on an external drive but my script is throwing an error!
Can anyone help to debug it?
tell application "Finder"
open (select item -1 of (sort (get files of folder "Volumes:Design:Item No. rules:") by modification date))
end tell
Here is the error:
error “Finder got an error: Can’t get folder "Volumes:Design:Item No. rules:".” number -1728 from folder “Volumes:Design:Item No. rules:”
When I use the following script it works but no with the above??? I do not want to have to choose the folder
set theFolder to choose folder
tell application "Finder"
open (select item -1 of (sort (get files of folder theFolder) by modification date))
end tell
I am running mavericks.
Thanks