- Code: Select all
property theFile : alias "Users:Michael:Desktop:DEVON.pdf"
tell application "Finder" to open file theFile
What am I doing wrong? Ultimately, I want to automatically store various PDF's in DevonThink Pro Office.
Moderator: Mr_Noodle
property theFile : alias "Users:Michael:Desktop:DEVON.pdf"
tell application "Finder" to open file theFile
Mr_Noodle wrote:If writing an external script, you must use a special handler. Consult the help as it has a template there.
Mr_Noodle wrote:I'm not sure the comment is correct. Hazel does use the generic OSA APIs (which is how it can support JavaScript as well). Also, that has little bearing on why there is a separate handler, which is by design.