10.5: Call Automator workflows from AppleScript

Dec 06, '07 07:30:00AM

Contributed by: dpouliot

Calling Automator workflows from AppleScript has been covered here before for 10.4. However, that tip doesn't work in Leopard.

To execute an Automator workflow from an AppleScript in Leopard, first save the workflow as an application, then write a script like this:

set lf to path to library folder from user domain
tell application "Finder" to open (alias (lf & "Scripts:foo.app:" as text))
[robg adds: I haven't tested this one.]

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20071123181555282