Mac Help Forums


Reply
Thread Tools Display Modes

to autorun a workflow?

 
New Member
Join Date: Aug 2006
Posts: 4
 
      2nd August 2006
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!
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      2nd August 2006
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
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      2nd August 2006
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...






regards

Ric
 
Reply With Quote
 
New Member
Join Date: Aug 2006
Posts: 4
 
      2nd August 2006
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
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      2nd August 2006
Hi there,

no problem !

I thought you might be doing that !

regards

Ric
 
Reply With Quote
 
New Member
Join Date: Nov 2006
Posts: 2
 
      27th November 2006
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

Last edited by leowoo; 27th November 2006 at 01:12 AM.. Reason: added my name
 
Reply With Quote
 
New Member
Join Date: Aug 2006
Posts: 4
 
      27th November 2006
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
 
Reply With Quote
 
New Member
Join Date: Nov 2006
Posts: 2
 
      27th November 2006
Awesome, thanks for your help, that was just the nudge i needed!

Cheers
Leon
 
Reply With Quote
 
New Member
Join Date: Aug 2006
Posts: 4
 
      27th November 2006
glad i could help!
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      28th November 2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autorun FAILURE bmm30 Mac OS X 0 29th April 2008 01:21 PM
Tool for creation Autorun for MAC OS? BMahaha@gmail.com Mac 1 11th November 2007 07:46 PM
Autorun for Mac? Robert Peirce Apps 3 29th December 2004 01:31 AM
How to autorun a CD on the Mac? Chung Leong AppleScript 9 24th August 2004 08:26 PM
autorun on mac Han Li Misc 5 3rd August 2003 07:37 AM


All times are GMT +1. The time now is 02:55 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (5 Hours Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (9 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (10 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (11 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (11 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51