Benches Uncategorized

10

'on opening' Folder Action while Finder is in C...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I can't get the 'on opening' Folder Action to trigger if Finder is in 'column' view. It does work for 'icon' view and 'list' view. It seem reasonable to me that it could work in 'column' view, but maybe Apple doesn't agree. I can't find any specific documentation. Does anyone know for sure?
Thanks.

10 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I am not familiar with that folder action. What is it supposed to do?

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    "Folder actions" are triggers that automatically run one or more specified scripts when a change is made to a folder "attached" to a script. There are five provided actions:

    *Adding To Folder:* Runs when items are added to an attached folder.
    *Closing Folder Window:* Runs when the attached folder window is closed.
    *Moving Folder Window:* Runs when the attached folder window is moved.
    *Opening Folder:* Runs when the attached folder is opened.
    *Removing Folder Items:* Runs when items are removed from an attached folder.

    Each has a script handler that invokes whatever the script should do in response to that action. That could be almost anything but a very simple 'on opening' example script would be:

    on opening folder this_folder
    beep
    end opening folder

    This would just play the system alert sound when the attached folder is opened, so it is suitable for testing the basic functionality of the action. Paste it into Script Editor & save it to ~/Library/Scripts/Folder Actions/ (creating that folder if it doesn't already exist) & it will appear in the popup list of folder action scripts you can attach to folders via the control-click contextual menu item "Configure Folder Actions" in the "More" section. (Otherwise, you can save it anywhere & navigate to it using the "Attach Script" option.)

    When I do this for a randomly selected folder, I get the same results as xnav: I hear a beep on opening the folder in every possible way except by clicking on its enclosing folder in column view, which apparently isn't considered as opening the folder by Folder Actions.

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for confirming that it isn't just me!

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thank you for the "helpful" star!

    I'm hoping that others will try the simple test script & instructions my post provided & share their results here, so we can confirm that this affects everyone ... or not.

    Folder actions are much improved in Leopard, especially in that a folder no longer has to be open for the other actions to trigger a script. But it will be a bit disappointing if the 'on open' trigger won't occur in column view since that limits its utility substantially. If we can confirm that it is the standard behavior it is worth sending feedback requests to change it.

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'll see if we get any more testers, and then I'll submit to Apple Feedback. BTW, I've also found that although finder appears to let one place an 'on open' folder action on a Windows Shared folder, it doesn't work.

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for that tidbit about Windows shared folders -- there are no Windows computers on my LAN so I would never have discovered that for myself. For my future reference, do the other folder actions work with these shared folders or is it limited to the 'open folder' action?

  7. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I've only tried the open trigger. I may have time later today to try other triggers.

  8. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The 'add folder item' trigger does not work on Window Shared folders either. Even though it was set up and appeared exactly the same as the trigger on a local folder.

  9. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the info.

  10. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm marking this 'answered', since no other forum user has commented. I've also posted comments to Apple Feedback.