Simple question about hazelSwitchFile

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Simple question about hazelSwitchFile 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}
i_use_lasers
 
Posts: 1
Joined: Fri Jun 05, 2015 3:45 pm

Re: Simple question about hazelSwitchFile 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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support