Get menu command strings

Recently, I need a way to integrate work plans in sight and learned that I can do it using the app.executeMenuCommand("fitall") . When I searched through the scripts of PDF files, I found no mention of this method.

Then I have been aware of this question [JS] CS6 + executeMenuCommand2. There are lists of commands and some links in the responses. I have visited the links and this CS6 AI "app.executeMenuCommand" was the most enlightening to know where and how to get these commands. So I followed what the author.

  1. Create a new document
    1. Profile: Print
    2. Size: letter
  2. Create a new action game
    1. Name it "My Set".
  3. Create a new Action within the new series
    1. Name it "adjust the work plan.
  4. Insert the menu item
    1. Select view-> Fit artboard in the window.
    2. Click OK
  5. Record the Actions file
    1. File name is 'My Set.aia'

When I look at the file "My Set.aia", I see that there are 3 parameters. The first is the menu command. The second is the name of the command. I don't know what is the third. The parameter values are in hexadecimal. Once I have become "666974696e" in ASCII, I get "polarized", the chain of menu command "fit the artboard in Window.

/parameter-1 {
  /key 1769238125
  /showInPalette -1
  /type (ustring)
  /value [ 5
      666974696e
  ]
}

See the original and the files converted action.

I tested with a few other commands, and it seems to work. Although I could not make it work to "fit in Window". Where to insert the menu in action item, select view-> Fit all in window does nothing. Type 'Fit all in window' and clicking on 'Find' also do not work. Gives the warning "no matching this name menu item was found. Why is this?

Sigh. I wish an official documentation for app.executeMenuCommand () , and these commands were easier to access.

Ok. It seems you are totally right.

It is not possible to save this menu command in CS6 (64-bit) and not in CS6 (32 bit). Maybe a bug in this version of Illustrator.

Tags: Illustrator

