I found an AppleScript example on a website that I want to use, and the example is rendered as text in the browser (vs., say, being a suitably formatted file to download).
To use this AppleScript, I'm assuming that I need to use Automator somehow to create a Workflow (or perhaps an Application), but I can't figure out the right way to paste the AppleScript (or otherwise enter free-form text) into Automator.
I tried dragging a Run AppleScript action into the workflow window and then pasting the the AppleScript there, and (after I cleaned-up the smart quotes) I was able to use the Run button to execute it from within Automator. Though it popped up a warning about not receiving input while running inside Automator, the AppleScript seemed to execute correctly (i.e., I ended up with the right result). But it seems like this might not be the correct/efficient way to do this transcription (and/or it will result in an inefficient AppleScript).
Is there some way to open a free-form text window in Automator to type in an AppleScript? Or is there some other way (other than trying to figure out each Action to drag into the workflow window and modify accordingly) to transcribe an AppleScript?
Corroborating my suspicions of inefficiency, I see that the resulting Application bundle/directory has a file called Contents/document.wflow
and within that is the free-form pasted text as an ActionParameters member of Run AppleScript -- and this presumably will need to be parsed at every runtime.
I'm using Automator 2.7 on MacOS 10.12.6
Script Editor
was still around. The comments on the original site threw me. tnx! – jhfrontz Jul 17 '18 at 15:44