to autorun a workflow?

Joined
Aug 2, 2006
Messages
4
Reaction score
0
i'm not sure if my question fits in here or the 'shell programming' section, but i try it at first here.

i've got a fine working automator-workflow. the thing is, i want it to autorun after opening the file.

using the terminal i have the following command:

open /Applications/automator.app /Users/Michael/automator/virtual1.workflow

but this only opens it, but doesn't start it.

how can i do it? or is there a possibility to change it within the automator.application?

thanks in advance!
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there and welcome !

Is there a reason that you want to do this via Terminal ?

You can also, do a Save as in Automator as an Application...

Then use an App such as CronniX to tell the App to 'run' a ta a certain time...

You can also use iCal to schedule the Workflow to run, watch the movie here.

regards

Ric
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there,

just notices I didn't 'actually' answer your question ?!*

To run the workflow in the Terminal, do a "save as" an Application in Automator then call it like below...

save-as-automator.jpg



play-automator-terminal.jpg


regards

Ric
 
Joined
Aug 2, 2006
Messages
4
Reaction score
0
thanks for your help. i just didn't see the wood for the trees. ;) the solution was so obvious...

and... the reason why i start it via the terminal is because the automator.app is part of a crontab.

cheers
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there,

no problem !

I thought you might be doing that !

regards

Ric
 
Joined
Nov 27, 2006
Messages
2
Reaction score
0
Hi there

I too have been trying to figure out how to automatically execute automator workflows, so this thread has been very helpful thank you, but i have one more question. How can I repeatedly execute a workflow? say every 10 mins. The iCal method only allows daily scheduling of scripts. Any thougths? any ideas would be appreciated.

Cheers :)

Leon
 
Joined
Aug 2, 2006
Messages
4
Reaction score
0
you can do that by writing a crontab.

1. create a shellscript e.g. 'worklflow.sh' with pico with the terminal

#!/bin/sh
#########
# Workflow #
#########

open /Users/xxxxx/workflow.app


2. create a crontab, again with pico e.g. 'crontab.cron'

# Script

0 * * * * /Users/Michael/workflow.sh


check man the man-pages in the terminal for more info how you can use a crontab and what the stars ando so on mean. i'm in a bit of a hurry, so my reply is a bit short.

anyways, hope this helps, if you got questions, feel free to ask me, though it may take some time for me to reply! cheers
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Very nice !

Hi all and welcome !

If editing crontab's aren't for you then further up the thread there is a link to CronniX...this will also do what you want.

regards

Ric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top