I have an AppleScript with this:
set the_name to name of this_file
however the hazel log gives me this error:
executing AppleScript on file /Users/scott/Desktop/Hazel Testing/a16.pdf.
2013-01-03 13:42:06.835 hazelworker[9776] AppleScript error: {
NSLocalizedDescription = "Can\U2019t get name of alias \"Macintosh HD:Users:scott:Desktop:Hazel Testing:a16.pdf\".";
NSLocalizedFailureReason = "Can\U2019t get name of alias \"Macintosh HD:Users:scott:Desktop:Hazel Testing:a16.pdf\".";
OSAScriptErrorAppAddressKey = "<NSAppleEventDescriptor: null()>";
OSAScriptErrorBriefMessageKey = "Can\U2019t get name of alias \"Macintosh HD:Users:scott:Desktop:Hazel Testing:a16.pdf\".";
OSAScriptErrorMessageKey = "Can\U2019t get name of alias \"Macintosh HD:Users:scott:Desktop:Hazel Testing:a16.pdf\".";
OSAScriptErrorNumberKey = "-1728";
OSAScriptErrorOffendingObjectKey = "<NSAppleEventDescriptor: 'obj '{ 'form':'prop', 'want':'prop', 'seld':'pnam', 'from':'obj '{ 'want':'alis', 'from':null(), 'form':'name', 'seld':'utxt'(\"Macintosh HD:Users:scott:Desktop:Hazel Testing:a16.pdf\") } }>";
OSAScriptErrorRangeKey = "NSRange: {0, 0}";
Any ideas?