OT: Applescript help
OT: Applescript help
- Subject: OT: Applescript help
- From: "Jason T. Slack" <email@hidden>
- Date: Thu, 9 Feb 2006 20:09:14 -0500
How can I tell AppleScript to click a button?
I have the following snippet:
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.energysaver"
tell application "System Events"
tell process "System Preferences"
tell window "Energy Saver"
set theButton to the button "Schedule..."
click theButton
end tell
end tell
end tell
end tell
But it does not like the set theButton Line.
Any thoughts?
-Jason
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden