changing text color

hi

I use this to change color of text in a text field using ASStudio

set text color of text field "DONE" of window "main" to {65535,0,0}

how using ASObjc would I do this?

cheers

If you’re new to this, than I want you to find this yourself so you can learn.
Go into Xcode and in the menu bar, go to Help → Developer Documentation. A window should pop up. Search for NSTextField (text field’s class )in the search field. It’s should be the first result. Then look under “Instance Methods.”
You will find an action that changes the text color. I’ll give help if you need it, and I’ll tell you how to put it into your app.

OK, I’d better not break Dylan’s ban. But you’re going to need a color, so this might be useful:

set myRed to current application's NSColor's redColor()

I was going to mention that, Shane. My ban… :lol: I just want him to learn how to find methods himself. Its better than having him waste his valuable time waiting for a response on this site.

hey guy’s, good on ya, :lol:, like your style

well sending me into that area Dylan opened my eyes to the point that they popped out, but!, what it did
do (which is what you wanted) was for me to get out and learn, so armed with some info from setTextColor:
and google I ended back here with a tutorial written by Craig Williams, great resource, cheers Craig

http://macscripter.net/viewtopic.php?id=30373

cheers

See… now you know what to do! Happy coding.