applescriptautomator

Launch Automator Workflow and pass parameter from Apple Script


I have:

  1. an Automator workflow saved as an application "workflow.app"
  2. an Apple Script saved as an application "script.app"
  3. a PDF file residing on Desktop "test.pdf"

How do I launch workflow.app and pass test.pdf as the input for workflow from inside script.app?


Solution

  • tell application "workflow" to open "Macintosh HD:Users:user_name:Library:Mobile Documents:com~apple~CloudDocs:test.pdf"