• 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:44:14 +1000

Shane, it's OK, I realised that because the log was actually logging, the routine was all right. It turned out to be a line after the newly changed set check item etc that was at fault. So I actually had two errors, but assumed the first was not fixed after changing it to your 'Missing value'. I still don't know why it was failing before, and saying unrecognised selector sent to. Ah well, at least it's going now, thank you.

Regards

Santa


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

On 1 Oct 2014, at 10:10 am, Brian Christmas <email@hidden> wrote:

# THIS fails...
  #
set checkItemColor to mainMessagesAttributableText's attribute_atIndex_effectiveRange_(current application's NSForegroundColorAttributeName, (theStartOfPlainTextParagraph + 1) as integer, {(theStartOfPlainTextParagraph + 1) as integer, 1 as integer})

As you'd expect -- the last parameter should be missing value.
#
# SO does this…
#
set checkItemColor to mainMessagesAttributableText's attribute_atIndex_effectiveRange_(current application's NSForegroundColorAttributeName, (theStartOfPlainTextParagraph + 1) as integer, missing value)

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
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
  • Previous by thread: Re: Cannot get terminology correct
  • Next by thread: Got Attributes, do do I read the keys, please?
  • Index(es):
    • Date
    • Thread