• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script to conditionaly uncheck Hide and show Front Row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • RE: Script to conditionaly uncheck Hide and show Front Row
      • From: Rahulkumar Tibdewal <email@hidden>
References: 
 >Script to conditionaly uncheck Hide and show Front Row (From: Rahulkumar Tibdewal <email@hidden>)
 >Re: Script to conditionaly uncheck Hide and show Front Row (From: Philip Aker <email@hidden>)
 >Re: Script to conditionaly uncheck Hide and show Front Row (From: Vance <email@hidden>)
 >Re: Script to conditionaly uncheck Hide and show Front Row (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • Next by Date: Re: Script to conditionaly uncheck Hide and show Front Row
  • Previous by thread: Re: Script to conditionaly uncheck Hide and show Front Row
  • Next by thread: RE: Script to conditionaly uncheck Hide and show Front Row
  • Index(es):
    • Date
    • Thread