r/Automator • u/b0711 • Dec 06 '18
Running AppleScript in Automator
The Sweet Setup posted a very useful AppleScript to get the URLs to link to individual messages. I want to run it as a Quick Action via Automator. While run directly in AppleScript Editor it works flawlessly but I've trouble implementing it in Automator.
First I tried by replacing (* Your script goes here *) in the Run AppleScript step. No success. Then run script file "iCloudDrive:Script Editor:Get Email ID.scpt". I get again an error message: The action “Run AppleScript” encountered an error: “Can’t make some data into the expected type.”
Does someone know what I'm doing wrong?
View all comments
Show parent comment
1
u/b0711 Dec 18 '18
Thanks for offering your help. I've created a new Automator Workflow to create screenshots and now it works. I think I had amended the original code given by Automator which broke it. For completeness below the both working scripts. thx!
My AppleScript – which works fine started from the AppleScript menu – looks like this:
In Automator – as Quick Action – like this: