Page 1 of 1

Simple question about hazelSwitchFile

PostPosted: Sat Jun 06, 2015 5:39 pm
by i_use_lasers
I did a quick search to see if my question had been answered before, but it hasn't. When I use hazelSwitchFile, what do I enter for outputAttributes? If I have the following line in an embedded AppleScript, would it be correct to have newFile as an outputAttribute?
Code: Select all
return {hazelSwitchFile:newFile}

Re: Simple question about hazelSwitchFile

PostPosted: Mon Jun 08, 2015 4:02 pm
by Mr_Noodle
You don't have to enter anything as an output attribute. hazelSwitchFile is a special field in the record and it's built-in to the system. There's no attribute for you to refer to it because it becomes the file matching the rule at that point. So any attributes you specify after that script will derive from that new file.