Skip to content

Actions

New in Acorn 8.1, Actions are an app, droplet, shortcut, alias, or shell script that you can send an image to. It's a great way for Acorn to integrate with other applications on your Mac. You can even integrate with Retrobatch this way.

Actions show up under the File ▸ Actions menu, and each item under this menu represents a file or app in Acorn's Actions folder in the Finder. Actions also show up under the Web Export window in the bottom left corner with this icon:

Finding Acorn's Actions Folder

To open Acorn’s Actions folder, choose the File ▸ Actions menu item.

It's easy to create an item in the Actions menu. For example, what if we wanted to create a menu item that when called, would send the image to Mail as an attachment? For this, we would choose the File ▸ Actions to open our Actions folder, and then drag and drop the Mail app from the Applications folder into the Actions folder (by default, this will create a Finder alias to the Mail app, and not an actual copy. An alias is a little file that says "what you want is over here").

If you then go back to Acorn, an entry named Mail will be added to the Actions menu.

You can also create sub-folders in the Actions folder, and those will show up as sub-menus in Acorn's Actions menu.

A Shell Example

Let's say we are a web developer and we wanted an action to check in our changes to an git repository. We could then have a script named "Commit To Git.sh" that looked like this:

Commit To Git.sh
#!/bin/bash

# Get the parent folder.
parent=$(dirname "$1")

# Get the file name
file=$(basename "$1")

# cd into the parent folder.
cd "$parent"

# commit our changes.
git commit -m "auto commit" "$file"

A Shortcuts App Example

Using the Shortcuts app, you can create a droplet which can be used from Acorn's Actions menu. To do so, first open up the Shortcuts app and make a new Shortcut via the File ▸ New menu item.

Next, you'll want to add an action which takes input. To do this, search for "repeat" in the search field for the catalog. Double-click the Repeat with Each entry to add it to our shortcut.

Click on the Items placeholder of the Repeat with Each action, and select Shortcut Input from the options.

Next, add the Open App action and place it between the Repeat with Each start and end actions.

In this simplistic example, we're going to have our action open up in the Preview app. You could, of course, have a shortcut to upload an image to a server or any number of actions. But we're going to keep things simple. So next, click on the Default App placeholder in the Open App action and choose Preview from the list of apps.

Finally, click in the title bar of our Shortcut to rename it. Something like "Open in Preview" should do nicely.

Now comes the magic part where we make a droplet out of our shortcut. In the Shortcuts app, choose the File ▸ Add to Dock menu item. This will add a shortcut icon to the Dock and also create a Droplet with the name of our Shortcut in the Applications folder. If you Command-Click on the new "Open In Preview" app in the Dock, it will show itself in the Applications folder, and we can move it to Acorn's Actions folder. And once that is done, it will show up in Acorn's File ▸ Actions menu.

You can safely remove the new shortcut from the Dock if you no longer want it there.

Droplets made from other apps (such as our batch image processor, Retrobatch) can be placed in the Actions folder as well.

And as a bonus, if you're using the direct version of Acorn, you can place Retrobatch's .retrobatch files directly into the Actions folder without first creating a Droplet.

Actions are a great way to extend functionality to Acorn. You can write Shortcuts to upload to servers, scripts to complex tasks, or make simple aliases to existing applications.

Looking for the old File Actions menu item?

You can enable Acorn's legacy File ▸ File Actions menu item by opening up Acorn's Settings… window, clicking on the Advanced tab, and turning on Enable Legacy File Actions.