I am new to Automator and writing with AppleScript. I wrote a program that collects URLs and stores them as a long, single string.

After the AppleScript portion of the workflow, I want to save the string as a text file, so I added the "New Text File" action from the library. However, I want the input of the "Save as:" field to be a variable.

Do any of you know if this is possible?

enter image description here

1 Answer 1


I just found the answer! You just need to drag the variable from the bottom of the screen into the desired text box.

  • You also should be setting the [√] Ignore this action's input option at the appropriate points. E.g. In the second Ask For Text action and Get Value of Variable action, so there is a disconnect between these actions and the previous action. Nov 29, 2019 at 17:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .