• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can we execute automator workflow in AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can we execute automator workflow in AppleScript?


  • Subject: Can we execute automator workflow in AppleScript?
  • From: Takaaki Naganoya <email@hidden>
  • Date: Tue, 21 Oct 2008 11:12:22 +0900

Following script does not work in my environment (Mac OS X 10.5.5, Japanese user environment).
This works in Mac OS X 10.4.

I don't know the difference between "Automator Launcher" and "Automator Runner". They seems to be a same program.


<AppleScript>

set aWorkflow to choose file
set aRes to executeAutomatorWorkflow(aWorkflow) of me

--Don't work in Mac OS X 10.5.5 
on executeAutomatorWorkflow(aWorkflow)
try
with timeout of 3600 seconds
using terms from application "Automator Runner"
tell application "Automator Runner"
open aWorkflow
end tell
end using terms from
end timeout
on error
display dialog "Error: in executing Automator Workflow" buttons {"OK"} default button 1
return false
end try
return true
end executeAutomatorWorkflow

</AppleScript>

--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden

PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: How to know key code?
  • Next by Date: export as .rtfd with Pages
  • Previous by thread: Re: How to know key code?
  • Next by thread: export as .rtfd with Pages
  • Index(es):
    • Date
    • Thread