Acrobat exit, dependent on menu button used

I have a javascript folder based process for allowing  a person to step thru a list of pdf files performing an action on each file.
A menu button is used which executes a function to sign and close the current file and open the next file in the list.
When I execute this function from a menuitem (in a submenu under Tools as the parent) everything is fine and the files can be processed and stepped thru.
However users have asked for this command to be more accessible by placing it on the Acrobat toolbar.
So I used the app.addToolButton() to put the command in the addon toolbar. It executes exactly the same function and correctly signs and closes the current file, and opens the next file.
Windows displays a Data Execution Prevention windows.
Then Acrobat generates the error window message (as below) and Acrobat exits.
"Adobe Acrobat 8.2 has encountered a problem and needs to close. etc"
The windows event application log shows an entry
Faulting application Acrobat.exe, version 8.2.5.241, faulting module unknown, version 0.0.0.0, fault address 0x656c6946.
Category (100) or None, Event ID 1000 or 1001.
Does anyone know how to resolve this.
Assistance is appreciated.

Button code that fails is as below - in config.js (now trys to execute the Tools menu function that works "SIGN");
exec = app.trustedFunction(
function(filename)
  app.beginPriv();
console.println("\nDST:Batchsign_exec - calling SIGN");
  app.execMenuItem("SIGN");
  app.endPriv();
// script = "Function - DST_batchsign_addSignButton";
app.beginPriv();
console.println("\nDST:Batchsign_addSignButton");
global.version_DST_batchsign_addSignButton = "1.0";
var oButObjsign =  {cName: "SIGN_ONCE ",
cExec: "exec();",
cLabel: "[SIGN //label on button
cTooltext: "Digitally sign next signature field",
nPos: 1,
try
  app.addToolButton(oButObjsign);
catch(e)
console.println(e) ;
app.endPriv();

Similar Messages

  • Translation menu/button

    Gurus,
        What is this Translation menu/button used for in Administrator workbench.
    Thanks

    Shiva Sai
    Welcome to SDN
    See if this helps
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/bf0d3dbd82fe2fe10000000a114084/frameset.htm
    Thnaks
    sat

  • Help with Acrobat js created menu button

    I as using a short javascript which creates a menu button. The js script is in the correct Acrobat javascripts folder. I am using Acrobat Pro 8.1.2
    var oButObjAddSigningPage =
    {cName: "AddSignPage",
    cEnable: "event.rc = (app.doc != null)",
    cExec: "AddSigningPage()",
    cLabel: "Add Signing Page",
    cTooltext: "Add signing page to the current document"
    try
        app.addToolButton(oButObjAddSigningPage);
    }catch(e){console.println(e);}
    The function AddSigningPage()" is in the same script file.
    Problem: The button loads and displays correctly (greyed out) if Acrobat is launched. If a pfd file is then loaded the button comes alive and the function works OK .
    But the button does not display at all if Acrobat is launched by clicking on a pdf file.
    Help please.

    The proper input to the "app.removeToolButton" function is the name of the toolbar button, not the object that was used to create it.  Try this:
    app.removeToolButton("AddSignPage");
    The very first thing you need to check for is the "Add-ons" toolbar.  After loading your document, and when the toolbar button doesn't show.  Right click on an empty portion of the Acrobat Toolbar to display a list of all the individual toobars.  Is there an Add-ons Toolbar Listed?  Is it checked?
    To determine if your Folder level script was loaded and run, Test the function created in that script.
    Run this from the console window
         AddSigningPage
    The code for the function will be returned if is was defined.
    To determine if your toolbar button was loaded, run this code from the console window.
    var lst = app.listToolbarButtons()
    for(var i=0;i<lst.length;i++){
      if(lst[i].cName == "JSAppToolBar")
        console.println(lst[i]);
    the "JSAppToolBar" is the internal name of the "Add-ons" toolbar.
    However, from what you have described it does look as if you've hit on a bug.  Probably a timing issue.  What are the characteristics of this file?
    Thom Parker
    WindJack Solutions
    The source for PDF Scripting Info
    http://www.pdfScripting.com
    The Acrobat JavaScript Reference,  Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html

  • How to code for select all& deselect all?using menu buttons

    hai,
    i have generated a report with a single field from a database table and
    i have a checkbox for each record/item in the report.
    i need help in the following ..
    now that i have menu buttons say "select all" and "deselect all"..
    if select all is clicked then all checkboxes should be selected.
    if deselect all is clicked, then all checkboxes should be deselected
    i know that we have to use functional code and use case sy-ucomm etc.
    when "selectall"  etc..
    can someone help me how to code for this to work exactly?

    it did not work for the code u had suggested...
    plz check it out and send me the exact working code..
    REPORT  ZINTRACTIVE_PROJ                        .
    TABLES : SFLIGHT.
    DATA : BEGIN OF IT OCCURS 0,
           CARRID LIKE SFLIGHT-CARRID, FLDATE LIKE SFLIGHT-FLDATE,
           END OF IT.
    DATA : BOX TYPE C,
           LINE TYPE I.
    SELECT CARRID FLDATE FROM SFLIGHT INTO TABLE IT.
    LOOP AT IT.
    WRITE : / BOX AS CHECKBOX, IT-CARRID.
    ENDLOOP.
    LINE = SY-LINNO .
    SET PF-STATUS 'SELECT'.
    AT USER-COMMAND.
    CASE SY-UCOMM.
      WHEN 'SELECT'.
          DO LINE TIMES.
            READ LINE SY-INDEX FIELD VALUE BOX.
            IF BOX = 'X'.
               NEW-PAGE.
               WRITE : / IT-FLDATE.
            ENDIF.
          ENDDO.
      <b>WHEN 'SELECTALL'.
          LOOP AT IT.
            IT-CARRID = 'X'.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = IT-CARRID.
            EXIT.
          ENDLOOP.
      WHEN 'DESELECTALL'.
          LOOP AT IT.
            IT-CARRID = ''.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = 'X'.
            EXIT.
          ENDLOOP.</b>ENDCASE.

  • General Error or Crash using menu button on chapter playlists

    This is my first complex project in 2.0 - I needed to have approx 120 clips playable individually from a series of still menus. Given the 99 timeline limit, I created a number of timelines and placed batches of clips on them. I'm then using individual chapter playlists to reference each clip. The chapter playlist is linked from a menu button.
    When using the menu remote button when a chapter playlist is playing, I either get an 'abnormal condition' error, or occasionally, Encore crashes with no message at all. Tried this with no menus, timelines and playlists open but same errors.
    More detail:
    PAL 16:9 project
    28 timelines
    65 chapter playlists
    15 still menus
    approx 120 mpv clips and associated wavs (mpv encoded with cinemacraft encoder sp)
    Settings for one of the clips giving problems:
    Timeline - end action not set, menu remote - return to last menu, all ops permitted, no chapter end actions
    Chapter playlist - end action - return to last menu, override not set, menu remote - return to last menu, all ops permitted.
    I think I can stop the errors and crashes if I disable the menu remote button - but I don't really want to do this.
    Any ideas what's going on? Is it a bug(S)?
    Thanks,
    Paul.

    Paul.
    The trouble I had was the "Abnormal Condition" error when hitting the menu remote button in preview.
    There was no problem with Prev/Next buttons though.
    I tried burning a disc too, just to check if it would burn true & just played up in preview - but no dice. What happened was the player froze up solid after pressing the menu remote.
    I did create another project where the chapter playlists numbered around 28 from a single timeline, and this actually worked as it should do, so I suspect an issue in Encore's internal stacks where this is all addressed.
    I had to use a different application in the end.
    I believe the reason yours is still failing is simply because despite having 5 timelines, you are still well over the number of chapter playlists that seem to be available.
    It's a nasty bug - but apparently a fix is in the works. Hopefully we will see this as a maintenance release - we got these with both earlier versions (1.01 from 1.0, and 1.5.1 from 1.5) so I am hoping it will happen.
    There are a couple of issues I have noticed - although this is so far the only one I cannot work around in my projects.
    One thing has just occurred to me that might help you here.
    Instead iof using a chapter playlist to reference each clip, save these for multiple clips that need to be accessed, and from your chapter menu, just point directly to the clip in question.
    Set an end action for each clip to revert back to the menu that called it, and create just a single chapter playlist for a "Play All" situation.
    This will greatly reduce the number of chapter playlists you are running - and should do the job for you.

  • How to use menu button on apple remote with mac mini

    I purchased a late 2012 mac mini and the silver remote. The remote automatically opens iTunes, plays and pauses songs, adjust the volume, and skips forwards or backwards just fine. I had no trouble linking it the the Mac Mini either. So we have established it is working and comunicating fine with my Mac. My question is: what the heck is the "menu" botton for and can I use it with my Mac Mini? I'm using OS X 10.9.2.

    The Menu button does nothing
    https://discussions.apple.com/thread/4143595
    There are apps that will help using the remote. See:
    http://andymurkin.wordpress.com/2013/10/07/fun-with-the-apple-ir-remote-part-1-m aking-it-work/

  • Hi, I was using my iPod Touch and then all of a sudden, the screen went black. So I held the the on and menu button to reboot it and so it shut of and came back on and been on the loading screen for an hour. What can I do to fix it?

    Hi, I was using my iPod Touch and then all of a sudden, the screen went black. So I held the on/off button and menu button to reboot it. So it turned off then back on but it has been stuck on the loading page for an hour. What's wrong with it?

    - Let the battery fully drain. After charging for at least an hour try here:
    iOS: Not responding or does not turn on

  • The menu button on my tablet does not appear when using firefox Aurora

    I have a tablet Android v4.0.3 and I installed Firefox 15c - Aurora via the downloaded apk file
    1. There is no entry in my list of application
    2. Firefox does not invoke the menu "soft button" on my tablet. I see the backup, HomePage and ActiveApplications, but not the menu button
    I am using an 8" tablet, ARM v7 variation, ARM cortex A10 the Momo
    I downloaded the full-screen add-on, but I do not have a nenu button
    I see all ther required toolbar icons in Aurora, so I do not have an issue there.

    The version of Aurora is 15.0b2 and not 15c as stated above. I downloaded Aurora on 2012-07-10, the day that I opened this problem qustion

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • Error Message when using menu buttons in IE but not chrome

    Hi.
    My recently uploaded site has an issue when using the menu buttons anywhere on the site in Internet Explorer but not on my mac using chrome? I get this error message come up on screen which takes three clicks to go away  MuseJSAssert: Error calling selector function:TypeError: Object doesn't support property or method . Then if I click anything else it pop ups again. Any ideas how to get rid of this? I have tried re-uploading the muse files but the same happens. I even tried uploading the files from a different exported frm muse folder as I saw had worked for someone else on here but no difference? Any help much appreciated.
    Website : vanletteringco.com
    You may get an error that iPage are sorting when opening too, just delete the /root1 in the address bar to see the site?
    Thanks
    Gav

    Hello,
    I am only getting the MuseJSAssert error on the contact page of your site when viewed in Internet Explorer.
    And as I can see you have used a webform from Jotforms which I suspect might be creating issues here.
    I would suggest you to remove the form  once and then upload your website again. if it starts working fine then get the Embed code of your form again from Jotforms and insert it again to check if it works fine or not.
    Please let us know the results of the testing.
    Regards,
    Sachin

  • My iPod touch's menu button literally sank in and now I am unable to use my iPod totally because I cannot press the menu button at all. Can Apple rectify this if I send it to a service center?

    My iPod touch's menu button literally sank in and now I am unable to use my iPod totally because I cannot press the menu button at all. Can Apple rectify this if I send it to a service center?

    You should definetely contact an apple store! If your warranty is valid they will probably fix it for free. Until then go to settings, general, accessibility, assisive touch and turn it on. A circle will appear that does exactly what your home button does.

  • Keep exiting to the menu itself (while pressing the camera roll button) when trying to upload photos in iMessages or Facebook.

    Keep exiting to the menu itself (while pressing the camera roll button) when trying to upload photos in iMessages or Facebook.

    Here is an article from the apple support website that might help out.
    http://support.apple.com/kb/TS1502

  • How to run a vi without using menu button on top

    i got to execute or run the labview program without using the menu button.There should be a button on front panel clicking on to it must run the vi.

    Hello, i am also new to labview but i experienced that you can use
    a while loop for this.
    You need to connect while loop with an boolean button,
    so everything which is included within the while loop will start only if
    the boolean button is "True".
    best regards
    Sven Zörner
    mitu_patnaik wrote:
    > i got to execute or run the labview program without using the menu
    > button.There should be a button on front panel clicking on to it must
    > run the vi.

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:
    http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html

  • In most web sites many web sites, the menue buttons do not appear i have to scroll over the screen untill the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    In most web sites many web sites, the menu buttons do not appear i have to scroll over the screen until the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

Maybe you are looking for

  • Block the Material at Item level in Sales Order automatically for delivery

    Hi! My business scenario needs a material to be Ckecked for Inspection after raising the Sales Order by thirdparty person. So, I need to block that particular material at Item level automatically for delivery and rest of the line items can get delive

  • DMS: entering document from cProjects

    Hi, When I try to view documents from cProjects the file type is unknown. This goes for e.g. excel. For word it is okay. I think I may not have the correct entries in the customizing activity: Define application, but I do not know what to enter. I sp

  • View Link sql window is non editable

    Hi All, I am creating view link between two views using wizard, but when I reach view link sql window it is blank and non editable. any ideas on this? Thanks in advance. Hitesh

  • Oracle BI Server crashed?

    Hi all, I've had a really disturbing issue with OBISE1 today which i hope you guys can shed some light on. During an OBI demonstration the performance went down the drain after about 30 minutes. While i was logged in and demonstrated dashboards/repor

  • How to check the maximum Value and Last value in Reports CP column

    Hi all First of all i am sory that iam posting this question in forms instead of Reports....i had posted it in reports but no one reply and i need uirgent solution so I post here.... My problem is that in Report I have calculated some values in CP co