FROM : J. Todd Slack
DATE : Tue Jun 24 19:34:10 2008
Hi SD.
Can you explain what you mean:
I assume something like:
load nib "MainMenu"
set aboutWindow to window "RMWindow"
set visible of aboutWindow to true
But after the last line then cycle through the tabs?
I am not sure how to do this, do you have thoughts?
Thanks!
-Jason
On Jun 24, 2008, at 10:28 AM, SD wrote:
> 4 or 5 years ago I did a whole application in Applescript.
>
> One thing I remember from it, was that in order to setup the UI
> widgets I had to rotate through the tabs to make the widget visible
> before I could set it up.
>
> Maybe you have the same problem. Try opening the window first, then
> set the tab.
>
> SD.
>
> ______________________________________________________________________
> Previous message from J. Todd Slack on 6/24/08 at 10:14 AM -0700
> **********************************************************************
>> Hi All,
>>
>> I have an Applescript question.
>>
>> How, from Applescript, can I load a nib, and open a particular
>> window and have it bring up the right tab control on the fork?
>>
>> I have a window with tabs and depending upon menu option selected,
>> I want the right tab shown.
>>
>> Here is what I have so far:
>>
>> on choose menu item
>> tell me to activate
>>
>> load nib "MainMenu"
>>
>> set aboutWindow to window "RMWindow"
>>
>> set visible of aboutWindow to true
>>
>> end choose menu item
>>
>> This code works and I get the window open, but not the correct tab
>> displayed.
>>
>> If I change to:
>>
>> on choose menu item
>> tell me to activate
>>
>> load nib "MainMenu"
>>
>> set aboutWindow to window "RMWindow" of tab view item "RMTabAbout"
>> of tab view "RMTabView"
>>
>> set visible of aboutWindow to true
>>
>> end choose menu item
>>
>> I thought this would work, but I get an AppleScript error of: Can't
>> get «class tabV» "RMTabView". (-1728)
>>
>> I am not sure why this is, my tab view object's AppleScript ID is:
>> RMTabView
>>
>> The tab is named: RMTabAbout and has an index of 4
>>
>> I am lost, not sure what I am doing wrong. Can anyone explain so I
>> can learn?
>>
>> Thanks,
>>
>> -Jason
>>
>>
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
> --
> ==========================================
> SD
>
> WARNING: Programming may be habit forming.
DATE : Tue Jun 24 19:34:10 2008
Hi SD.
Can you explain what you mean:
I assume something like:
load nib "MainMenu"
set aboutWindow to window "RMWindow"
set visible of aboutWindow to true
But after the last line then cycle through the tabs?
I am not sure how to do this, do you have thoughts?
Thanks!
-Jason
On Jun 24, 2008, at 10:28 AM, SD wrote:
> 4 or 5 years ago I did a whole application in Applescript.
>
> One thing I remember from it, was that in order to setup the UI
> widgets I had to rotate through the tabs to make the widget visible
> before I could set it up.
>
> Maybe you have the same problem. Try opening the window first, then
> set the tab.
>
> SD.
>
> ______________________________________________________________________
> Previous message from J. Todd Slack on 6/24/08 at 10:14 AM -0700
> **********************************************************************
>> Hi All,
>>
>> I have an Applescript question.
>>
>> How, from Applescript, can I load a nib, and open a particular
>> window and have it bring up the right tab control on the fork?
>>
>> I have a window with tabs and depending upon menu option selected,
>> I want the right tab shown.
>>
>> Here is what I have so far:
>>
>> on choose menu item
>> tell me to activate
>>
>> load nib "MainMenu"
>>
>> set aboutWindow to window "RMWindow"
>>
>> set visible of aboutWindow to true
>>
>> end choose menu item
>>
>> This code works and I get the window open, but not the correct tab
>> displayed.
>>
>> If I change to:
>>
>> on choose menu item
>> tell me to activate
>>
>> load nib "MainMenu"
>>
>> set aboutWindow to window "RMWindow" of tab view item "RMTabAbout"
>> of tab view "RMTabView"
>>
>> set visible of aboutWindow to true
>>
>> end choose menu item
>>
>> I thought this would work, but I get an AppleScript error of: Can't
>> get «class tabV» "RMTabView". (-1728)
>>
>> I am not sure why this is, my tab view object's AppleScript ID is:
>> RMTabView
>>
>> The tab is named: RMTabAbout and has an index of 4
>>
>> I am lost, not sure what I am doing wrong. Can anyone explain so I
>> can learn?
>>
>> Thanks,
>>
>> -Jason
>>
>>
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
> --
> ==========================================
> SD
>
> WARNING: Programming may be habit forming.
| Related mails | Author | Date |
|---|---|---|
| J. Todd Slack | Jun 24, 19:14 | |
| SD | Jun 24, 19:28 | |
| J. Todd Slack | Jun 24, 19:34 | |
| SD | Jun 24, 19:44 | |
| SD | Jun 24, 19:48 | |
| J. Todd Slack | Jun 24, 19:57 | |
| J. Todd Slack | Jun 24, 23:28 |






Cocoa mail archive

