HELP! I _DESPERATELY_ need AppleScript Studio help!

simX

Unofficial Mac Genius
Please guys, anything will help. ANY suggestions. Anything that might help me solve my problem. I posted this in the Programming thread, but I didn't get any help, so I'm hoping the higher traffic here will help.

I'm making a program with AppleScript Studio, and in my interface (built using Interface Builder), I have a tab collection. I have 3 tabs. Inside each of the tabs, I have a bunch of progress bars and text fields that I want to refer to. The problem is, I can't seem to figure out how!

Usually, the format for a progress bar in a normal window is:

progress indicator "ProgressBar1" of window "Window1"

For tabs, I've tried all of these combinations:

progress indicator "ProgressBar1" of tab view "TabCollection" of window "Window1"

progress indicator "ProgressBar1" of tab view item "Tab1" of window "Window1"

progress indicator "ProgressBar1" of tab view item "Tab1" of tab view "TabCollection" of window "Window1"

and even the simple:

progress indicator "ProgressBar1" of window "Window1"

None of these things work.

Maybe I'm doing something wrong somewhere else, but I really don't think so -- I've triple and quadruple checked that I'm referring to the correct names and that each item DOES have an AppleScript name. But, if someone could tell me exactly how to refer to items inside these tabs, I could figure out precisely where my problem is.

Please, ANY reasonable suggestions will do, no matter how trivial they might seem. The other day, I didn't name a window, and that's what was causing my problem.
 
I haven't figured out how to refer to objects within tabbed panes either in AppleScript Studio.

-Rob
 
Tabs -- use ...of view of tab view item 1 of tab view 1 of window "window"

Or did you do that already?

Here's some other tips from that site.

Secure text -- access it like normal text, refer to it as of text field and don't use secure

color wells -- use call method "color" of object (color well "color" of window "main") for the time being

Added edit: Steve's ASS Forums

Some samples
 
Twyg: You're absolutely right. For some stupid reason, Apple added an extra "view of" in there just to throw all of us AS Studio developers off. But at least now I can do it (I also got e-mailed this answer after posting to the AS Studio mailing list that Apple has set up).

Thanks, again.
 
Back
Top