Morning all.
I’m new to xcode but not to applescript, so am prepared to wear the newbie hat of shame if need be
Anyway, I’m struggling with what may be considered a simplistic task: Changing the colour of the text in an NSTextfield. I don’t want to change some of the text, but ALL of it…
I’ve tried combinations of the following, but am guessing that some of them may have come from AppleScript Studio examples:
set the fill color of my TFComPasswordStatus to "green"
set the color of the text contents of TFComPasswordStatus to {60000, 1, 1}
set text color of my TFComPasswordStatus to {65500, 65500, 65500}
I’m stuck. When in the UI builder, under bindings, There is also text color. If I bind it to a property
property TFCurrentPasswordColor : missing value -- bound property
I get the most hideous of errors: 2012-12-10 09:42:09.450 VerifyAndChangePassword[5160:303] Cannot create NSColor from object <AppDelegate @0x104324210: OSAID(4)> of class AppDelegate
Lastly, this is the top of my current code…
script AppDelegate
property parent : class "NSObject"
property TFCurrentPassword : "" -- bound property
property TFCurrentPasswordColor : missing value -- bound property
I was under the impression that NScolor was inherited from NSObject, and, thus, was not needed to be included…
Help!
AppleScript: 4.5.2
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)