Similar Questions

  • Navigation, menu commands and bookmarks that all toolbars disappear

    Hi - started upward and suddenly
    -Without Navigation buttons or the buttons custom
    -no bookmarks toolbar
    -No box in which to enter a URL and change to another page
    -No menu command
    -almost nothing, in fact, with the exception of the content of my homepage. There is not even the series of orders for 'about' or 'help' NOTHING

    Now, I discovered by accident that if I click on a link of my portal (netvibes) that can open in a new window, then all of my old stuff appears.

    But everytime I open the first instance of the default browser - it is unusable because it still lacking a place to put a url to change sites!

    I've tried right-clicking on the band I've seen in a FAQ; all I get are Windows controls (restore, reduced, close, and a command nview added long ago by my video card), but no options to CUSTOMIZE and VIEW or restore toolbars, etc.

    I have tried f11 to make sure that I have not accidentally ran full-screen (although clearly I wasn't) and this test showed that I was not.

    I hit f10 - nothing happened.

    When I right click elsewhere on the page (other than on a link of some foods on my portal), it gives me a multitude of orders of various extensions, as 'open the tab in a new window' or "add to evernote" or "fireshot" but nothing that seems directly related to Firefox except that I can see as front/rear right navigation controls click on the menu.

    By clicking on the icon Firefox in the upper left corner just brings up 'close' "minimize" 'restoration' of orders already mentioned Windows.

    Any advice?

    FF 16.01, WinXPsp3

    Well, I think I solved it. Preparing to do more difficult troubleshooting (always debate if we simply accept the need to use the anomaly CTRL-N after the window of the browser first, obtaining useless...)... I started FF in safe mode. Everything went well.

    Made me think about what extensions has changed recently. Some update in the scenes. I know anyway that follow. (Is there a list of the dates of the latest updates for extensions?)

    But he who has updated recently that I had trouble with Hotspot Shield. I disabled that--noting that it was ver 1.1 and new version 2.X. all right now.

    My theory is that HSS updated its program, but has not bothered to update the browser plugin, or disable a feature not plus-besoin from an earlier version of HSS.

    In fact, HSS still works with the plugin disabled. So the plugin should be obsolete and for an older version of the program.

    Once more... extensions do bad.

  • How can I get run command Wizard in windows 7

    How can I get run command Wizard in windows 7

    Help & Support:

    That became the command run?

    The run command no longer appears on the start menu in this version of Windows. The search box that appears in the start menu provides much of the same functionality as the command run. However, the command run is still available if you prefer to use. You can even add it to the start menu for easier access.

    To add the run command to the start menu
    Click to open the taskbar and Start Menu Properties.

    Click the Start Menu tab, and then click Customize.

    In the list of options on the start menu, select the command box run and then click OK. Run the command will appear on the right side of the start menu.

    Tip:
    You can also access the command run by pressing the logo Windows + R key.

  • Get-VIEvent command line options

    Hello list,
    Options of I have a question about the command line for Get-VIevent. I need to get the logs between a given time limit. I'll use this command in a script. If I can make use of Get-Date command output to - Start - Finish settings.
    I have to get the logs between a given time limit. for example I need newspapers between 16:00 to 17:00 on the same day. for that I do use Get-Date command output?
    Thank you
    Ghislain

    Ghislain wrote:

    This way to grep for a particular string. I know there is an option called "findstr". can you please cite the use of this option of findstr?

    There are a few (dozen) different ways to approach this problem in PowerShell. I hope these examples help:

    PS > $a = Get-VIEvent
    PS > $a | group { $_.GetType().BaseType }
    
    Count Name                      Group
    ----- ----                      -----
       20 VimApi.AlarmEvent         {13875, 13874, 13873, 13872, 13853, 13852, 13846, 13845, 13809...
        8 VimApi.SessionEvent       {13871, 13870, 13869, 13823, 13816, 13815, 13813, 13812}
       65 VimApi.VmEvent            {13868, 13867, 13866, 13865, 13864, 13863, 13862, 13861, 13860...
        2 VimApi.HostEvent          {13821, 13819}
        3 VimApi.Event              {13820, 13818, 13784}
        1 VimApi.GeneralEvent       {13817}
        1 VimApi.CustomFieldDefE... {com.icomasoft.PowerScripter.script}
    
    PS > $a | Where-Object { $_.key -eq 13875 }
    
    source               : VimApi.ManagedEntityEventArgument
    entity               : VimApi.ManagedEntityEventArgument
    from                 : gray
    to                   : green
    alarm                : VimApi.AlarmEventArgument
    key                  : 13875
    chainId              : 13845
    createdTime          : 12/7/2008 11:17:27 AM
    userName             :
    datacenter           : VimApi.DatacenterEventArgument
    computeResource      : VimApi.ComputeResourceEventArgument
    host                 : VimApi.HostEventArgument
    vm                   : VimApi.VmEventArgument
    fullFormattedMessage : Alarm Virtual Machine Memory Usage on openfiler changed from Gray to Green
    dynamicType          :
    dynamicProperty      :
    PS > $a | ? { $_.fullFormattedMessage -match "memory" } | select -first 5 | ft key, full* -auto
    
      key fullFormattedMessage
      --- --------------------
    13875 Alarm Virtual Machine Memory Usage on openfiler changed from Gray to Green
    13873 Alarm Virtual Machine Memory Usage on vcenter.halr9000.com changed from Gray to Green
    13853 Alarm Virtual Machine Memory Usage on vcenter.halr9000.com changed from Green to Gray
    13846 Alarm Virtual Machine Memory Usage on openfiler changed from Green to Gray
    13809 Alarm Virtual Machine Memory Usage on openfiler changed from Gray to Green
    

    [PowerShell MVP |] [ https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], the VI Toolkit forum moderator

    Author of the forthcoming book: VMware Infrastructure Management with PowerShell

    Co-host, PowerScripting Podcast (http://powerscripting.net)

    Need help in General, other than VMware PowerShell? Try the PowerShellCommunity.org forums

  • Pink menu commands

    I am using CS4 for a year now on multiple computers.  Some of my menu commands appear suddenly in pink on a computer.  How can I get rid of the pink box?

    Looks like you had the who is new or custom work space. Change the workspace in the window Menu.

  • 31.1.0 and 31.1.2 drop down menu commands and commands "right button" very slow... what to do?

    My TB version 31.1.0 and 31.1.2 drop-down menu commands and commands "right button" very slow... All other menu programs bars will work perfectly. Tried disabling McAfee, no diff. TB collects e-mails, wrote e-mails to a normal speed without problem. Control S, V, P, etc work but slow... what to do?

    To diagnose problems with Thunderbird, try one of the following:

    • Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
    • Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
    If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
  • How can I get the command bar, for e-mail, etc..

    How can I get the command bar in Mozilla? For the icon to email etc.

    If you want to learn the basics try this interactive and video tour

  • The context menu commands do not work on bookmarks

    Context menu commands operate on visible in the Favorites Bookmarks toolbar, but they do not work on bookmarks in the menu dropdown.

    Update: I closed Firefox and rebooted and the problem disappeared.

    You can use the commands of context on the bookmarks menu in the sidebar. Open it with CTRL + I

    If you want to change the name of a bookmark, right-click in the sidebar, go to properties and then rename it in there.

  • Add custom commands menu commands

    Hello

    How can I add the commands(jsfl-files) custom menu commands to animate?

    Thanks in advance,

    Dennis

    Hi Dennis,

    To add your jsfl files as orders under the menu of commands in CC host, follow these steps (for animate CC 2015.2):

    1. close Animate CC runs.

    2. copy your jsfl files to the following location:

    On win: C:\Users\\AppData\Local\Adobe\Animate 2015.2\\Configuration\Commands\ CC

    On Mac:/Users//Library/Application\ Support/Adobe/Animate\ CC\ 2015.2 //Configuration/Commands\

    3. launch Animate CC and check out the menu of commands.

    Thank you

    Prashant

  • installed elements 14 on new pc using windows 10 and all the menu commands are grayed out.

    I can't change the preferences.

    I can't restore catalog etc etc.

    I then installed on the same pc 12 elements, and that's OK--that is of the menu commands everything works as expected

    This can happen if you are using the eLive currently.

    If you are in the Organizer, try clicking on the Media tab and if you are in the Photoshop elements Editor, click the Quick tab and see if it helps.

    Thank you

    Blandine

  • The color of menu commands.

    The acrobat menu commands appears in grey (unusable) shadow and gray (usable). This light gray is not easy to read. How can I change this light gray in black?

    Hi ulrichn42855513,

    I'm sorry but that is how Acrobat is designed. Try to adjust the color and sharpness of your screen.

    Kind regards

    Nicos

  • How to create a menu command in a script?

    I want to add a line or two at the end of a script.  I want to add is a menu command.

    I don't know if this can be done in jsx, and I wanted to ask here, that if it's possible, someone show me what that looks like, or point me to a reference on the web that covers?

    Thank you!

    He replied.

    var myMenuAction = app.menuActions.item("$ID/Name of Menu Item");

    If (myMenuAction! = null) {}

    myMenuAction.invoke ();

  • Menu commands in FM9 died

    I am trying to create a new character format in FrameMaker 9 (on Windows 7). When I click the menu commands in the Character Designer does nothing - this menu seems to be dead. Does anyone know the solution to this problem?

    Anders

    This looks like a bug of early release FM9, that has been fixed in a

    Update. You must download and apply the updates, which you can find here:

    http://www.adobe.com/support/downloads/product.jsp?product=22&platform=Windows.

    Note that there are four of them and each of them must be applied in the order.

  • Can I insert an image on a menu command?

    I do the a menu button.

    It is possible insert a picture on a menu command?

    See, image setting

    img.JPG

    No, it isn't.

  • output with the menu command leave I get ReferenceError: b is not defined

    When you quit Firefox using file / exit option in the menu, in this version and the previous version, I received the error message "ReferenceError: b is not defined.
    It does not Firefox to start normally the next time but I feel boring.

    Thank you

    I suspect an add-on is causing this error. Try the procedures in article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

Maybe you are looking for