I've got the most basic of all newbie questions. I created an applescripts with about 200 lines and it works fine when running it from the Applescript editor. I bring it into an Alfred workflow and nothing happens. I was able to get it to work with NSAppleScript but I want it to run in the background so I'm using the action RunScript.
I've created a very simple one line script and I can't get that to work with RunScript. I'm missing something fundamental here but I've been racking my brain for a week and I see no one in the forum is asking such a basic question. I see a bunch of workflows that start out with "run script (POSIX fileā¦" but I've got to believe I can just drop my applescript into the script text box of a Run Script.
Here's a simple test I did. Can you tell me what I'm doing wrong?
1) In Alfred workflow I create a new Keyword to Scrip workflow, which gives me a Keyword box and a Run Script box already connected. I right click on the new workflow and choose "Edit Details" where I name the workflow "Test01"
2) I open the Keyword box, enter Test01 for the keyword, check "with space" and choose "Argument Optional", then hit the save button. (I've also tried No Argument for this test -- no difference in the results)
3) I open the RunScript box, select language "/usr/bin/osascript", Check only "Double Quotes" and "Backslashes" and enter the following line in the Script field:
display dialog "Test01 script running" then hit the save button.
At this point it seems like I'm done. I bring up Alfred, type Test01 (Alfred recognizes it as a workflow), I hit return and absolutely nothing happens.
Any help would be greatly appreciated.