Re: trouble scripting Automator
Re: trouble scripting Automator
- Subject: Re: trouble scripting Automator
- From: Ari Bader-Natal <email@hidden>
- Date: Fri, 3 Jun 2005 10:52:04 -0700 (PDT)
Thanks for the example! For some reason I didn't have the same problem, and was able to skip the
workaround. Here I'm using a few pre-installed actions from the TextEdit library:
tell application "Automator"
activate
set myWorkflow to make new workflow
--
set myAction1 to Automator action "Get Specified Text"
tell myAction1 to set value of setting "enteredText" to "Success!"
add myAction1 to myWorkflow
--
set myAction2 to Automator action "Speak Text"
add myAction2 to myWorkflow
--
execute myWorkflow
close myWorkflow without saving
end tell
This should run successfully, as is. Thanks, Ari.
--- "Timothy J. Wood" <email@hidden> wrote:
...
> Here is the source to the AppleScript portion of one of our
> automated test scripts for OmniOutliner 3. This tests our Automator
> action by building a workflow with that component, setting some
> parameters on it and invoking it (not shown here is where we do the
> value replacement of the <<...>> strings or where we compare the
> output and such).
>
> tell application "Automator"
> set MyWorkflow to make new workflow
> set MyPrototypeAction to Automator action "New Outline File"
> add MyPrototypeAction to MyWorkflow -- NOTE: This instantiates the action added; so we
need to get the added action below!
>
> set MyAction to last Automator action of MyWorkflow
> set value of setting "baseFolder" of MyAction to "<<POSIX_OUTPUT_DIR>>"
> set value of setting "baseName" of MyAction to "<<TEST_NAME>>"
> execute MyWorkflow
>
> close MyWorkflow without saving
> end
...
__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden