Set State of button in NSTabview

Hi,
i am trying to set the state "enabled or not" of a NSbutton which is located on a Tab view item on a window (NSwindow)
So i do have:
* "myWindow" = NSWindow
* "tabView" = NSTabview
* "clean" = NsTabView Item or Tab not sure howto call it
* "cleanUserCache" = NSButton
My code is executed in the *on opened* section of the AppleScript
I have tried several combinations i.e:
set testerlein to state of button "cleanUserCache" of view of tab view item "clean" of tab view "tabView"
display dialog testerlein
idea: read the state and save it as first test. does not work.
set state of button "cleanUserCache" of view of tab view item "clean" of tab view "tabView" to 1
does not work
set enable of button "cleanUserCache" of view of tab view item "clean" of tab view "tabView" to true
does not work
the examples above are executed in a *tell window "myWindow" ... end tell* section
changing checkboxes on a simple window worked like that for me:
tell window "myWindow"
set state of button "bla" to 0
end tell
But till now i haven't found the correct code for the new case.
any idea how to set the state in AppleScript ?
Message was edited by: fidel-castro

self-answering is better then nothing.
found the solution 3 minutes after posting this thread
set enabled of button "cleanUserCache" of view of tab view item "clean" of tab view "tabView" to 0

Similar Messages

  • How do I set the Submit button to send the information directly to a specific email address?

    How do I set the Submit button to send the information directly to a specific outside email address? It isn't clear to me where or how it says that you can do this.

    Is this for a web form or a PDF? If PDF, you would have to use Acrobat to edit the form and replace the submit button action with either a "Submit a form" action using a mailto type URL, or use the doc.submitForm statement to do the same.

  • Apex listener installed no test and set bind variables buttons

    I have installed Apex listener and while creating restful service module i dont see test and set bind variables buttons in the source region.
    I went through the many posts. Installed apex listener successfully.
    getting http://localhost:8080/ords/ started message when i start the listener.
    and using Apex URL as http://localhost:7780/pls/htmldb.
    What are the possibilities for this issues?
    Please help me on this.
    Thanks
    Chandran

    Apex listener version is 2.0.9
    Apex version is 4.2

  • How do i set the home button to refresh open tabs instead of opening new ones each time i click on it

    Everytime i click on the "home" button, FF 3.6 opens my three home pages as three new tabs. If i click twice, it opens three more. In IE, if i click the home button i have a choice to either refresh the three tabs starting with which ever one is open (for example, if my second tab page is where I am, that becomes home page #1 and so forth) OR i can select the specific home page i want to return to via a drop down.
    At a minimum, I'd like to set my home button to just open using currently open tabs and not appending. It must be possible b/c DH's FF browser does not do this. What am I missing?

    The best way to keep your home page in the tab is to open other links in a new tab with a middle-click.<br />
    Clicking the home page always open a new set, so you would have to close the current tabs first to prevent getting multiple home page sets.<br />
    I don't know if there is still an extension that can open the home pages and replace the current set.
    See also:
    *https://addons.mozilla.org/en-US/firefox/addon/multiple-tab-handler/

  • How can I set the highlighted button according to the last chapter viewed?

    I have a main menu with four buttons, each one of which takes me to a different chapter of track 1. When I press the MENU button on the remote and return to the main menu, I would like for the highlighted button to be the one corresponding to the last chapter viewed. How can I do this?
    Page 247 of the DVDSP manual says the following:
    Highlight Condition: Provides an alternative method to the Default Button setting for determining which button to highlight. When Highlight Condition is set to Default, the Default Button setting supplies the button highlight setting. When Highlight Condition is set to one of its stream settings (audio, subtitle, camera angle), the number of the stream last played determines the button to highlight. This setting can be overridden by any element that jumps to this menu, based on its jump setting.
    I know that SPRM 7 contains the value of the current chapter, so when returning to the main menu I would like to use SPRM 7 to set the Highlight Condition, but I don't see a way to do that, since the only options for Highlight Condition are audio stream, subtitle stream, and camera angle.

    Ah. Pre-scripts.
    I would do this by tracking the menu, certainly, but I'd do that by using a set of scripts not as prescripts. So, if your main menu is the start up item for the disc, create a script that reads:
    mov GPRM0, 1
    Jump main menu
    and set that as the start up item instead. Now create a second script:
    mov GPRM0, 2
    Jump Menu2
    and use both of these scripts on any button that goes to a menu. For example, on the Main Menu you'll have a button that links to menu2... point that button to script 2 instead of the menu itself. Similarly, on the chapter menu if you've got a button that takes you back to the main menu, point that button to the first script.
    For your menu call script you can now do this:
    mov GPRM1, SPRM8
    div GPRM1, 1024
    Jump Main menu \[GPRM1\] if (GPRM0 = 1)
    Jump Menu2 \[GPRM1\] if (GPRM0 = 2)
    This could also be the end jump script for both tracks, too.
    Now, Main menu will have three buttons, one for track 1, one for track 2 and one to go to the second script. Track 1 menu call and end jump goes to the last script, track 2 does the same. On the chapter select menu you point each button to the relevant chapter in track 1 and let the scripts do their job whenever a menu call is made or the track ends. The script will see you were on Menu2 and send you there, and SPRM8 will get you back to the button you last selected.
    If, instead of this, you want to go to the button that represents the last chapter played on the chapter menu, and not the last button pressed, but still be able to get to the last button on the main menu then the script changes a bit:
    Goto 5 if (GPRM0 = 2)
    mov GPRM1, SPRM8
    div GPRM1, 1024
    Jump Main menu \[GPRM1\]
    mov GPRM1, SPRM7
    Jump Menu2 \[GPRM1\]
    This sends you to the button relevant to the last chapter played if you came from the chapter menu, by jumping through the script to the bit that deals with Menu2, else it will work out the last button selected (and we assume this must have been on the Main menu because GPRM0 !=2 in that case), and send you to the main menu with that button highlighted.
    If you've got any more scripts than that running, you've got too many... and get rid of the pre-scripts - they are more trouble than not, and don't work if you are using GPRM based button jumps anyway.

  • ID 5.5 Interact. PDF, cannot remove white background for Multi-States and buttons.

    Hi
    I am working on an Interactive PDF Portfolio document. The problem I have is with Multi-State object feature with several buttons going to states that need to be exported as a SWF and imported back into InDesign 5.5. See, the background of my entire doc. is GREY, but when I import the SWF (as directed in Lynda.com videos correctly) and export the entire doc as Interactive PDF and view it in Adobe Acrobat Pro (version 10.1.1) is when all the trouble starts.
    When I try to get rid of the WHITE background around the Multi-State objects and the buttons for them (using Select Object Tool and then control+click on it to change the Properties to Transparent Background Appearance) it does not change, even when I go forward and backward to the page.
    Does the option of removing white background and making it transparent work only for Animation, but not Multi-State feature with buttons?
    Can anyone suggest any other tecnique to create a nice slide show that works in Interactive PDF in ID CS5.5? Please..
    Sincerely,
    in need of help,
    Eve

    I have 8 Multi-State objects in one stack on the left and the 8 buttons for each state in the stack on the right. The background of my document is dark grey. There is space inbetween Multi-State objects and the buttons that show the grey background. But after exporting as SWF the Multi-States together with the buttons and placing the SWF back in the PDF file, the space inbetween Multi-States and buttons that is supposed to show the grey background appears white. The problem is that I cannot even change this white background to transparent in Acrobat Pro, as well. I used to do that to animations and it worked, but not in this case.

  • T-SQL: SET Statement Using a Case Statement is not returning a value

    SQL VER:  2008
    Please see the attached screenshot from SSMS.  The Set statement  below is not returned a value or may be returning a zero value.  The AllocPercent field is set to zero in code preceeding this Update Statement:
    AllocPercent
    =
    CASE
    WHEN AllocBase
    IS
    NULL
    OR AllocBase
    = 0
    THEN 0
    ELSE PM_Input/AllocBase
    END
    As you can see by the screen shot from the Select Statement that is displaying the results after the Update Statement is completed, the value of AllocPercent is = 0 even though all the values necessary for it to compute a value > 0 are present in the
    table.  Incidentally, the values in both the AllocBase and PM_Input fields are the same before the Update Statement is ran, as shown in the Select ran after the Update Statement.
    I have ran this type of code several times with never a problem.  This seems really simple, but I just can't seem to get it to compute. 
    Any help would be greatly appreciated.
    Regards,
    bob sutor
    Bob Sutor

    Yep--This statement is running in a Stored Procedure and inside its own block statement.
    I did get a response that suggested I change the SET statement as follows, that worked:
    AllocPercent
    = CASE WHEN AllocBase IS NULL OR AllocBase = 0 THEN 0.00 ELSE cast(PM_Input*1.0/AllocBase*1.0
     as decimal(6,2)) END
    Your response did get me thinking which was great!  I appreciate your help.
    Regards,
    ...bob sutor
    Bob Sutor

  • DB statements in button actions in view

    can i write the code of select, update etc statements in BUTTON Ui element in a View.
    is it mandatory to write the code using Classbuilder(SE24)(OO ABAP) in WD4A.
    just a simple question, i am new to WDABAP.
    clarify me.
    thanks n reagrds
    rk

    Hi Ramakrishna,
    WD is based on MVC architecture... It tells seperation of Presentation and Bussiness Logic. If you follow this you need to seperate business logic.
    That depends on project, and Client, You can write Select statements in methods also, but Recomendable is Follow MVC.
    Check this about MVC..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ArchitectureofWebdynproforABAP
    MVC Web Dynpro  for ABAP
    Cheers,
    Kris.
    Edited by: kissnas on Apr 19, 2011 6:52 AM

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • How do you set the menu button for a playlist?

    I have a "Play All" playlist that I want to return to the main menu (when the menu button on a DVD remote is pressed). Right now, it's going to one of my sub menus. I can't figure out why this is happening. Any help would be greatly appreciated.

    Thanks for the responses.
    My "Play All" playlist is not a button on a menu. It is actually the "First Play" of my DVD. I want the user to be able to hit the menu on their remote and then go to the main menu. What's happening is the menu button is going to a sub menu. I find it frustrating that you cannot set the remote button options for a playlist. If this can't be done, is there at least a way to set my main menu screen as my "top menu"? I don't want to set all of my timelines to the main menu. If I were to set it that way, all of the clips from the sub menus would go back to the main menu (when the menu remote button is pressed).

  • How to set forms 11g buttons to display icons

    Hi,
    How to set forms 11g buttons to display icons.Actually i have tried so many links
    http://blog.newtrics.com/?p=936
    Re: Icon image not showing in forms 11g RELEASE 2
    but i am not getting image on the Oracle Form.Bad Image is always showing.
    I am trying from 1 week So plz help me Its very urgent .
    Thanks
    Anup
    Edited by: 888679 on May 22, 2012 4:37 AM

    am afraid u r configuring the wrong file path pls verify....
    formsweb.cfg
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\conf
    registry entries as well
    Hope this helps...
    Regards,
    Amatu Allah
    Edited by: Amatu Allah on May 22, 2012 6:17 AM

  • How to set a default button in a JFileChooser dialog?

    How do I set the default button in a JFileChooser dialog?
    Thanks in advance!
    Thomas

    public static JButton searchByText(Component comp, String[] texts) {
        if (comp instanceof JButton) {
            JButton btn = (JButton) comp;
            String text = btn.getText();
            for(int j=0; j<texts.length; ++j)
                if (text.equals(texts[j]))
                    return btn;
            return null;
        if (comp instanceof Container) {
            Container cont = (Container) comp;
            for(int j=0, ub=cont.getComponentCount(); j<ub; ++j) {
                JButton result = searchByText(cont.getComponent(j), texts);
                if (result != null)
                    return result;
        return null;
    }You can call this method, passing it your JFileChooser and:
    String[] approves = {"Open", "Save"};

  • I can't find the set up sync button

    I know this is stupid but I can't find the set up sync button. I want to transfer the bookmarks from my old PC and have read how to do it but when I click on the orange Firefox button top left of my screen the only option appears to be sync now. Any help will be gratefully received. Thanks Joe

    If you see sync now then this means that Sync is already installed on that computer and working.
    *https://support.mozilla.org/kb/add-a-device-to-firefox-sync
    *https://support.mozilla.org/kb/firefox-sync-troubleshooting-and-tips
    Did you create a new sync account or used the previously used email and password and sync key?
    Note that sync isn't supposed to be used as a means of transferring data from one computer to another, so you need to be careful with not overwriting data stored on the Sync server.
    Check the Sync options when you have used Sync before and want to keep previously stored data on the Sync server.
    * click the "Sync Options" button at the bottom to select what to sync (Sync Options only affect the first sync)
    Select this choice if you want to restore data from the Sync server:
    * "Replace all data on this device with my Sync data"
    You can also copy files to an USB stick to transfer them to another computer.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Setting default alert button at runtime

    Setting default alert button at runtime
    Sometime I want Button1 to be default and sometimes I want Button2 to be default.
    Please tell me how to change the default button at runtime.
    Thanks
    Claus Hansen [email protected]

    Beware of a slight bug in at least some versions. If the user dismisses the alert using the [X] close window control it fires a particular button which is not neccesarilly the default one. I always ensure that I make the default button the one which the control fires.

  • Set of Radio Buttons in a page

    Hi,
    I am new to OAF. My use case is to create a page with set of 'Yes/No' questionnaires. So, there will be set of radio buttons associated with each questions.
    Please guide me to achieve this in OAF.

    Hi,
    You can create the radio button in processRequest by using (OAMessageRadioButtonBean)webBean.createbean()
    Also, check if this link can help u : http://oracleanil.blogspot.in/2009/04/radio-group-event.html
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Migrate files, etc. to new user?

    I just had to create a new user acct with admin privileges to solve a problem with Adobe Bridge. Is there a way to carry over all of the settings from my original user acct? Thanks Peter

  • BE (Bill of Exchange) purchased back from bank before due date

    I have posted BE through either FBW1+ FBW2 or through F-36. Due date is 1 mth in the future. Then i have discounted it through F-33 using bank clearing liab account (credited here and Post automatically only) Settings in OBYK have also been done for

  • Return (122) and Reverse (102) the same document

    Hi, I made an goods receipt  mov 101, but the stock was wrong, then reversal document with 102 mov, then I can make a return (mov 122) for the same document that was reversed. Can anyone help me, how can I block mov 122 for the documents that have 10

  • New lightroom mobile synch question between DSLR and iPad

    If you are in the field and you synch wirelessly to the iPad or use import feature from cards, will lightroom mobile synch seamlessly to lightroom CC. For example, starting workflow from camera to iPad to computer?

  • Hard Drive Failed, New Laptop--Lost songs

    On my computer that had all of my itunes on it, the hard drive crashed and we can't get it back. Is there any way I can get the songs back if I still have all of the reciepts for the songs when the credit card you were using was cancelled while the h