pacmax beta

Alfred Pac by deanishe on GitHub

Alfred Appscripts

Alfred workflow to search and run/open AppleScripts for the active application

From their README

Alfred AppScripts Workflow

List, search and run/open AppleScripts for the active application. You can also specify directories that contain scripts that will always be shown, regardless of the active application.

Download

Note: Version 3.0 and above are not compatible with Alfred 2.

The workflow can be downloaded from GitHub releases or from Packal.

Usage

  • .as [] — Show/search list of AppleScripts for the active application
    • ↩ — Run the selected script.
    • ⌘+↩ — Open the selected script in Script Editor.
    • ⌥+↩ — Reveal the selected script in Finder.
  • appscripts [] — Show workflow configuration.
    • Help – Open this file in your browser.
    • (No) Update Available — Whether or not the workflow can be updated. Action the item to update or force an update check.
    • Search Directories Recursively – Whether the script directories should be searched recursively. Use with some caution.
    • Edit Script Directories — Open the configuration file in your default editor. The file contains a detailed description of how it works.
    • Reset to Defaults — Delete configuration and cache files.

Where are these scripts?

The workflow comes with a default set of directories. These are defined in a settings file that you can edit yourself. Use the Edit Script Directories option in the configuration (keyword appscripts) to open the file in your editor.

These are the default directories. {app_name} will be replaced with the name of the currently active application, e.g. BBEdit or OmniFocus, and {bundle_id} with the application's bundle ID, e.g. com.barebones.bbedit or com.omnigroup.OmniFocus2:

  • ~/Library/Scripts/Applications/{app_name}
  • ~/Library/Scripts/Applications/{bundle_id}
  • ~/Library/Application Scripts/{app_name}
  • ~/Library/Application Scripts/{bundle_id}
  • ~/Library/Application Support/{app_name}/Scripts
  • ~/Library/Application Support/{bundle_id}/Scripts
  • ~/Library/Containers/{bundle_id}/Data/Library/Application Support/{app_name}/Scripts

Any *.scpt, *.applescript, *.scptd (script bundle) or *.js (JXA) files found within the above directories will be shown.

If you add a directory path that doesn't contain {app_name} or {bundle_id}, it will match every application and the scripts will always be shown. See the settings file (AppScript Directories.txt) for more information.

Bug reports, feature requests

Please use GitHub issues to report bugs or request features. Alternatively, you can post in the Alfred Forum thread.

Licence, thanks

The workflow code and the bundled Alfred-Workflow and docopt libraries are all licensed under the MIT Licence.

The workflow icon was created by Jono Hunt.

The other icons are from Font Awesome by Dave Gandy, and released under the SIL OFL 1.1 licence.

Latest release

  • 3.2.07 years ago, 222 KBDownload

    Prevents workflow from trying to update to a very old version.

10 earlier releases
  • 3.1.19 years ago, 216 KBDownload

    .scpt files may also be JavaScript, so don't specify language when running them

  • 3.19 years ago, 224 KBDownload

    Also find scripts with extension .js

  • 3.010 years ago, 222 KBDownload
    • Faster identification of active application
    • Conditional debug logging
    • Drop Alfred 2 support
  • 2.211 years ago, 172 KBDownload
    • Fix for #2
  • 2.111 years ago, 174 KBDownload

    Use native helper app to get frontmost application info faster.

  • 2.011 years ago, 168 KBDownload

    Now you can set your own directories to search for scripts.

    Scripts may be app-specific or global (i.e. always available).

    Script bundles (.scptd files) are now also supported.

  • 1.311 years ago, 75 KBDownload
    • Cache list of scripts for 30 seconds
    • Less liberal filtering
    • Faster options for Script Filter Behaviour
  • 1.211 years ago, 75 KBDownload
    • Update Alfred-Workflow
    • Add new directories
    • Link icon to root
    • Use new Alfred Script Filter execution options
    • Activate auto-update functionality
    • Improve .gitignore
  • v.1.112 years ago, 45 KBDownload

    Now also searches an app's Scripts directory in its Application Support directory, e.g. BBEdit keeps its scripts in ~/Library/Application Support/BBEdit/Scripts.

  • 1.012 years ago, 44 KBDownload

    List, search and run/open AppleScripts for the active application.