AppleScript theFile Alias

Hi - I'm just getting started with Hazel so forgive what I hope is a simple issue to solve!
I'm trying to use an Applescript to query a file with MediaInfo to Hazel with the custom export parameters used to rename the file... however I've been getting empty results back for the exported parameters and so I've been trying to debug. It looks like I'm struggling with theFile as an input parameter.
I've taken it back to basics and simply using
I'm hoping I'm doing something really obviously wrong? Any pointers or thoughts how I might fix it please? Thanks!
I'm trying to use an Applescript to query a file with MediaInfo to Hazel with the custom export parameters used to rename the file... however I've been getting empty results back for the exported parameters and so I've been trying to debug. It looks like I'm struggling with theFile as an input parameter.
I've taken it back to basics and simply using
- Code: Select all
display dialog "File is: " & theFile
2022-11-16 17:05:36.263 hazelworker[15567] OSAScript error: {
NSLocalizedDescription = "System Events got an error: Can\U2019t make alias \"Macintosh HD:Users:imakers:Movies:Hazel Test:Bottom - Series 3 - Episode 3 - Break.m4v\" into type string.";
NSLocalizedFailureReason = "Can\U2019t make alias \"Macintosh HD:Users:imakers:Movies:Hazel Test:Bottom - Series 3 - Episode 3 - Break.m4v\" into type string.";
I'm hoping I'm doing something really obviously wrong? Any pointers or thoughts how I might fix it please? Thanks!