Subscribe to
Posts
Comments
NSLog(); Header Image

~/Library/Scripts/Applications/

script_menu_applications.gifIf you create the folder ~/Library/Scripts/Applications/Safari/ and drop AppleScripts into it, they'll appear as I've illustrated to the right. This is a great way to clean up your AppleScript system menu (y'all have one, right?). No longer must you have a long list of AppleScripts in that menu just to use them in all of your apps.

This is pretty handy, really. It seems to work with any application - just get the name right (i.e. "Microsoft Entourage" instead of "Entourage"). More experimentation is necessary. Most of my Entourage scripts, for example, will remain in their script menu, but my iTunes scripts will migrate to this menu.

11 Responses to "~/Library/Scripts/Applications/"

  1. Totally unrelated to this post:

    I am just curious what CSS you used for your mouseovers on links.

    Thanks.

  2. Script Menu

    Erik Barzeski shows how to make a script menu that includes the scripts for the frontmost application inline instead of just having them in a submenu. It’s not OSA Menu, but it’s getting there. (How about holding down Option to edit the sc...

  3. Doesn't seem to work for me. I'm running 10.2.4, with System Events 1.2b though (for gui scripting). Is it possible that this is in the new 10.2.4 System Events?

  4. Sorry. It is working, after a kill -HUP of the SystemUIServer.

  5. Be sure you update to the latest ScriptMenu.menu v1.1 for this to work (replace in ~/Library/Bundles).

    Personally, I find this new trick intollerable, as it forces a rescan of all scripts in all subdirectories on the path each time you switch apps; I have several hundred scripts on that path and it takes about 20-22 seconds each time you switch apps and reaccess the menu.

  6. ~/Library/Scripts/Applications/

    NSLog();: "If you create the folder ~/Library/Scripts/Applications/Safari/ and drop AppleScripts into it, they'll appear as I've illustrated to the right. This is a great way to clean up your AppleScript system menu (y'all have one, right?). No longer ...

  7. What about the Scripts folder at root?

  8. Doesn't work for me, even after trying Scott's workaround.

    Any suggestions?

  9. This tip is very cool. It allows me to simplify the script menu in such a way that it shows only the most relevant scripts for a particular application. All without limiting access to scripts for other applications. Also, if there are scripts that you'd like to be consistently available, you can still keep them in the Applescript folder.

    Thanks for the tip.

  10. Is there anyway to make the script menu come up for Safari? As iTunes has, where you drop scripts in ~/Library/[Application Name]/Scripts/

    I'd much prefer this as I look for the script menu there as part of the application rather than an extension of my entire operating system.

  11. This tip is very cool. It allows me to simplify the script menu in such a way that it shows only the most relevant scripts for a particular application. All without limiting access to scripts for other applications. Also, if there are scripts that you'd like to be consistently available, you can still keep them in the Applescript folder.