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 > Mac OS X > Airpot daily restart

Airpot daily restart
Thread Tools
Junior Member
Join Date: May 2002
Status: Offline
Reply With Quote
Mar 5, 2003, 09:27 PM
 
Is there any way to set-up a job where the ABS would restart automatically at a specific time?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Montréal, QC
Status: Offline
Reply With Quote
Mar 6, 2003, 02:09 AM
 
Originally posted by patzoul:
Is there any way to set-up a job where the ABS would restart automatically at a specific time?
I think this can be done via AppleScript, more precisely GUI Scripting, but I don't (yet) know how.

http://www.apple.com/applescript/GUI/

look at the example script to Activate/deactivate Firewall which operates on the Sharing item of System Preferences...
     
Mac Enthusiast
Join Date: Jan 2001
Location: Winti, Switzerland
Status: Offline
Reply With Quote
Mar 6, 2003, 10:54 AM
 
Originally posted by patzoul:
Is there any way to set-up a job where the ABS would restart automatically at a specific time?
Why would you want to do that? DHCP server not giving an address to you?
     
Mac Enthusiast
Join Date: Nov 2001
Location: fourth sector
Status: Offline
Reply With Quote
Mar 6, 2003, 11:25 AM
 
Originally posted by patzoul:
Is there any way to set-up a job where the ABS would restart automatically at a specific time?
You should try this:
ABS Restarter

Nexus5.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Montréal, QC
Status: Offline
Reply With Quote
Mar 6, 2003, 11:57 AM
 
Originally posted by patzoul:
Is there any way to set-up a job where the ABS would restart automatically at a specific time?
Hope the following helps...

Given than you have downloaded GUI scripting (see my previous msg), rebooted, and enabled the option under System Preferences -->Universal Access-->Seeing tab -->check "Enable access for assistive devices"...

Save the script below with a name like "ABS On" and as an application/run-only.

Change "Start" to "Stop" and save with a name like "ABS Off". Save as before.

Get a scheduler, like Youpi,

http://www.versiontracker.com/morein...485&db=mac

Drag-drop and configure the start-stop times for these scripts in Youpi, and have fun.

---Copy below this line---

tell application "System Preferences"
activate
end tell

tell application "System Events"
tell process "System Preferences"
click menu item "Sharing" of menu "View" of menu bar 1
if my wait4window("Sharing") is false then return false
tell window "Sharing"
tell tab group 1
click radio button "Internet"
click button "Start"
end tell
end tell
end tell
end tell

ignoring application responses
tell application "System Preferences" to quit
end ignoring

on wait4window(this_title)
tell application "System Events"
tell process "System Preferences"
repeat with i from 1 to 60
if the name of window 1 is this_title then return true
delay 1
end repeat
end tell
end tell
return false
end wait4window

---Copy above this line---

Just teasing: I really liked the thread title
(Last edited by Musti; Mar 6, 2003 at 12:02 PM. )
     
   
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 05:53 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