SnpCreateTabbedPaletteScriptUI not working. Help me.

I want to have a new pallete window on my bridge and the SnpCreateTabbedPaletteScriptUI script from SDK samples helped.
But only when I try it from running from Extendedscript Toolkit CS5.
When I put it on running from Bridge startup scripts, it doesn't work anymore.
I guess it has to do with the windows7 itself??? But I don't know.
I'm running as administrator.
The SnpCreateTabbedPaletteScriptUI code:
// ADOBE SYSTEMS INCORPORATED
// Copyright 2008 Adobe Systems Incorporated
// All Rights Reserved
// NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the
// terms of the Adobe license agreement accompanying it.  If you have received this file from a
// source other than Adobe, then your use, modification, or distribution of it requires the prior
// written permission of Adobe.
@fileoverview Shows how to create a TabbedPalette in Bridge with ScriptUI components.
@class Shows how to create a TabbedPalette in Bridge with ScriptUI components.
<h4>Usage</h4>
<ol>
<li>    Run the snippet in the ExtendScript Toolkit (see Readme.txt), with Bridge CS5 as the target.
<li>You should find that a tabbed palette has been added to the Bridge browser window.
</ol>
<h4>Description</h4>
<p>Adds a script-defined tabbed palette to the Bridge browser window. 
<p>The palette is of the "script" type, and contains ScriptUI components,
text fields and buttons. The buttons have event handlers that
change the values in the text fields.
<p>The new palette appears in the default upper-left position in the browser. It can be
  dragged to other positions. <br />
@see SnpCreateWebTabbedPalette
@constructor Constructor.
function SnpCreateTabbedPaletteScriptUI()
     The context in which this snippet can run.
     @type String
    this.requiredContext = "\tExecute against Bridge main engine.\nBridge must not be running";
    $.level = 1; // Debugging level
    this.paletteRefs = null;
Functional part of this snippet. 
Creates the TabbedPalette object, defining the content with
ScriptUI components, and adds the palette to all open Bridge browser windows.
    @return True if the snippet ran as expected, false otherwise. 
    @type Boolean
SnpCreateTabbedPaletteScriptUI.prototype.run = function()
    var retval = true;
    if(!this.canRun())
        retval = false;   
        return retval;
    this.paletteRefs = new Array();
    var wrapper = this;
    // Create and add the TabbedPalette object and its contents.
    function addScriptPalette(doc)
        // Create the TabbedPalette object, of type "script"
        var scriptPalette = new TabbedPalette( doc, "SnpCreateTabbedPaletteScriptUI", "SnpSUIPalette", "script" );
        wrapper.paletteRefs.push(scriptPalette);   
        // Create a ScriptUI panel to be displayed as the tab contents.
        var tbPanel = scriptPalette.content.add('panel', [25,15,255,130], 'The Panel');
        // Add the UI components to the ScriptUI panel
        tbPanel.txtFieldLbl = tbPanel.add('statictext', [15,15,105,35], 'Times Clicked:');
        tbPanel.txtField = tbPanel.add('edittext', [115,15,215,35], '0');
        tbPanel.addBtn = tbPanel.add('button', [15,65,105,85], 'Add');
        tbPanel.subBtn = tbPanel.add('button', [120, 65, 210, 85], "Sub");
        // Define event listeners that implement behavior for the UI components
        tbPanel.addBtn.onClick = function()
            var txt = tbPanel.txtField;
            txt.text = parseInt(txt.text) + 1;
        tbPanel.subBtn.onClick = function()
            var txt = tbPanel.txtField;
            txt.text = parseInt(txt.text) - 1;
    // Add the palette to all open Bridge browser windows
    for(var i = 0;i < app.documents.length;i++)
        addScriptPalette(app.documents[i]);
    return retval;
  Determines whether snippet can be run given current context.  The snippet
  fails if these preconditions are not met:
  <ul>
  <li> Must be running in Bridge
  </ul>
  @return True is this snippet can run, false otherwise
  @type boolean
SnpCreateTabbedPaletteScriptUI.prototype.canRun = function()
    // Must run in Bridge
    if(BridgeTalk.appName == "bridge")
        return true;       
    // Fail if these preconditions are not met. 
    // Bridge must be running,
    $.writeln("ERROR:: Cannot run SnpCreateTabbedPaletteScriptUI");
    $.writeln(this.requiredContext);
    return false;
