G'day Shane
Please find below a partial copy of the log.
While I'm at it, and while I greatly, greatly appreciate your advice, I do NOT like being called lazy. Call me 'thick headed', 'thick as a brick', 'slow to learn', but never lazy (that's 3 times you've termed me 'lazy'). I've been working on my two apps from 8am to 1pm nearly every single day for the past 7 weeks, with only the usual s**t, shave, shower, & sausage breaks. I'm simply finding it extraordinarily frustrating trying to come to grips with ApplescriptObjC, and the severe lack of documentation.
As regards the log, it tells me exactly zip more information than I already knew. The properties of the mutable object aMutableCopyOfItemForAttributes are exactly as I thought they should be.
The lineā¦
set myFontColor to aMutableCopyOfItemForAttributes's objectForKey_(colorAccess as text) # <-- tried also without the 'as text'
is failing, and as far as I can tell, it should't be (why is it saying 'unrecognised selector' ?).
After taking your sage advice, I've come full circle.
If anyone else would like to jump in here with advice, please feel free!
Regards
Brian Christmas
aMutableCopyOfItemForAttributes
2014-09-25 13:10:18.510 AppleScriptObjC Wizard[32727:303] N{ NSColor = "NSCalibratedRGBColorSpace 0.98823 0.2 0.1098 1"; NSFont = "\"Cochin-Bold 16.00 pt. P [] (0x10502ebf0) fobj=0x10011c720, spc=4.16\""; } 2014-09-25 13:10:18.510 AppleScriptObjC Wizard[32727:303]
2014-09-25 13:10:18.510 AppleScriptObjC Wizard[32727:303] -[NSConcreteMutableAttributedString objectForKey:]: unrecognized selector sent to instance 0x101826920 2014-09-25 13:10:18.540 AppleScriptObjC Wizard[32727:303] *** -[AppDelegate saveData]: unrecognized selector sent to object <AppDelegate @0x10501d310: OSAID(5)> 2014-09-25 13:10:18.541 AppleScriptObjC Wizard[32727:303] *** -[AppDelegate toggleStartDate:]: *** -[AppDelegate saveData]: unrecognized selector sent to object <AppDelegate @0x10501d310: OSAID(5)> (error -10000)
set aMutableCopyOfItemForAttributes to itemForAttributes's mutableCopy() # # The following two lines can be used to double-check that we've actually selected an alpha-numeric character, not a linefeed # #set theItemAsString to aMutableCopyOfItemForAttributes's |string|() #<= 'N' #display dialog theItemAsString as text # set colorAccess to current application's NSForegroundColorAttributeName as text # <= 'NSColor' set p to 1.5 say 8 #display dialog colorAccess as text # log (return & return & "aMutableCopyOfItemForAttributes" & return & return as text) log (aMutableCopyOfItemForAttributes) # log (return & return as text) # This method freezes # set myFontColor to aMutableCopyOfItemForAttributes's objectForKey_(colorAccess as text) # say 9 set {red1, green1, blue1} to myFontColor's {word 2, word 3, word 4}
On 25/09/2014, at 9:54 AM, Shane Stanley < email@hidden> wrote: On 25 Sep 2014, at 9:27 am, Brian Christmas < email@hidden> wrote: # This method freezes, but WHY?
You've got the log: you tell us.
Sorry if I sound jaded, but throwing up nonsense and expecting people to fix it for you is just lazy.
|