• 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: Yosemite decimal number conversion error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yosemite decimal number conversion error


  • Subject: Re: Yosemite decimal number conversion error
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 29 Oct 2014 17:12:08 +1100

On 29 Oct 2014, at 3:44 pm, Brian Christmas <email@hidden> wrote:

Is anyone able to explain why the discrepancy please?

No idea. This:

use AppleScript version "2.4"
use framework "Foundation"
use scripting additions

set theRequiredNSColor to current application's NSColor's brownColor()
set theRGBValuesToDisplay to "Values:  " & return & theRequiredNSColor's redComponent() & " " & theRequiredNSColor's greenComponent() & " " & theRequiredNSColor's blueComponent() as text

returns:

--> "Values:  
0.6 0.4 0.2"


-- 
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: Yosemite decimal number conversion error
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Yosemite decimal number conversion error
  • Next by Date: Re: Yosemite decimal number conversion error
  • Previous by thread: Re: Yosemite decimal number conversion error
  • Next by thread: Re: Yosemite decimal number conversion error
  • Index(es):
    • Date
    • Thread