Syntax does not work

Discussion in 'AppleScript Studio' started by juvenille, Jul 13, 2006.

  1. juvenille

    juvenille New Member

    Joined:
    Jul 13, 2006
    Messages:
    1
    Likes Received:
    0
    Hello,

    I hope somebody can help me further!! I have a problem since yesterday with a syntax that does not work. I will describe you my problem.

    I have a definition bar (NSView (name=box#)) which contains different objects (2 NSPopUpButtons and 1 NSTextField). This definition bar is a component of the NSTabViewItem (name=bletab_delete) which is in turn a component of the NSTabView (name=bletab). Now, when I address one of these objects (here PopUpButton) inside the NSView I use the following syntax e.g.:

    set showProperty to title of popup button "Property" of view "box1" of tab view item "bletab_delete" of tab view "bletab" of window "main"

    When I run the code, the following error message appears. I know it's not so much information:

    NSReceiverEvaluationScriptError: 4 (1)

    The problem seems to be the addressing of the view "box1". I can address PopUpButtons in NSTabView's without problems as long as their aren't part of a NSView (box#). Concurrently I can address NSView's which aren't a component (inside of) of a NSTabView.

    If you see the error, please write me$

    Thanks
     
    juvenille, Jul 13, 2006
    #1
    1. Advertisements

  2. juvenille

    Ric New Member

    Joined:
    May 14, 2004
    Messages:
    4,260
    Likes Received:
    4
    Hi there and welcome !

    sorry missed this one !

    How have you got on ? Have you had any joy yet ?

    regards

    Ric
     
    Ric, Jul 19, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.