Manipulate Alias based on state of Original

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

Moderator: Mr_Noodle

Manipulate Alias based on state of Original Sat Feb 22, 2014 10:28 pm • by cprrckwlf
Can anyone help figure out a way to manipulate an alias based upon the state of an original?

To simplify my exact situation, I have a folder that I have an alias to on my desktop, and I would like to know at a glance, by color label, if the folder is empty or not.


I can easily run an if Sub-file/folder count is 0; set color label on the parent, but the alias' color label state is independent from the parent. And I know enough applescript that I could probably figure out how to change the alias' label directly here, but it's horribly inflexible if I have to hard code paths.

Running Sub-file/folder count is 0 against the alias itself always returns yes, as an alias of a directory is a file not a directory itself.

Any thoughts would be appreciated.
cprrckwlf
 
Posts: 1
Joined: Sat Feb 22, 2014 10:16 pm

Hazel does not deal with what the alias is pointing to. To do anything like that, you will have to use a script.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support