Re: Script to conditionaly uncheck Hide and show Front Row
Re: Script to conditionaly uncheck Hide and show Front Row
- Subject: Re: Script to conditionaly uncheck Hide and show Front Row
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 12 May 2009 22:15:44 +0200
I wish to comment the two 'equivalent' proposals.
( first proposal)
if(value of checkbox 1 is 1) then
(* here initial value is 1 *)
click checkbox 1 (* set checkbox value to 0 *)
else
(* here initial value is 0 *)
click checkbox 1 (* set checkbox value to 1 *)
end if
as we click the box in both cases, in practice I would code it :
click checkbox 1
(second proposal)
if(value of checkbox 1 is 1) then
(* here initial value is 1 *)
click checkbox 1 (* set checkbox value to 0 *)
end if
(* so here, value of checkbox is 0 *)
if(value of checkbox 1 is 0) then
(* here value is 0 which may be the original one or the one set by
the first click *)
click checkbox 1 (* set checkbox value to 1 *)
end if
(* so here, value of checkbox is 1 *)
In fact these proposals aren't equivalent.
They are completely different.
The first one is a switcher
The second one always sets the box's value to 1
In practice I would code it :
if (value of checkbox 1 is 1) then click checkbox 1 (* set checkbox
value to 0 *)
click checkbox 1
I don't know if it's the wished result because I don't use FrontRow.
If we want to exit with the value 0 we may use:
if(value of checkbox 1 is 1) then
(* here initial value is 1 *)
click checkbox 1 (* set checkbox value to 0 *)
end if
(* here value is 0 which may be the original one or the one set by
the preceeding click *)
In practice I would code it :
if (value of checkbox 1 is 1) then click checkbox 1 (* set checkbox
value to 0 *)
Yvan KOENIG (from FRANCE mardi 12 mai 2009 22:07:41)
_______________________________________________
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