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".
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
|