• 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: Cannot get terminology correct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot get terminology correct


  • Subject: Re: Cannot get terminology correct
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 01 Oct 2014 12:27:10 +1000

Thanks for your answer Shane

Here's the log, with the method set on 'missing value'.

The NSColor is correct, it's Apple colour 'purple'.

Search & Replace duly carried out as well.

Regards

Santa

  set checkItemColor to mainMessagesAttributedText's attribute_atIndex_effectiveRange_(current application's NSForegroundColorAttributeName, (theStartOfPlainTextParagraph + 1) as integer, missing value)
current application's NSLog("checkitemColor = %@", checkItemColor)

2014-10-01 12:20:04.971 ApplescriptObjC Wizard[19722:303] *** -[NSConcreteMutableAttributedString attribute:atIndex:effectiveRange:]: value passed to argument of type ^{_NSRange=QQ} must be either `missing value' or `reference'; assuming `missing value'.
2014-10-01 12:20:04.998 ApplescriptObjC Wizard[19722:303] *** -[AppDelegate saveData]: unrecognized selector sent to object <AppDelegate @0x10504acf0: OSAID(5)>
2014-10-01 12:20:04.998 ApplescriptObjC Wizard[19722:303] *** -[AppDelegate toggleStartDate:]: *** -[AppDelegate saveData]: unrecognized selector sent to object <AppDelegate @0x10504acf0: OSAID(5)> (error -10000)
2014-10-01 12:20:13.466 ApplescriptObjC Wizard[19722:303] checkitemColor = NSCalibratedRGBColorSpace 0.5 0 0.5 1
2014-10-01 12:20:13.466 ApplescriptObjC Wizard[19722:303] -[NSCachedRGBColor string]: unrecognized selector sent to instance 0x1005304d0

On 01/10/2014, at 10:39 AM, Shane Stanley <email@hidden> wrote:


You don't tell us what happens here. What happens if you add:

current application's NSLog("checkitemColor = %@", checkItemColor)

And one request: please do a search-and-replace to change "AttributableText" to "AttributedText".

-- 
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: Cannot get terminology correct
      • From: Shane Stanley <email@hidden>
References: 
 >Still cannot get CF terminology correct (From: Brian Christmas <email@hidden>)
 >Re: Still cannot get CF terminology correct (From: Shane Stanley <email@hidden>)
 >Re: Still cannot get CF terminology correct (From: Brian Christmas <email@hidden>)
 >Re: Still cannot get CF terminology correct (From: Shane Stanley <email@hidden>)
 >Cannot get terminology correct (From: Brian Christmas <email@hidden>)
 >Re: Cannot get terminology correct (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Cannot get terminology correct
  • Next by Date: Re: Cannot get terminology correct
  • Previous by thread: Re: Cannot get terminology correct
  • Next by thread: Re: Cannot get terminology correct
  • Index(es):
    • Date
    • Thread