Javascript Select Menu Item & Tool

I am brand new to javascript and quite overwhelmed trying to learn this language. I am trying to convert extensions for Photoshop that were created with Configurator 4 (in case some of you may not know, these panels will no longer be supported in future versions of Photoshop).
I need to create some HTML panels that use javascript. If someone could help me get started with some basic javascript I would be greatly appreciative.
Here is what I need to get started:
1. Tabs at the very top for access to different panel layers.
2. Open menu item with button connected to javascript.
3. Select tool from javascript.
I have found the documentation a bit scarce for non-coders (Hello Adobe), so if someone could show me how the above would work then I probably can figure out the rest.
Thanks in Advance - Sam

Thank you - that's the ticket.
For both tool and menu item I had ScriptingListenerJS active and it gave me the javascript for selecting a tool and also a menu item.
I will look into the creating tabs on the panel in html.
Another question:
I am working with the "Hello World" extension example and am a bit confused by the main.js file.
(function () {
    'use strict';
    var csInterface = new CSInterface();
    // Reloads extension panel
    function reloadPanel() {
        location.reload();
    function init() {
        themeManager.init();
        $("#btn_reload").click(reloadPanel);
        $("#btn_test").click(function () {
            csInterface.evalScript('sayHello()');
        $("#new_doc").click(function () {
            csInterface.evalScript('newDoc()');
         $("#myNewDoc").click(function () {
            app.documents.add();
    init();
On the html page there is this: <button id="btn_test">Call ExtendScript</button>
On the main.js file there is this:
$("#btn_test").click(function () {
            csInterface.evalScript('sayHello()');
What does the "$" mean and what does the "#" mean in front of "btw_test".
Thanks in advance - Sam

Similar Messages

  • Why does my Desktop Mouse freeze (moves erratically) when selecting menu items in PSE13 Editor?

    It seems that my computer with 8GB of memory may not be enough to use PSE13.    The Organizer menu works fine when I select menu items.   The problem is when I switch to the Editor.   My mouse starts to freeze, move fast, or too slow.  It is difficult to select
    a menu item in this situation.

    Unusual. In theory PSE13 should be better as it's a 64 bit application.
    Can you try re-setting the prefs then close and re-launch the Editor. First you need to go to:
    Edit >> Preferences >> General
    Then click the button shown on the image below.

  • Trouble selecting menu item using AppleScript

    Now that iWork Numbers 3.2 has added the ability to hide columns and rows via the menubar, I'm trying to make it work in an Applescript using system Events and the click menu item command, but no dice.  Any ideas?
    tell application id "com.apple.iWork.Numbers"
      activate
              tell table 1 of the active sheet of document 1
                        --select the range
                        set thisRangeName to "A:B"
                        set the selection range to range thisRangeName
                        --hide the cells
                        tell application "System Events"
                                  tell application process "Numbers"
                                       --this causes an error
                                      click menu item "Hide 2 Columns" of menu 1 of menu bar item "Table" of menu bar 1
                                       --this doesn't seem to do anything
                                       click menu item 18 of menu 1 of menu bar item "Table" of menu bar 1
                                  end tell
                        end tell
              end tell
    end tell

    I finally settled on this solution:
    tell application id "com.apple.iWork.Numbers"
         activate
         tell table 1 of the active sheet of document 1
              set thisRangeName to "A:B"
              set the selection range to range thisRangeName
         end tell
    end tell
    tell application "System Events" to tell process "Numbers"
         click menu bar item "Table" of menu bar 1
         keystroke "Hi"
         delay 0.5
         keystroke return
    end tell
    I would be curious to know if anyone has found a more elegant solution.

  • GUI scripting-select menu item in Mail's Styles popupbutton

    Hi,
    The following script complies without returning an error.
    In Mail, with a new message window displayed, the Styles sheet displayed (select Format>Style>Styles...), and the Favorite Styles radio button selected, the script below returns an error when it gets to the line "click pop up button item 'Bold'" (the menu does contain an item "Bold!").
    I'd prefer to select the menu item by name rather than by using keystrokes in the script because I will be adding styles to the Styles menu, which will result in changes in the numbering of items in that menu.
    Could someone please explain to me how to accomplish this?
    Thanks in advance!
    tell application "System Events"
    tell application process "Mail"
    tell first window
    tell first sheet
    tell first radio group
    tell radio button 2
    click
    end tell
    end tell
    tell pop up button 1
    click
    click pop up button item "Bold"
    end tell
    end tell
    end tell
    end tell
    end tell

    When you click the pop up button, the result is a menu, so you will need to click an item of that menu - for example:
    tell pop up button 1
          click
          click menu item "Bold" of menu 1
    end tell

  • IPod Touch Self Selects Menu Items Without Touching Screen - 2nd Gen

    With my iPod Touch sitting flat and motionless on a desk, without even touching it, menu items on the screen are self selecting, as if a ghost were touching the screen and selecting the item. It happens on the lower left portion of the screen on whatever screen is currently displayed. It will continue to select whatever item is in that area of the screen, advancing, or going back, until nothing is in that area of the screen to be selected. This "self Selection" happens at various times, from 1 second to a minute, from when the screen is displayed. Usually at about 5-10 second intervals, but it varies.
    Here is what I have done thus far in attempts to "fix" the problem. None of them have worked and the problem still remains.
    - Restored the iPod from within iTunes (twice)
    - Complete Reset/Erase of the Touch on the unit itself (twice)
    - Ensured the battery was fully charged
    - Synced it with two entirely separate iTunes Libraries on 2 different computers
    - Cleaned the screen VERY well to ensure that no film or residue was on it (it is squeaky clean)
    - Slightly tried to flexed (very gently) the Touch to see if it would change this from happening
    - The shake feature is not the issue (turned off and not touching the iPod Touch)
    - Searched the web pretty thoroughly for answers
    Any thoughts...?
    Message was edited by: Solution Room

    You have the "Halloween Syndrome!!"
    Good news though, it should clear up when Halloween is over with.
    Seriously, it sounds like your screen digitizer needs replacing. Contact a third-party repair service. It will be cheaper to fix that going through Apple.
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Play button doesn't work -- doesn't select menu item

    By default, the first thing selected in my encore menue is a text button that says "play all".  So, you can start the DVD playing by pushing the enter button on the remote, by pushing the play button on the remote, or by pushing the play button on the dvd player.  This is as it should be; this is for my dvd (not blu-ray).
    When I burn a blu-ray (instead of a DVD), the play button on the remote and the play button on the dvd player do not work.  I can only use the enter button on the remote.
    I ran a second test by burning a very short movie clip with a simple button in encore.  Again, the results were the same--no problems for a dvd, but messed up for a blu-ray.
    I am playing the DVD and blu-ary on the same player.
    Any ideas?
    Thanks

    Hi Jim:
    The problem is not with the player, a Sony. 
    A couple of months ago I authored a DVD (Blu-ray) of a wedding anniversary the main menu of which had just a couple of buttons  --  the video (about 40 minutes) and a slideshow of a couple of hundred slides with music.   It was wedding present.  Everything worked as planned, not only on my Sony equipment but on Panasonic and LG.  Menu items highlighted as they should and could be toggled by the remote, just as things have been for years (since 1996 for me I guess.)
    The people subsequently asked for 3 extra blu-rays and 12 regular DVDs for people who had seen it but didn't have Blu-ray players.  No problem, said I.  I still have the Encore "ncor" file and plenty of blanks.
    Turns out that I must have relocated some files  --  Encore could not find the previous folder.  Fortunately the Premiere program files were intact so I simple created a new Encore project and created a new ISO file.  This time I made a couple of menu pages and created chapters as well as the slide show.  I made a DVD (on a re-writeable disc) and it worked as expected.  I cut a dozen disks and labeled them.  Meanwhile I made the blu-ray iso file (having made the required changes in Encore.)
    First got a Photoshop error code -45 (although I had not even opened Photoshop for a month.) 
    I shut down everything with the idea of starting Encore as the Administrator (a trick that has fixed other problems) and the blu-ray image file was created without a hitch.  But still got an ISO file that, when burned to a blu-ray, had buttons that would not highlight and would not work.   Also the "pause" button would not work.  (I have a long organ piece with the home menu page.)  Nor would the number buttons.  Just the "top menu" buttons on the remote.
    Obviously everything worked in preview: highlights showed on the buttons that, when pressed, went to the right files.   So everything works perfectly well in Preview and with DVD.  It is just with Blu-ray that there is a problem.  And it is with any and all players.
    The same Blu-ray can be played on a computer using the mouse.  Again, the buttons themselves do not highlight so the software remote does not function.
    Confusing............
    Any additional thoughts?
    Barrie Austin
    [email protected]
    425-392-5760/425-922-0540 (Cell)

  • Can't select menu items in top 25% of the browser window much of the time.

    Running Windows 7 Pro on a new (2-months) HP Ultrabook with FF 15.0.1. Many times, selectable items do not work, but generally in the top 20-30% of the browser window. With the pointer hovering over selections, it does not change to indicate is a selectable item, nor will it let you select. It happens on well-known websites such as Yahoo!, HP, etc. It doesn't do this all the time, but I'd say at least 50% of the time, even if you reload the page and allow all sites with NoScript. There is no filtering warning.

    That problem can be caused by an extension like the Yahoo! Toolbar or a Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Bridge menu item tools photoshop batch is not present in CS4

    I recently installed CS4 on an iMac running OS 10.5.7.  I have a 3.06 GHz Intel Core 2 Duo processor, with 4 GB of ram.  The hard drive is 1 Terrabyte.
    In CS3 I could invoke my photoshop actions from bridge.  No such luck here.  I'm finding references to tools>photoshop>batch, but am at a loss as to why I don't see this option in my copy of Bridge. 
    Online help isn't helping or I'm not using the correct search criteria.  Any assistance would be greatly appreciated.  I've attached a screen grab of the menu list.
    Kittie Rue Deemer

    Kitty,
    Your screen shot is in the virus scanning queue, where it can linger for minutes, hours, days or weeks.
    If you use the camera icon in the reply editor's formatting bar, you can embed your image in your post, where it will be viewable instantly.
    then:
    As for your issue, make sure all applicable scripts are checked in Bridge preferences:

  • Can you add audio tracks as selectable menu items on a dvd? I shot a wedding where the church had its own set up to record audio. I'm trying to make those songs performed by the artists available for viewers of the dvd to select for listening.?

    I'm trying to make audio (MP3) tracks available for viewers of this Wedding dvd to select for listening. Is this possible in iDVD?

    You will need to create a slide show for each of those songs with a minimum of 1 photo per slideshow and add the song to the slideshow audio bin. Set the audio to Fit to Music.
    In your top/main menu add a submenu for the list of songs.
    Add a slideshow for each song with the "+" button at the bottom:
    Select the link in the menu and rename it for the song used in the slideshow.  You can create a slide image for each song with the song name, composer, singer, etc. on the image to be used for the slideshow  An image editor or Pages can be used for that and then convert to a jpeg file for use in iDVD.
    The song/playlist menu could look like this depending on the theme you choose:
    OT

  • Anyone have problems selecting menu items?

    Sometimes the phone will "freeze" when trying to select a contact (for example). It does allow you to go back to the home page though. Just can't select the contact.
    I have 2 iPhones and the other one does not have this problem so I assume it is a defect.

    I would try resetting the iPhone in iTunes. I don't have the problem either. Try resetting than if it still occurs then take to a Apple Genius.

  • MISSING: Tools- Configure SOA menu item in SOA Suite 11g TP4

    Hi,
    I have installed 11g TP4 Jdev and followed the install guide.
    I didnt find the menu item 'Tools > Configure SOA...' itself... :((
    May i know what i might hv missed ???
    Thanks & Regards,
    ATC

    On the information page for SOA Tech Preview 4, there is a step called, Enable. You need to go to metalink to read the instructions there on how to enable SOA for TP4. Then the Configure SOA command will show up in the Tools menu.
    here is the information page: [http://www.oracle.com/technology/products/ias/bpel/techpreview/index.html]
    Heidi.

  • How To Get Selected Or Clicked  Menu Item Name Or ID

    Hello.
    My Question is
    Is There Any Event In Form By Which I am able to get Clicked or Selected Menue Item's Name Or ID.
    Thanx.
    Shahzad Hafeez.

    You can use cell variant  for your requirement . Go through the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961
    Regards,
    Nethaji

  • How can i change 'selected menu link' color in af:menuTree

    Hi,
    Is there any selector specifically for highlighting the currently selected menu item in
    the af:menuTree.
    Right now in my skin it is taking the style of .AFDarkForeground:alias.
    I want my selected link to have different color other than AFDarkForeground:alias is having.
    Thanks,
    Sanjaykar

    Hi Frank,
    No it is not working..the style does not change..
    Any other selectors??
    Thanks,
    Sanjaykar

  • Problem when trying to add a link to the left menu item!!!!

    Hi everyone,
    I am trying to put a new menu group on the left menu,with a link in that group for every one.On checking with the customization guide this is what i did
    for one link i did add the following lines in each of the files
    1)xlWebAdmin.properties
    - menuGroup.Misc-Menu=Misc Menu
    - menuItem.Misc-Menu.My-Nomination=My Nomination
    2) xlDefaultAdmin.properties
    - menuItem.Misc-Menu.My-Nomination.link=mynomineefrm?showfrm
    3) repacked the war and the ear
    4) Restarted my server
    When I login into the administration(xelsysadm) page I didnt see any menu item with name "My Nomination" which i am supposed to see.
    secondly it shows the menu item when ever i select some group and click on assign menu item.
    Moreover, when I try to assign this menu item to all users group it gives me this error
    On browser it prints
    Permission Denied to Assign Selected Menu Items
    You do not have the permissions to assign one or more selected menu items.
    on console it prints
    ERROR [SERVER] Class/Method: tcDataObj/eventPreInsert Error :Insert
    permission is denied
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: maoRejections:You do not have permission to insert this obje
    ct.
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: Error occurred while adding menu items.
    ERROR [WEBAPP] Class/Method: UserGroupMenuItemsAction/commitGroupAs
    signMenuItems encounter some problems: {1}
    Thor.API.Exceptions.tcBulkException
    This problem eat my happy sunday :-(, any one has solution for this problem?
    - Also if some one can help on how to link jsp to the new link will be helpful for me!
    Thanks,
    doki

    Design Console > Form Information > add new
    Class Name Organizations.Merge
    Description Move users from one organization to another
    Type menuitem
    Add following to xlWebAdmin.properties, xlWebAdmin_en_US.properties
    Organizations.Merge=mergeOrgs.do?Display
    menuItem.Organizations.Merge.link=mergeOrgs.do?MergeOrganizations
    menuItem.Organizations.Merge=Merge
    mergeOrgs.button.display=Merge Organizations
    Even you have to assign first to System Administrator group
    First go to Manage Group
    Select System Administrator Group
    Select Menu Item
    Click Assign and select newly craeted Menu Item and click Confirm
    These are the steps to see the new menu item. To make this menu item working:
    you'll have to write action class, form bean class and you'll have to create JSPs and make their entry in struts-config as welll as in Tiles-def.xml
    Then your menu item will work.

  • Power user function: cmd+shift+/ not activating menu items in Photoshop

    In Photoshop (Mac OS X), I typically use the pattern type cmd+shift+/ to open the help menu, type the phrase of the menu item I want to use, and then hit enter to activate the selected menu item.
    I just checked Photoshop CC and the enter key does not seem to correctly behave as it should. Instead of activating the selected menu item, it just dismisses the help menu.
    Is there a way to force the enter key to behave correctly, as it does in other apps?

    It seems to do the same running 14.1.2 on mac os x 10 6.8
    It seemed to work fine before updating from version 14.0

Maybe you are looking for

  • Print from DMS directly

    hi all,     i have a requirement that document should be printed directly from DMS. i came to kno from someone that there is s program named MCDOKPRT which can solve my problem. But i tried that program, it is giving me some text and not displaying o

  • Windows 8 not recognizing my ipad2

    Just purchased a HP laptop with windows 8.  My computer is not recognizing my Ipad2.  Driver error.  Is there a new driver available?  if yes how to install it?

  • Enhancing a standard WD Component - View

    Hello Experts, My requierment is to make some fields read only in a view (V_DODC_SHIPTO) of an standard SAP SRM 7.0 application(/SAPSRM/WDC_UI_DO_SHIPTO). I created an enhancement for the view and was also able to hide a button using this enhancement

  • Is Edge Animate intended to replace Flash?

    Is Edge Animate intended to replace Flash?  I have worked with Flash for almost 15 years and love it, what is its future?

  • Find my iPhone not working correctly

    I've used Find My iPhone successfully in the past, most recently about a month or two ago. But last night, I misplaced my iPod Touch 3G in my home. I went to icloud.com, signed on, and wanted to play a sound to locate my Touch, but the device page sa