Re: Applescript an Automator action?
Re: Applescript an Automator action?
- Subject: Re: Applescript an Automator action?
- From: Daniel Jalkut <email@hidden>
- Date: Tue, 24 May 2005 09:38:43 -0700
Charles: I believe you can get the system's "workflow runner" to
handle the task by simply asking it to open the workflow document.
Apple hasn't made a big deal out of the presence of this helper app,
but at least for now it's around and works:
tell application "Automator Launcher"
open alias
"Tiger:Users:daniel:Library:Scripts:TestAutomator.workflow:"
end tell
This will cause the same "workflow status" to show up in the menu bar
as if you select the Workflow from Apple's script menu (or
FastScripts) or attach the workflow as a folder action.
Daniel
On May 24, 2005, at 6:48 AM, Charles Arthur, UKClimbing Editor wrote:
Hi..
perhaps I'm just being dim but couldn't find this mentioned.
Say I want to run an Automator workflow at regular intervals by a
cron job.
I can create a cron job to run an Applescript.
But I can't work out how to script a workflow to run.
The Automator dictionary has "execute" - execute workflow.
so:
Tell application "Automator" to execute "path/to/my/workflow.workflow"
I've tried putting the workflow in as a string. Nothing happens.
Tried creating an alias to the file (via the Finder) and then telling
Automator to do that. The alias "isn't found".
Tried "set theref to a reference to /path/to/..." Doesn't happen.
So how do I script this thing? It's driving me mad. Has done right
from the
start.
The hint at MacOSXHints suggests "tell aplication "Automator
Launcher" to
open...."
Doesn't work.
Clues please.
best
Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British
climbing walls
- searchable by distance rock type, etc, with 5-day weather
forecasts for
every one - plus maps, articles, news, and the New Routes database.
There's
even a cool shop attached...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40red-sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden