Re: Testing a checkbox status in Safari
Re: Testing a checkbox status in Safari
- Subject: Re: Testing a checkbox status in Safari
- From: Jim Brandt <email@hidden>
- Date: Tue, 5 May 2009 15:38:35 -0500
Bryan,
Thanks ... that works perfectly.
Jim
On May 5, 2009, at 3:11 PM, Bryan Vines wrote:
** I don't know if you get the list digest or individual messages.
I only sent this to the digest, so I'm sending it to you directly
as well. **
Try this code. It assumes the frontmost window is the source window.
It will get the value of the checkbox.
If the value is 1, the checkbox is checked, and the code will
uncheck it.
If the value is 0, the checkbox remains unchanged.
activate application "Safari"
tell application "System Events"
tell process "Safari"
set checkBoxValue to get value of checkbox "Hide extension" of
sheet 1 of window 1
if checkBoxValue is 1 then click checkbox "Hide extension" of
sheet 1 of window 1
end tell
end tell
--
Bryan Vines
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden