Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Can I use Automator to restart a browser every 30mins?

Can I use Automator to restart a browser every 30mins?
Thread Tools
Naz
Mac Enthusiast
Join Date: Oct 2000
Location: over here *
Status: Offline
Reply With Quote
May 29, 2006, 09:27 PM
 
How do I use Automator to restart my opera browser every 30 mins?

I want to automate a regular restart of the browser I do not know how to write cron jobs or applescripts

but I would really like to keep this running 24/7

with a way to pause it
Nazaire's Art - -- iMac 500 DV SE --- 17" PB
     
Posting Junkie
Join Date: May 2001
Location: Brisbane, Australia
Status: Offline
Reply With Quote
May 29, 2006, 11:16 PM
 
Wow. Makes me wonder why one would ever want to do such a thing.

But I assume AppleScript is capable of this.

[ fb ] [ flickr ] [] [scl] [ last ] [ plaxo ]
     
Naz  (op)
Mac Enthusiast
Join Date: Oct 2000
Location: over here *
Status: Offline
Reply With Quote
May 29, 2006, 11:31 PM
 
why running autosurf sites for traffic

I do not know how to write applescripts so this would not help me find a solution
Nazaire's Art - -- iMac 500 DV SE --- 17" PB
     
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
May 30, 2006, 02:13 AM
 
apple script is easy.
make an applescript to stop and start opera as so:

Code:
try tell application "Opera" quit end tell delay 2 open application "opera" end try
so that quits opera, waits 2 seconds for it to quit, and then relaunches it. (load it into Script editor to test it)

To run it every 30min you would want to use cron. The easiest way is to download an application called Cronnix. This is an easy GUI to cron.
Set it to run every 30 min by putting a * in all the fields except minutes (where you would put "0,30") - this will make sense once you download cronnix
I free'd my mind... now it won't come back.
     
Mac Elite
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
May 30, 2006, 07:12 AM
 
you could also put that code into a on idle function and save the script as stay open and not need cron.

on idle

...
...

return 900
end idle

http://applescriptsourcebook.com/articles/144_0_3_0_C/
     
Naz  (op)
Mac Enthusiast
Join Date: Oct 2000
Location: over here *
Status: Offline
Reply With Quote
May 30, 2006, 01:52 PM
 
Thanks for all the help

I will try both so I can learn
Nazaire's Art - -- iMac 500 DV SE --- 17" PB
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 12:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2