I forgot that the on open handler always takes a list of files, not just one file. You have to go through the items on the list and act on each one.
on open these_items repeat with this_item in these_items tell application "Finder" to set the label index of this_item to 3 end repeat end open On Feb 18, 11:59 am, Chris Cairns <[email protected]> wrote: > On Feb 18, 2009, at 9:55 PM, Jon Stovell (a.k.a. Sesquipedalian) wrote: > > > > > on open thisItem > > tell application "Finder" to set the label index of thisItem to 3 -- 3 > > = Yellow > > end open > > thanks, Jon. But it does not work. I tried > 1. bringing up a folder in first pane and label_quicksilver (script is > saved in a file named label_quicksilver in actions folder) in second > and hit enter. > 2. bringing up the label_quicksilver in first pane, "open file" in > second and folder in third pane. > result of 1 and 2: nothing. no errors. > Just let me know if it works for you and i will debug the problem > myself.