"main program": construct an anonymous instance and run it
  as long as we are not unit-testing this snippet.
if(typeof(SnpCreateTabbedPaletteScriptUI_unitTest) == "undefined") {
    new SnpCreateTabbedPaletteScriptUI().run();

Yes you could call the script from a menu item..
Change...
if(typeof(SnpCreateTabbedPaletteScriptUI_unitTest) == "undefined") {
    new SnpCreateTabbedPaletteScriptUI().run();
To:-
var newCommand = new MenuElement( "command", "SNP Test", "at the end of tools" , "xxxx" );
newCommand.onSelect = function () {
if(typeof(SnpCreateTabbedPaletteScriptUI_unitTest) == "undefined") {
    new SnpCreateTabbedPaletteScriptUI().run();
You can then start it from the tools menu.

Similar Messages

  • After upgrading to iOS 5 I cannot enter to mail (outlook exchange ),contact did not open, general settings - mail contact did not work.help me

    After upgrading to iOS 5 I cannot enter to mail (outlook exchange ),contact did not open, general settings - mail contact did not work.help me

    Hi,
    the settings are gone, i guess. But even worse, I cannot get the iPad2 to play Full HD thru the Apple digital AV adaptor using apps that support  (and advertise this), like AVPlayer HD. This definiteley used to work before one of the last iOS upgrades. (I am now at 5.1.1).

  • When i go in my settings on my ipod touch 3gen it says no wi-fi as in i cant connect to any wi-fi at all i tried to restore but did not work HELP PLEASE

    when i go in my settings on my ipod touch 3gen it says no wi-fi as in i cant connect to any wi-fi at all i tried to restore but did not work HELP PLEASE

    See:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar

  • Panasonic .MOV files only play audio no video in Premiere Elements 11??? Not Working Help

    Panasonic .MOV files only play audio no video in Premiere Elements 11??? Not Working Help

    It all depends on the codec the file uses, Karli.
    What model of camcorder is this video coming from?
    Are you working on a Mac or a PC? Have you got the latest version of Quicktime, per the program requirements? When you started your project, did you select the settings for a DSLR at 720p? This is a vital step since it will activate the components your computer will need to work with many of these types of files.
    BY THE WAY, KARLI--
    PLEASE do not post the same question more than once on this forum! You've already got a thread going with this same question and several responses posted. It's very confusing when you post the same question a second time and start a whole new discussion.

  • My MacBook Air won't turn on? I have to dropped it but earlier in the day I got a notification about a full single drive. I have tried the ideas in the communities but its still not working, help!

    My MacBook Air won't turn on? I have to dropped it but earlier in the day I got a notification about a full single drive. I have tried the ideas in the communities but its still not working, help!

    See this article:
    http://support.apple.com/kb/ht3964
    Find the section that applies to your computer, and follow the instructions.
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.

  • I cant open my ipad after i turned on the voice in accessibility i have a passcode and i tried to enter my password but it not working. help me please

    i cant open my ipad after i turned on the voice in accessibility i have a passcode and i tried to enter my password but it not working. help me please..
    i updated my ipad in ios 6

    Turn off VoiceOver
    1. Press the Home button
    2. Tap Settings.
    3. Then double-tap Settings.
    4. Tap General.
    5. Then double-tap General.
    6. Use three fingers on the screen to scroll to Accessibility
    7. Tap Accessibility.
    8. Then double-tap Accessibility
    9. Tap VoiceOver
    10. Then double-tap VoiceOver.
    11. Tap "On" next to VoiceOver
    12. Then double-tap "On" to turn it off.

  • Lower volume button control not working help?

    Lower volume button control not working help?

    If you only restored from backup, restore to factory defaults/new iPod.  If you then still have the problem it is likely a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • HP pavilion dv6 microphone not working . help please . . .

    HP pavilion dv6 microphone not working . help please . . .

    Hi,
    DV6 is a series of hundreads of models, what is yours ? To help us answer question quicker, please read this:
       http://h30434.www3.hp.com/t5/First-Time-Here-Learn-How-to/Welcome-Get-started-here/td-p/699035
    You may wat to try this first:
    1. Right click speaker icon (right hand corner)
    2. Select Microphone devices
    3. Right click Microphone
    4. Enable it
    5. Click Apply/Ok
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • After update.. i can not start the ipad, when i press agree in the terms ...it will freeze and the screen not working///help please

    after update.. i can not start the ipad, when i press agree in the terms ...it will freeze and the screen not working///help please

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • On my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    on my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    Could you please describe how you are trying to delete a single text message and it will not work? What are you seeing in place of the trash can icon?

  • HT201210 I can not restore my iPhone 4S itunes error says I have 29 and I put it in DFU mode and not working help please

    Hello

    I can not restore my iPhone 4S itunes error says I have 29 and I put it in DFU mode and not working help please

  • TS2755 When trying to open my mail, it opens then closes immediately, I've deleted the account and re-created it 3 times and also done a reset but still not working, help please

    When trying to open my mail, it opens then closes immediately, I've deleted the account and re-created it 3 times and also done a reset but still not working, help please

    Try closing all apps in Multitask Window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • My iphone is not working HELP !!

    My iphone is not working HELP !!!!!!!!!!!?
    my iPhone is black and it's so hot !! and i cant open it am trying with the Home and lock button and still not working and it's very hot and it's out of the charger right now ... and still hot i tried everything not working ? ?can someone tell me what to do please
    now it's not cold at all !! it was so hot !! i plugged back to the charger and it's not working ! and i tried the BUTTON HOME and LOCK not working ?? ?any ideas ??

    Let it cool of for a while , While not charging it,  then try after while plugging it into the computer you normally use itunes with and see if itunes will recognize the phone.

  • Urgent: OSB FTP polling is not working, help!!!

    hi all,
    I am doing an onsite poc on customer site, and configuring and proxy service on OSB(11.1.1.5) using ftp , but it just not working, not picking files in the specified folder, no error message. seems it can connect and login, but just not picking the files, though I set the mask to *.*, poll interval 3 seconds. any tricky? someone can help?
    I've read all the documents abt ftp transport, and I can configure file proxy, ftp business service successfully.
    thank you very much in advanced.

    no log still, for DEBUG.
    error will throw in log only if I set the wrong user/password.
    seems it connected to the ftp server, but just not picking the files there. I don't know why. I doubted it's the problem of the path setting, but it's the same for phsical path and relative path. not working.
    help...........

  • SOMEONE PLEASE HELP ME THIS IS MY FIRST TIME DOING THIS MY IPOD IS DISABLED AND IT SAID CONNECT TO I TUNES I DID THAT AND ITS NOT WORKING HELP ME PLEASE AND THANK U

    SOMEONE PLEASE HELP ME THIS IS MY FIRST TIME DOING THIS MY IPOD IS DISABLED AND IT SAID CONNECT TO I TUNES I DID THAT AND ITS NOT WORKING HELP ME PLEASE AND THANK U

    Please turn off your caps lock.
    See http://support.apple.com/kb/HT1212.

  • Ok i literally just took my ipod 5 out of the box and the home button is not working help me pleasee!

    ok i literally just took my ipod 5 out of the box and the home button is not working help me pleasee!

    I would go straight back to store, state the problem and ask for a replacement. Good luck.

Maybe you are looking for

  • Remove symbol # for long text in document line item

    Dear Experts, I enter some information in the long text field in document line item. For the area that I use "Tab" button, system will display as # symbol. Therefore when we print the information, the output will include the #### symbol which is not

  • "Cannot connect to iTunes" message

    I have signed up to icloud as an email as my previous setup went wrong.  I still can not sign into icloud, iTunes, AppStore so I am unable to get started.  I have tried troubleshooting but nothing helped, I changed my city and time, other than that I

  • Statistical WBS

    Hi, When im procuring asset by using a Statistical WBS in PO ,whether  commitment will generate. Regards

  • Internal Order's Planning change history

    Hi Experts, As per our requirement, we want to track changes made in Internal Order (Tr .code KO02) whenever changes made in only planning (not in Master data for which we are able find change documents). Also for Planning changed history we are able

  • GB   Audiogram 6: multitrack problem

    I have a problem with my audiogram 6. I'm really new in home recording and I've always recorded one track per time (guitar first then the bass then drums then vocals). I read that GB allows you to record in multitrack...this is great to me but...I JU