I am new at using Applescript with Hazel, but I have been using Hazel itself for years.
I ultimately need to move a file to a new folder. But, I am stuck on what it seemingly the simplest task — getting the name of the file passed to the script.
I am trying this:
- Code: Select all
set theFileName to theFile as text
display dialog theFileName
But this gives an error.
Any help in getting me started would be much appreciated.
Thanks!