3 Replies Latest reply: Jan 12, 2008 3:15 PM by spazek
Dan Pouliot Level 1 (100 points)
I have a need to execute an Automator workflow from an AppleScript.
In 10.4, this would work:

set myWorkflow to "path:to:workflow"
tell application "Automator Launcher" to open myWorkflow

In 10.5, it does not. Is there an alternative way to do this in 10.5?

MBP, Mac OS X (10.5.1)
  • Dan Pouliot Level 1 (100 points)
    looks like automator launcher is no longer scriptable. there is a new app, automator runner. however, when I do this:

    set wf to (alias "Macintosh HD:Users:me:Library:Scripts:temp.workflow:")
    tell application "Automator Runner" to open wf

    script editor says "missing value"
  • Dan Pouliot Level 1 (100 points)
    my own solution is to save it as an application and run it this way:
    set wf to (alias "Macintosh HD:Users:me:Library:Scripts:temp.app:")
    tell application "Finder" to open wf

    not sure if there's any downside to that.
  • spazek Level 2 (215 points)
    Hi Dan!

    Copy the (Tiger) Automator Launcher.app 1.0.4 (*) somewhere to your 10.5 system and modify your AppleScript like this:

    tell app "path:to:Automator Launcher.app(1.0.4):"
    open "path:to:automator workflow:"
    end tell

    (*) /System/Library/CoreServices/Automator Launcher.app

    Message was edited by: spazek