Skip navigation.
 
mlRe: Applescript Question
FROM : J. Todd Slack
DATE : Tue Jun 24 19:57:16 2008

Hi SD.

I have and clearly stated what I am looking to accomplish and one 
person provided advice, but not really a solution. The lists seem very 
low traffic.

I will look up how to use AppleScript to select a tab and see what I 
can find. I have tried prior to my post with no luck.

Thanks for your reply. I appreciate you taking the time to do so.

-Jason

On Jun 24, 2008, at 10:48 AM, SD wrote:

> You should probably post to this list, they would have more 
> knowledge for you:
>
> http://lists.apple.com/mailman/listinfo/applescript-studio
>
> ______________________________________________________________________
> Previous message on 6/24/08 at 10:44 AM -0700
> **********************************************************************

>> Sorry, it's been a long time since I worked with Applescript in 
>> that manner.
>>
>> The idea would be:
>> make the window visible
>> set the tab you want to be visible/front
>>
>> Hope that helps.
>>
>> SD.
>>
>> ______________________________________________________________________
>> Previous message from J. Todd Slack on 6/24/08 at 10:34 AM -0700
>> **********************************************************************

>>>
>>> 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.

>>
>>
>> --
>> ==========================================
>> SD
>>
>> WARNING: Programming may be habit forming.

>
>
> --
> ==========================================
> SD
>
> WARNING: Programming may be habit forming.

Related mailsAuthorDate
mlApplescript Question J. Todd Slack Jun 24, 19:14
mlRe: Applescript Question SD Jun 24, 19:28
mlRe: Applescript Question J. Todd Slack Jun 24, 19:34
mlRe: Applescript Question SD Jun 24, 19:44
mlRe: Applescript Question SD Jun 24, 19:48
mlRe: Applescript Question J. Todd Slack Jun 24, 19:57
mlRe: Applescript Question -- SOLVED J. Todd Slack Jun 24, 23:28