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
