Add the menu item for the sequence of batch processing?

Hello

I created a folder level script that runs at startup of Acrobat. The script adds a menu item, that when clicked, calls another function.

I wonder if I can create a batch sequence and add a menu item for that also? I mainly want to avoid going through the whole advanced-> processing statement->... Processing batch-> find the command sequence, and then click Run.

I've seen a lot of examples for adding menu items that call the folder level scripts, but nothing about batch sequences. Has anyone already done this?

Thanks in advance!

You cannot create an element of a sequence of commands menu. Nearest you

can get is to open the batch sequences window, using the execMenuItem()

method and "BatchEdit" as the name of the command (I'm not sure that it is still

the same in Acrobat X).

Tags: Acrobat

Similar Questions

  • Add a Menu item for a Signature sign field Script

    Hello

    I have several time sheets that need to have a script to sign digital signature fields.

    I have a "Singature Script field sign" that works perfectly when used in processing batch.

    I would like to add a menu item for this script instead of using the batch, because the user no longer has access to Adobe Reader.

    I created a file with extension js, but this does not create the menu item.

    Please can someone advise where this code needs to revise:

    app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "var myEngine = security.getHandler ("Adobe.PPKLite");"}) myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
    var f = this.getField ("Surv Signature"); Sign the f.signatureSign field (myEngine, {password: 'password'}); "{, cEnable: 1, NPO: 12});"

    If this script cannot be used to add a menu item, any suggestions would be appreciated as to where else this script can be placed on the document without using the treatment in batches?

    Thanks, any help will be greatly appreciated.

    You can't put the whole script in the cExec parameter. This setting should call a local function
    that contains your script, as follows:

    app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "sign()", cEnable: 1, NPO: 12});

    {sign() function
    var myEngine = security.getHandler ("Adobe.PPKLite"); myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
    var f = this.getField ("Surv Signature"); Sign the field
    f.signatureSign (myEngine, {password: 'password'});

    }

  • How to a add a menu item for the depeneding menu existing email on the subject of the e-mail?

    Hi all...

    I'm new here and I need your help... Please

    I'm trying to add the menu item to the email existing menu depeneding on the email... I assumed using

    ApplicationMessageFolderRegistry togather with shops and Session but could not establish the code...

    any help please...

    Thank you

    Please mark the topic as solved, then.

  • I want to get rid of the Bing screen, but there is no "menu at the top of the Firefox window" for me "Select tools and then select the Add-ons menu item.

    I suddenly have a 'Bing' screen when I connect on Firefox - and I want to get rid of it. The support section of Firefox says
    1 "in the menu at the top of the Firefox window, seledt tools, and then select the Add-ons menu item." - but I don't see any 'menu item' tools, or much less modules.
    2. "in the window modules, click the Extensions Panel"- but how to find the Modules window?
    3. find the Bing and extended support to search toolbar in the list and then click on disable for each of them. ' - but what and where exactly is - this?

    At the top of the screen is only an icon of Yahoo to the left and to the right of it, a search box, 'Web search', 'My Apps,' Yellow Pages,""Weather","Updates"and"Skype ". to the right of the people, there is a green cross saying "add more applications. to your toolbar"and to the right of this one kind of gear shift looking icon saying"toolbar settings ".
    So, in short, how can I get rid of the Bing screen and how to access these tools?
    Thank you.

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

    The F10 can also be used on most PCs to temporarily reveal the menu bar.

    https://support.Mozilla.com/en-us/KB/menu+bar+is+missing

  • Send the menu item for OS6

    Hey, help me please...

    I sendmenu sourcecode of blackberry Web site, I try to my BB tour 2 (9650) with operating system version 6 does not work...

    import net.rim.blackberry.api.sendmenu.*;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    import org.json.me.JSONException;
    import org.json.me.JSONObject;
    
    public class SendMenuAPIDemo extends UiApplication
    {
        public static void main(String[] args)
        {
            SendMenuAPIDemo theApp = new SendMenuAPIDemo();
            theApp.enterEventDispatcher();
        }
    
        public SendMenuAPIDemo()
        {
            pushScreen(new SendCommandDemoScreen());
        }
    }
    
    class SendCommandDemoScreen extends MainScreen
    {
    
    //In the screen class, declare instance variables to represent
    //an edit field and the text that the user types in this field.
        private EditField _textToSend;
        private String _textString;
    
        public SendCommandDemoScreen()
        {
            setTitle("Send Menu API Demo");
    
    //In the screen constructor, create a new EditField object to represent
    //the field that the user types in.
            _textToSend = new EditField("Send: ", "Type the text to send here",
                                        255, Field.FIELD_HCENTER);
    
    //To specify the appearance of the EditField object, invoke setBorder(),
    //setPadding(), and setMargin(). In this example, a bevel border is created
    //for the EditField object, and a padding area and margin area are added.
            _textToSend.setBorder(BorderFactory.createBevelBorder(new XYEdges(3, 3, 3, 3)));
            _textToSend.setPadding(8, 8, 8, 8);
            _textToSend.setMargin(15, 15, 15, 15);
    
    //Add the EditField object to the screen.
            add(_textToSend);
        }
    
    //Override makeMenu() of the MainScreen class.
        protected void makeMenu(Menu menu, int instance)
        {
    
    //Invoke super.makeMenu() to add the default menu items for BlackBerry
    //device applications to the menu.
            super.makeMenu(menu, instance);
    
    //Invoke getText() of the EditField class to retrieve the text that
    //the user typed in the edit field.
            _textString = _textToSend.getText();
    
    //Create a new JSONObject object to represent the context
    //information for the Send menu.
            JSONObject context = new JSONObject();
    
    //In a try/catch block, invoke put() of the JSONObject object to populate
    //the context information using key-value pairs. Use the constants that
    //are defined in the SendCommandContextKeys class as keys. Catch a
    //JSONException, which indicates that the specified key is null.
            try
            {
                context.put(SendCommandContextKeys.TEXT, _textString);
                context.put(SendCommandContextKeys.SUBJECT, "Your Text");
            }
            catch (JSONException e)
            {
                System.out.println(e.toString());
            }
    
    //Create an array of SendCommand objects to represent the Send menu commands
    //that you want to include in the Send menu. Invoke
    //SendCommandRepository.getInstance() to retrieve the singleton instance of the
    //SendCommandRepository. Invoke get() and specify as parameters the type of content
    //to send, the context information for the content, and a boolean value
    //that indicates whether all of the commands should be retrieved
    //regardless of whether their associated applications can be opened.
            SendCommand[] sendCommands = SendCommandRepository.getInstance().get(
                                             SendCommand.TYPE_TEXT, context, false);
    
    //Determine whether the array of SendCommand objects is not null and
    //contains commands, and if so, create a new SendCommandMenu object to represent
    //these commands and add it to the menu.
            if (sendCommands != null && sendCommands.length > 0)
            {
                menu.add(new SendCommandMenu(sendCommands, 0, 0));
            }
        }
    }
    

    Help me please, when I opened there is always a view from menu error: Module 'net_rim_bbapi_sendmenu' not found.

    API said "since 7.0', you will not be able to use the OS 6.

  • How to add a menu item in a function call

    My application requires that one screen which depends on function calls I'm adding and deleting fields according to my condition.

    for example

    Public Sub one()

    {

    -addition of horizontal field Manager

    }

    Public Sub two()

    {

    Area manager portrait \\add

    }

    now my question is - is it possible to add a menu item if I call the method "a."

    and this menu item does not appear if I call the method "two".

    If possible, pls explain me how to do...

    You can check conditions before you add menuitems in makemenu

  • How to add a menu item to new tools Panel

    Have anyone knows how to add the menu item to the "new tools Panel.

    For example,.

    Add (Menu object > wrap distort > make) to "new tools Panel. I try many way and research, still can not solve my problem.

    Does anyone have an idea which can add a menu item to new tools Panel.

    Thank you.

    Screenshot:

    Screen Shot 2016-01-26 at 11.26.07 AM.png

    Solve the problem

    Action > new Action > insert the Menu item > View button

  • Out of sync a station with the model of batch process?

    Hello

    My project has 5 test stations are run in parallel. I decide to use the batch process model because I want that they start and stop together. Next to startup and shutdown, I have some part in the need for synchronization of the entire test sequence. But in 5 stations, I want a workstation without flash sync to these steps. I tried to use the commands synchronize with the precondition, but it looks like that other stations are waiting for that one I jump the sync. My other option uses rendervous with number of parallel thread total is - 1. I test it and it works. But I still want to know if I can use batch synchronize step or not because it offers synchronization of start and exit synchronization.

    Thank you!

    NTT says:

    Doug,

    Thanks for your reply.

    I want to have something happening parallel with other threads, but without effect by steps of synchronization batch. I have several workstations parallel to the Assembly line. They are sync due to the pick and place. But I want to have a process is functioning as the station manager who keep track of USE between the train station and other site conditions such as pressure, temperature.

    Thang

    As a general rule, the intent of the TestSockets in the process templates is that they will have a 1 to 1 with DUT match, taking your 5th corresponds to an object to measure? In other y 5 DUT tested at the same time? DUT often need things like logging database or report generation. Your 5th decision-making requires the generation of reports? If not maybe this 5th Jack is really more than one thread of utility and creating a new thread or performance during execution makes sense for her. If your 5th instead making it really fits under test DUT in parallel enitrely separately from others the DUT then maybe you should start up a new run for the socket using the sequential model and just run as your other shots are running with the model of batch processing.

    So, it really depends on what you use this 5th station/thread to find out which method would probably work better.

    Hope this helps,

    -Doug

  • Access to information USE testsocket in the model of batch processing

    Hello

    I have a custom reminder pre-batch TS 4.0, which fills in the serial numbers, part numbers, etc for the DUT being tested (using a model of batch processing). These variables are found in the pre-batch settings. However, I can't understand how to access these values further reminders (SequenceFilePostStepFailure, for example).

    In the pre-batch sequence, I can access the serial number for UUT4 using Parameters.ModelData.TestSockets [4]. USE. Serial number. But I can't find the object of ModelData when you don't the pre-batch and tried to look in the root, runstate, hand, sequence, etc., without a bit of luck.

    Any thoughts?

    Thank you

    Chris

    You can find it at:

    RunState.Root.Parameters.ModelData

    There will be only at runtime, and only when you actually run using the model of batch processing.

    Hope this helps,

    -Doug

  • Sequence of batch processing with JavaScript

    Hi guys,.

    I have a batch sequence that will not save the original files. I get a message "the file may be read-only or another user can open. Please save the document under a different name or in a different folder. »

    However, another sequence of batch processing that runs on the same file records very well so I know that no one else is open and it and I know that I get this folder.

    The sequence that will not save the file defines opt them open and JavaScript inside collapsing many bookmarks.

    Is there something to have JavaScript in the batch sequence that does not allow this save?

    Thank you very much

    Ken

    You might have clicked the tiny icon next to the command, an icon of the small window. This causes the JS to open console window every file is processed. Stupid, right? If this is the case, try clicking this icon again while disappears and then run the batch again.

  • The synchronized application: creation of menu items for each call to makeMenu SQLite?

    A matter of design, which is a good implementation of the following?

    My requirements are:

    1. Have a different menu for each screen.
    2. The battery of the screen will be high both a single screen.
    3. To switch screens, the user must use the menu.

    I created the menu for each screen by the following:

    protected void makeMenu(Menu menu, int instance) {
    super.makeMenu(menu, instance);
    Database db = null;
    try {
    
      db = ResourceManager.getConnection(true);
      mCoffeeDao = new FlavshellDao();
      mTabDao = new FlavmDao();
    
      if (instance == Menu.INSTANCE_CONTEXT) {
          Bitmap logoWbg = Bitmap.getBitmapResource(resource
                  .getString(ScoreCenterResource.logo));
          Image image = ImageFactory.createImage(logoWbg);
    
          gMenu.setIcon(image);
          nMenu.setIcon(image);
          aMenu.setIcon(image);
          shMenu.setIcon(image);
          avMenu.setIcon(image);
          logoMenu.setIcon(image);
    
          menu.add(gMenu);
          menu.add(nMenu);
          menu.add(aMenu);
          menu.add(shMenu);
          menu.add(avMenu);
          menu.add(logoMenu);
      }
    
      if (instance == Menu.INSTANCE_DEFAULT) {
          menu.add(logMenu);
          menu.add(exitMenu);
    
          shell = mCoffeeDao.findAll();
    
          for (int i = 0; i < shell.length; i++) {
              Flavshell m = shell[i];
              /**
               * Ordering parameter, lower values are placed closer to the
               * top of the menu screen.
               */
              item = new FlavMenuItem(m.getPk(), m.getFlavortitle(),
                      200 + i);
              menu.add(item);
          }
    
          String[] params = {
              Integer.toString(this.mCoffeePk)
          };
          Flavm[] m = mTabDao.findByDynamicWhere("FLAVOR = ?",
                  params);
    
          if (m.length > 0) {
              for (int j = 0; j < m.length; j++) {
                  if (m[j] != null) {
                      Flavm specificMenu = m[j];
                      item = new FlavMenuItem(specificMenu.getPk(),
                              specificMenu.getTitle(), 100 + j);
                      menu.add(item);
                  }
              }
    
              menu.add(MenuItem.separator(105));
          }
      }
    
    } catch (FlavshellDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } catch (FlavmDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } finally {
      try {
          db.close();
      } catch (DatabaseException e) {
          Logger.logEventError("Menu Database error: " + e);
      }
    }
    

    I created a database with a single link object read in the following text:

    public synchronized static final Database getConnection(
        final boolean readOnly) {
    Database db = null;
    try {
        URI userFileURL = URI.create(System
                .getProperty("fileconn.dir.memorycard")
                + resource.getString(CoffeeHouseResource.db_path)
                + resource.getString(CoffeeHouseResource.db_name));
    
        db = DatabaseFactory.open(userFileURL, readOnly);
    
    } catch (MalformedURIException e) {
        Logger.logError("Get connection: URI: " + e.getMessage());
    } catch (ControlledAccessException e) {
        Logger.logError("Get connection: Controlled Access: "
                + e.getMessage());
    } catch (DatabasePathException e) {
        Logger.logError("Get connection: Database Path: "
                + e.getMessage());
    } catch (DatabaseIOException e) {
        Logger.logError("Get connection: Database IO: "
                + e.getMessage());
    } catch (Exception e) {
        Logger.logError(e.getMessage());
    }
    return db;
    }
    

    My question is,

    • If the user to call the menu as happening in any other activity database (SQLite), making the synchronized method will prevent database locks?
    • Should I design my makeMenu got a call from the database at all? It seems to me that all this works, this could potentially cause a lot of traffic on the SQLite database?
    • I thought to move the menu to a vector and storing the menu in storage Runtime, but I read that the Runtime Storage has the memory leak issues?

    Your basic design principles seem well - I have a number of applications that actually have "tabs" screens, so clicking on a tab or using the menu swaps from one screen to the other.  You can just push the new screen and pop, that. In fact, here's a menu from a screen, that I am currently working:

    _StatsMenu MenuItem = new MenuItem ("Stats", 110, 10) {}
    public void run() {}
    UiApplication.getUiApplication () .pushScreen (new StatsScreen (System.currentTimeMillis (), 0));
    UiApplication.getUiApplication () .popScreen (BaseScreenWithToolBar.this);
    }
    };

    While I haven't looked in detail, but your code dangerous look.

    I've never tested, but I suspect makeMenu is called using the EventThread.  Doing things like database connections in this method will cause you problems.  Do not.  If you need to query the database, do so before makeMenu is called.  Starts a separate Thread and set the appropriate menus if this Thread is not finished.  or block the user interface, until he made.

    In addition, I wouldn't do it in makeMenu:

    Bitmap logoWbg = Bitmap.getBitmapResource (resource
    .getString (ScoreCenterResource.logo));
    Image image = ImageFactory.createImage (logoWbg);

    You can do it once to the creation of the screen, or better yet, once at startup and save it in a shared domain.

    If you do not want to create a dynamic menu, then use the normal persistent store - or check out the details for the database once at startup and use them after that RAM.

    And avoid lifting heavy objects in makeMenu.

    I hope this helps.

  • How can I add new menu item in the context Menu of Flash CS6? (Not ActionScript)

    Hi all!

    I want to add my custom here menu item. I did the script jsfl that calculate eveyrting I need. I want to add the custom for her menu item. How can I do this?

    I see you there 'Generate Sprite Sheet' - I could do the same thing?

    question.png

    Hello

    The only places where you can add separate menu options lies in the command menu or add new extensions that appear in the windows-> menu other panels. There is no other way in which the menus can be added without being replaced by the Flash Code.

    For more information about adding separate entry into the menu commands or the Windows menu.

    (Menu) - add the jsfl script to C:\Users\\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Commands

    and that automatically will be appear on the Menu commands on Flash raises.

    (2) add a (panel) for the C:\Users\ Flash SWF\AppData\Local\Adobe\Flash CS6\en_US\Configuration\WindowSWF folder.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional Team.

  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • can I add a menu item to the messaging application during execution (after the reading of the object and decide whether to add this menu item or not)?

    Hi all...

    can I add a mail application menu item when running...

    I want to open a mail, depending on its content, I want to decide whether to add an element or not or at least change the name of my customized according to the context of the email...?

    Please help anyone

    still no

  • How to add a menu item to the bridge

    How to set a new jsx file, I created a bridge menu item?  Documentation says to look at the sample snpaddmenuitem.jsx, but I don't find it in my list of examples of sdk.  Thanks in advance for any help.

    You could modify the script and use a different ID or you could check and see if the ID is used in the first...

    MenuElement.remove (id); to remove the item, but the next time that the script is loaded, he would be back.

    MenuElement.create (type, text, loc, id);

    var MenuExists = MenuElement.find ("myMenuID");
    If (!.) MenuExists) {}
    Alert ("Menu item does not exist");
    } else {}
    Alert ("Menu item exists");
    }

    .

Maybe you are looking for

  • iTUNES Podcast App on the iPhone with the NEW IOS 10

    With the new update, I find that my podcast with iTunes app speeding up shows. Anyone else having this problem?

  • Download of CSV

    Hi all, I am facing a strange problem. I'm trying to download a CSV from a site using safari, but only it displays in the browser instead of download. But firefox and crome download my CSV. Is this a safari bug? Help, please.

  • What happens when I add the user?

    Hello I want to add a user. I think with administrator privileges. How is the Admin differs from the standard? It will have access to everything in the two? Fine. Nothing will change in appearance in adding a user? Excuse my stupidity, but it indicat

  • Removal of unused sequences in a report generator plugin

    I use an unmodified version of ModelSupport.seq comes with TS 2013, and have created a result processing plug-in by using the configuration > treatment result > advanced... > create new Process Model plugin... method.  This creates a file of sequence

  • Thread indicating real-time

    Hello world I would like to have two (or more) son (all or loops), which modifies a data value in each etaration and indicate that with an interface thread, which is independent of the others (so I have only a single indicator for multiple threads).