• 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: Darn Radio button question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Darn Radio button question


  • Subject: Re: Darn Radio button question
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 29 Mar 2016 22:20:19 +1100

On 29 Mar 2016, at 1:43 PM, Brian Christmas <email@hidden> wrote:

I cannot work out how to get the set values for whichever of the three is set.

There's been a change of behavior when comparing two variables that point to the same object -- you can't rely on a simple AppleScript test for equality.

This works here:

on resetTextLineReplace:sender
set textLineReplace to ""
if sender's isEqualTo:radioSelectButtonOne then
set textLineReplace to "replace"
else if sender's isEqualTo:radioSelectButtonTwo then
set textLineReplace to "before"
else if sender's isEqualTo:radioSelectButtonThree then
set textLineReplace to "after"
end if
display dialog textLineReplace
end resetTextLineReplace:


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Darn Radio button question
      • From: Brian Christmas <email@hidden>
References: 
 >Darn Radio button question (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Compiling error question.
  • Next by Date: Re: Darn Radio button question
  • Previous by thread: Darn Radio button question
  • Next by thread: Re: Darn Radio button question
  • Index(es):
    • Date
    • Thread