Applescript not working

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Applescript not working Tue Nov 14, 2017 10:52 am • by MichaelTzu
Using Hazel 2.3.10 on old PPC.
Watching folder using embedded applescript:

set p to "Untitled 3/Applications/VectorWorks 12.0.0"
tell p
translate
end tell

Vectorworks AS dictionary:
translate v : Opens a file generated by a previous version of the application, translates it to the current version, and saves it under a new name.
translate list of alias : list of files which will be translated

Is there something I am missing?

Thanks

Michael
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Applescript not working Tue Nov 14, 2017 11:52 am • by Mr_Noodle
Does this script work outside of Hazel? If not, I would make sure to get it working there. My guess is that there are two issues with your script:

- p it set to a relative path which may not refer to an actual file. Also, it has no relation to the file being processed and sent in by Hazel (which is stored in the variable "theFile")

- According to what you sent, it is expecting a list of aliases. p is neither an alias nor it is a list.

I suggest researching some AppleScript-specific resources on how to fix the above.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support