XCode & Applescript

ScottW

Founder
Staff member
I am a TOTAL newbie here folks... but this is really fun.

I have 100 questions, but if I can get this one issue resolved, I will be over a hurdle.

I have a XCode AppleScript Application, it has multiple "tabs". On one tab, I have a button and a "textarea" or text view scroll thingy I want to put data into. I can't seem to get it to work.

on clicked theObject

set fielddata to "hello world" as string
set contents of text view 1 of scroll view 1 of tab view item of window "main" to (fielddata as string)

end clicked

I really don't know what "1" is in there, just going by examples I have found.
 
Back
Top