Benches macOS

1

Automator can’t get value of variable

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

• Open Automator.

• Select Workflow from the template, and click the Choose button.

• In the list of Automator actions, double-click “Get Specified Text”.

• In the text box of the “Get Specified Text” action, type “hi there”.

• In the list of Automator actions, double-click “Set Value of Variable”.

• In the “Set Value of Variable” action, click on the “Variable:” pop-up menu, then click again on the “Variable:” pop-up menu.

• In the “Variable Options” dialog, click the Done button.

• In the list of Automator actions, double-click “Get Value of Variable”.

• Control-click on the title of the “Get Value of Variable” action, and from the context menu, select “Ignore Input”.

• In the “Get Value of Variable” action, click the Results button.

• Run the workflow.

Note that, as expected, the results pane of the “Get Value of Variable” action match the text in the text box of the “Get Specified Text” action.

• Now, in the list of Automator actions, double-click “Ask for Confirmation”.

• Run the workflow again.

*The action “Get Value of Variable” encountered an error.*

Check the action’s properties and try running the workflow again.

Why would putting a confirmation action
after the get value action cause the get value action to error?

This bug makes Automator in Snow Leopard effectively useless for just about everything that I want to do with it.

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    red_menace

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The action might be doing some conversion that is getting confused - the variable Get/Set actions have always been a bit squirrely. One workaround is to put another action in between that doesn't do anything, such as *View Results*.