How to apply different keyboard shortcuts to an actions with the same name but in different menus within one application?

Hi,
Hopefully someone can help. I have the application "djay" and in two different menus there is the action "Eject". I was wondering if it's possible to apply different keyboard shortcuts to those actions with the same name? I can't see how to do it as it seems you can only write the action but as there are two it doesn't seem to work for me.
For example:
djay>Table-1>Eject - ⌘⇧1
djay>Table-2>Eject - ⌘⇧0
Thanks in advance for any help!!

A NodeList doesn't only contain 1 element. In your example it contains ALL <Data> elements inside the document.
NodeList nodes = document.getElementsByTagName("Data");
System.out.println(nodes.getLength() + " \"Data\"-elements found");
for(int i=0; i<nodes.getLength(); i++) {
   Node node = nodes.item(i);
}

Similar Messages

  • How do I make Applescript to compress 2 filez with the same name?

    Hello guys and thank you for reading this!
    I don't know a lot about programming, but i believe applescript can save my life. What I need is.
    Detecting 2 files with the same name, but differnt extension. (song 1.jpg, song 1.mp3)
    Compressing those 2 files into a single .zip (In the end I would have song 1.jpg, song 1.mp3 and song 1.zip
    And that's it! I know its pretty simple, and I've seen the "Create Archive" in automator, but I don't really know how to tell him which files to Compress.
    Thanks again!

    Hi,
    Try this script :
    set sourceFolder to choose folder
    tell application "System Events"
          {name, name extension} of (files of sourceFolder whose name extension is not "zip")
          my compress2FilesSameName(the result, sourceFolder as string)
          repeat with i in (get folders of sourceFolder) --check in subfolders
                {name, name extension} of (files of i whose name extension is not "zip")
                my compress2FilesSameName(the result, path of i)
          end repeat
    end tell
    on compress2FilesSameName(tList, tFolder)
          set tnames to item 1 of tList
          set tExtensions to item 2 of tList
          set tc to count tnames
          set j to 1
          repeat while j < tc
                tell (item j of tExtensions) to if it is not missing value or it is not "" then
                      set n1 to (count) + 2
                else
                      set n1 to 1
                end if
                tell (item (j + 1) of tExtensions) to if it is not missing value or it is not "" then
                      set n2 to (count) + 2
                else
                      set n2 to 1
                end if
                set name1 to item j of tnames
                set name2 to item (j + 1) of tnames
                if (text 1 thru -n1 of name1) = (text 1 thru -n2 of name2) then -- same name
                      set tFile1 to quoted form of POSIX path of (tFolder & name1)
                      set tFile2 to quoted form of POSIX path of (tFolder & name2)
                      set zipFile to quoted form of POSIX path of (tFolder & (text 1 thru -n1 of name1) & ".zip")
                      do shell script "/usr/bin/zip -j  " & zipFile & " " & tFile1 & " " & tFile2
                      set j to j + 2
                else
                      set j to j + 1
                end if
          end repeat
    end compress2FilesSameName
    if an archive already exists with the same name (in the parent folder of the files to compress) , the ZIP command overwrite this ".zip" file.
    Example  with "song 1.jpg", "song 1.mp3" and "song 1.zip" :
    If "song 1.zip" doesn't exist, the ZIP command create the "song 1.zip" file.
    If "song 1.zip" exist, the ZIP command overwrite the "song 1.zip" file (it will not create a new archive).

  • I have a problem when syncing my iphoto library to my iphone 3gs. There apprears to be more than 40  events with the same names but containing only 2-5 pics in my itunes sidebar when in fact I only have around 10 events on iphoto. How do I fix this?

    This has never happened before, and I've tried deleting all photos off my phone then syncing them all instead of specific events and nothing. I have around 10 events in my iphoto library but around 3,500 pictures. I have more than enough space on my phone but I only like to sync certain events, so when I go sync them I notice there are over 40 events listed, and all of them have the same name but it seems as though each "event" has like 2 photos.. On my phone all the different events come up as well. This is super annoying, does anyone know how to fix this ?

    I have the exact same problem!
    I have about 25 albums and a total of 8,100 pictures. When i go to iTunes -> "My iphone" -> Pictures, and then check the box to sync choses events the list of events is messed up. The same events shows up like 3-4 times and the events only have a couple of pictures in them.
    Does anyone know what can be causing this? Or what can be done to fix it?
    Using iPhone 4, latest IOS and latest V of Snow Lep..

  • Two AM's with the same name but different forms causes Deployment problems

    Two Masters forms, DOC & PM are cloned except for the "where clause" in the View's query and the titles in their JSP's.
    DOC workspace has a BC project and a BC4JSP Project. The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='DOCTOR'.
    In Java Webserver :-
    The JSP's are located in C:\source\Doctor\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\Doctor\pol_ValueSet\..
    If I execute Doctor in JWS the records are getting filtered properly.
    PM workspace has a BC project and a BC4JSP Project. Again The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='PAY_MODE'.
    In Java Webserver :-
    The JSP's are located in C:\source\PMode\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\PMode\pol_ValueSet\..
    If I execute PM in JWS, the PM's JSP comes (the title is correct) but the records pertaining to DOC appears. I checked the View's xml file in C:\source\PMode\pol_ValueSet\ the "where clause" is correct. The xml & classes have the same name but their contents are different.
    I want to know whether this problem is because both have the same name for the AM and the BC4JSP's property file.
    Please clarify.

    Deploying two app modules with the same name will definitely cause problems.
    The JSPs use the information in the properties file to connect to the application module and get the data they need from the appropriate View Objects in those app modules. If you have two app modules with the same name, when a JSP tries to connect, it has no way of knowing which one of the app modules to connect to if they both have the same name.
    You could:
    1. Just use one application module that contains all the View Objects you need to access.
    or
    2. Rename one of the application modules or the package it is located in so the names are distinct. If you choose this method, you will also need to update the JSPs (specifically the 'registerApplicationFrompPopertyFile' method call), and your JSP project's appmodule property file.

  • Can you substitute a asset of the same name but a different track length?

    Hi,
    Does DVDSP allow you to substitute an asset (which has chapter markers and is all linked up)with an asset which is identical apart from length and marker placement. In other words, it will have the same name, same number of markers, markers named the same, etc. The only difference will be where the markers appear in the track, and the track will be a different length?
    Is this possible and if so, how? I have tried to do it, by moving the first asset to a new location on the Mac and then going in to the project and attempting to relink the asset to the new file. However, it comes up with the message that the file I am trying to relink it to has different attributes! Can this be done?
    Help much needed and appreciated.
    Thxs
    Ben
    G5 Dual   Mac OS X (10.3.9)   FCP4, DVDSP2

    I understand that you don't want to redo all the linking with the markers. You can try following (make a copy of your project first to be safe) :
    - close your project and quit DVDSP
    - move your old asset, and replace it with the new one
    - reopen your project
    A warning message should tell you that this asset has changed, but your marker will remain at old position. If the asset length are not the same, old length information will be used by DVDSP. To correct this, delete the asset from the timeline, and drop it back to the timeline.
    Now you just have to move the marker to the right position.

  • I have two user accounts with the same name, but cannot access the old one anymore - all my purchases are on that account! How do I merge the accounts, or recover that particular one?

    I recently encountered a problem with both my account, for some reason it wouldn't accept my new password. And this was about the fith time I'd had to change it! I even wrote it down to ensure I wasn't mistyping it. But for some reaon it wasn't letting me log in form my phone or from my ipad. So I tried to reset it once again. However when I visited the website and searched for my username, it came back saying my 'account name doesn't exist!' I tried again and again but nothing. I thought maybe it would fix itself if I created a new account with the same details, so I did. But now none of my past purchases or my wishlist are showing up - and all my details are exactly the same! I've tried logging in using the old passwrd for my 'other' account but it's not working. And I tried searching for it again to reset the passwrod but it only resets this NEW account.
    I tried sending a request for help, but I need someone with more authority to talk to.
    Please help!

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

  • How do I move databases to a new volume with the same name?

    When I first set up Snow Leopard Server, I chose a different volume to keep the databases such as mail, iCal, etc., during the setup program.
    I'm running out of space on that volume, so I installed a new hard drive with the same volume name and copied all the files over to it, but when I restarted the server I started getting error messages and no one could send mail. I'm assuming it's a permissions thing.
    So I do I move everything to a new volume?

    - I logged out as Administrator, and logged back in as Root.
    - Disconnected the services in Server Admin.
    - Copied the ServiceData folder from old volume "Storage" to new volume "Storage".
    - Unmounted old volume "Storage".
    - Restarted all services.
    Dec 5 12:58:49 companyname dovecot[65]: IMAP(*): stat(/Volumes/Storage/ServiceData/Mail/17D8D54B-0529-4BD6-8467-757C3EA7C75B/tmp ) failed: Permission denied (euid=1025(username) egid=20(staff) UNIX perms seem ok, ACL problem?)
    Mail, Web, iChat and Address Book servers do not work.
    What do I do now?

  • Is it possible to call a function with the same name from 2 different dll's at the same time.

    I'm trying to call a function ( F ) form 2 different libraries ( A.dll and B.dll ) at the same time. The first lib loaded determines the function F. A->F and B->F have same interface and name but different implementation.

    Hi,
    I tried it with two dll's, both with the same interface, and at the same
    time, in the same VI. The popups even appear at the same time.
    But now I understand the problem... Both dll's are created by LabVIEW! If
    they are not (or one is not, and the other is), this is no problem.
    And VI's in memory cannot have the same name. LabVIEW doesn't care if VI's
    are in a dll or not.
    This might not help, but if you want to make some sort of "plug in" system,
    you might consider using llb's. By loading VI's dynamically, you can select
    the path from which they are loaded. You must unload (close all references)
    one before the loading the other, or the same problem will occur. If you go
    this way, I consider a different approach. Make on
    e library (or even a dll)
    that has the interface you like, this is the "loader". Now make several
    "plug in"'s, with the same interfaces. The name of each function in a plug
    in is a concatenation of the library name and the function name. The loader
    has one extra function, that loads (and unloads, when done) references to
    all desired libraries to use (the names of the functions can be figured out
    easily). All that the loader functions do is dynamically call the library
    functions. You can use a call by reference node for this (you can use the
    connector pane or the loader vi, since the interface must be the same!).
    If you go this way, I guess the loader library can be converted to a dll...
    Hope this helps.
    Wiebe.
    "rsam" wrote in message
    news:[email protected]..
    > Thx Wiebe,
    >
    > did you load both dll at the same time? For example in 1 vi. Somehow
    > the first loaded function keeps to overrule the second. Notice that
    > the interface is
    exactly the same.
    >
    > I loaded 2 dll created in Labview with results described above.
    >
    > Regards Ruud

  • How do I create a shortcut to fill cells with the same background colour

    I have recently starting using Numbers, being an Excel user for years.
    I often fill cells with a yellow background to highlight them.
    In Excel you can do this from a simple colour menu in the toolbar at the top.
    I have found no quick and easy way to do this in Numbers.
    Any advice would be appreciated.
    thank you

    As far as I can tell there's no direct equivalent of the little paintbucket button in Excel that remembers the last colour you filled with.
    One quick and relatively easy way to achieve it would be with an AppleScript:
    tell application "Numbers" to tell front document to tell active sheet
      try
      set active_table to (first table whose class of selection range is range)
      on error
      display alert "No selection" buttons {"OK"} default button 1
      return
      end try
      tell active_table
      set background color of selection range to {62466, 65535, 28003}
      end tell
    end tell
    This could be run from Numbers' script menu (screen grab below) or saved as an Automator Service and run from a popup or keyboard shortcut (eg ctrl-y).
    Post back if you'd like to follow up either of those ideas.

  • How can I get a drop-down list selection also be selected in another field with the same list but a different name?

    I have a street address and a billing address. A question is posed with a checkbox — "Is the billing address the same as the street address?" If Yes is checked, the street address automatically fills the billing fields. If No is checked, the user must fill in new information. In both the street address and billing addres, the State field is a drop-down list. How can I get the drop-down list selection in the street address State also be selected in drop-down list for the billing address State?

    Has anyone done this?

  • Why can't iTunes down load two songs with the same name but different artists to my iPhone?

    I noticed this a couple of years ago but had forgotten about it. Today I purchased two songs, both called Bop Gun (One Nation) but by different artists. When I looked at the purchased list on one appears. If I go back to iTunes and download the other one, the former disappears. Are they honestly saying that these phones are intelligent enough to distinguish a song by artist rather than track listing?
    Epic Fail!!!

    Usually a song is uniquely identified by song name, artist, album and track number. That said internally I suspect the iTunes Store may allow one song to appear on more than one album while they only need to store one copy of the audio data. (They must also be able to cope with the situation, for example, where the UK & US version of an album have a different track order). It is also possible there is an error in the database that means you're not getting the song you're expecting. If you can't successfully download the two (presumably) different versions of the song then use the report a problem links in your account history and explain the issue. Hopefully the iTunes Store support staff can get it resolved.
    tt2

  • Is it possible to have 2 instances with the same name but different edition in the same server?

    Hi everybody!
    I have in a little trouble ....
    *** Scenario.
    Oracle Enterprise Edition 11gr2 over Oracle Solaris 11
    3 instances: PROD, QA, DEV
    1 ASM instance
    Listener ports: 1520, 1530 & 1540
               Those are production system
    *** The problem:
    Customer can't pay Oracle EE, they want to change to Oracle Std One
    Limitations:
    I cant have a similar system to test.
    *** My idea:
    Install Oracle Std One, in the same path:
    /u01/app/oracle/product/11.2.0/db          <-- EE
    /u01/app/oracle/product/11.2.0/db_one   <-- Std Ed One
    ASM:
    /u01/app/11.2.0/grid          <-- EE                    +ASM
    /u01/app/11.2.0/grid_one   <-- Std Ed One        +ASM1
    Create databases:
    Asign similar disks to +ASM1
    Create DGs on +ASM1
    Create databases: PROD, QA, DEV for Std Ed one
    - is it posible that they have same instance name?
    - if not, i suppose create as: PROD1, QA1, DEV1
    Configure Listener port : 1521, 1531 & 1541
    Migration technique:
    Create Tablespaces, schemas
    Lock users in EE
    down listener: 1520, 1530 & 1540
    Import data of final users in a window maintanance
    configure and up listener: 1521, 1531 & 1541
    Customer should test access and apps in new
    Please tell me if my Idea is reallistic, all comments are going to be very apreciated.

    sol.beach
    I suppose end customer use a port per database in order to separate in a logical way the access to the databases,
    i mean PROD, QA & DEV has the same users.
    Hemant K Chitale
    1. I've seen physical servers with 3 ASM instances: +ASM1, +ASM2, +ASM3
       on Solaris & Oracle 10g, I suppose is posible on 11g
    2. The sever has occupied 2  sockets (2 physical CPU), so I can use Oracle Standard Ed One.
    JohnWatson2
    Thanks for your comments.
    WadhahDaouehi
    1. - You cannot run two ASM instance simultaneously on one Server, but you can run many Oracle database simultaneously
          on the same server which they use the ASM as storage type.
      As a mentioned to  Hemant K Chitale, I've seen a system with several instances running
      About
         "you can run many Oracle database simultaneously on the same server which they use the ASM as storage type."
      I'm not sure if i can use the same ASM which is part of a current Enterprise Ed over the new installation with Oracle Std Ed One.
    2. - Why you want the same instance name?
    If it is about the service name, which has by default the same instance name, just you can create a different instance name
    and create the service name with the name that you wish.
    SQL> alter system set service_names='instance_name';
    Is a similar name, not the same
    PROD, QA & DEV
    PROD1, QA1 & DEV1
    I consider add "1" at the end to refer "Oracle Standar Ed One"
    But I agree with you, i can customize throught service_name.
    Regards,
    Abraham Mtz.

  • How do I call methods with the same name from different classes

    I have a user class which needs to make calls to methods with the same name but to ojects of a different type.
    My User class will create an object of type MyDAO or of type RemoteDAO.
    The RemoteDAO class is simply a wrapper class around a MyDAO object type to allow a MyDAO object to be accessed remotely. Note the interface MyInterface which MyDAO must implement cannot throw RemoteExceptions.
    Problem is I have ended up with 2 identical User classes which only differ in the type of object they make calls to, method names and functionality are identical.
    Is there any way I can get around this problem?
    Thanks ... J
    My classes are defined as followes
    interface MyInterface{
         //Does not and CANNOT declare to throw any exceptions
        public String sayHello();
    class MyDAO implements MyInterface{
       public String sayHello(){
              return ("Hello from DAO");
    interface RemoteDAO extends java.rmi.Remote{
         public String sayHello() throws java.rmi.RemoteException;
    class RemoteDAOImpl extends UnicastRemoteObject implements RemoteDAO{
         MyDAO dao = new MyDAO();
        public String sayHello() throws java.rmi.RemoteException{
              return dao.sayHello();
    class User{
       //MyDAO dao = new MyDAO();
       //OR
       RemoteDAO dao = new RemoteDAO();
       public void callDAO(){
              try{
              System.out.println( dao.sayHello() );
              catch( Exception e ){
    }

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • Iphoto shows two photo libraries with the same name, one in small letters the other in all capital letters. they both open the same library and the only one in my computer. How do delete the capital letrs one as the one in the pictures folder is in

    In my  iPhoto application when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    They both open the same library which is in the Pictures folder. This is the only library I can see and the name is not in capital letters?
    How do I get rid of the one in capital letters

    What is your iPhoto version?
    when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    In the Library Chooser Panel look for the pathes to the two duplicate libraries. You will see the location of the libraries in the path bar at the bottom of the window when you select one of the libraries. Does it show both libraries in the same folder?

  • NewBie Q : How to make one clickable shape jump to a slide with the same name of the shape (button c_1 to slide c_1 f.e.) .

    I made some clickable placeholders on a masterslide
    Then : a new slide based on that masterslide
    and want to use one script or shared  action that says "on success jump to another slide with te samen name as the button...)
    Sorry for this unusual semantic language.
    But already thanks for answering!
    Lucas
    PS I'm using a trial version to try out a branched interactive scenario. A choice of a user leads tot anothe slide with a video reaction followed by other choices,...)

    Sorry, but I'm not a native English speaker, and I have some problems with your question.
    The only interactive object that is possible on a master slide is a shape button. What do you mean by a 'clickable placeholder'?  Why I like Shape Buttons - Captivate 6! - Captivate blog  explains possibilities with shape buttons.  Maybe the idea to have such a shape button on a master slide is not the best, because you cannot control objects on master slides since they do not have an ID. You cannot give a name to a shape button on the master slide, which means the scenario you are talking about is just impossible?
    Moreover: Captivate doesn't like to have the same name/label to be used for different objects. There are some exceptions, you can have an advanced action with the same name as the interactive object that is triggering that action, provided you label first the interactive object before labeling the action. With  "script" you probably mean an advanced action?
    If you tried to explain what you want to do as detailed as possible, maybe I could propose something. You'll see that my blog is focussed on advanced and shared actions. One other puzzling sentence is 'same name as the button'? Are you really talking about the name of the button or about the label ON the button?

Maybe you are looking for