JavaScript Editor opens when I click on run sequence

I use batch sequences to add headers to my documents, using the addWatermark of the text.  I want the name of the file as part of the tattoo.
The reason why I use javascript rather than the provided sequence is that I have a few hundreds of documents, and they have a different amount of pages.

When I click on run the sequence of the javascript editor appears and if I click on OK, then everything works fine, the new doc is created with the header that I wanted.

But I don't want to click OK, a few hundred times and it has not been produced before, it just started. Is there a way to prevent to appear? Or a way of understanding why he started?

I'm on Acrobat 9 Pro version 9.0.0 and Windows XP.

The code is below:

/ * Add a header to a document * /.

This example gets the name of the file

var re = \.pdf$/i;

filename is the base name of the file that acrobat works

var filename = this.documentFileName.replace(re,"");

This adds a header in the right position at the top

this.addWatermarkFromText({)

"cText:"(ma tête droite-"+ nom +"")", ",

Start: //Page 2, to start adding the header

nEnd: //Pages this.numPages - 1, to stop adding the header

cFont: do. Helv,

nFontSize:10,

nTextAlign: app.constants.align.right,

nHorizAlign: app.constants.align.right,

nVertAlign: app.constants.align.top,

nHorizValue:-72,

nVertValue:-72

});

Make sure that the check box 'interrogate the user' under the command to run JavaScript

in your Action is not checked.

Tags: Acrobat

Similar Questions

  • Just downloaded LR 2015 compared to the creative clouds and when I click to run it blinks in and out and will not open. I have a macbook pro 13 "retina

    Just downloaded LR 2015 compared to the creative clouds and when I click to run it blinks in and out and will not open. I have a macbook pro 13 "retina

    Hi Frank,.

    You can follow the article: connect, disconnect you and | Creative desktop application Cloud disconnect and reconnect back to creative cloud and try to launch your Lightroom 2015 application.

    Let us know if it works or not.

    Thank you

    Yann Arora

  • Hi I'm trying to downkoad based on the free trial version. I hane Internet explore and when I click on run a sibdow will open with the sign of the sownloading, but it still remains at 0%

    Hi I am trying to download based on the free trial version. I hane Internet explore and when I click on run a window will open with the sign of the download, but it always remains at 0% and no download is performed. Can anyone help?

    Use another browser.

    Mylenium

  • When I click on 'Run 64-bit DxDiag' the DxDiag tool closes.

    Original title: DxDiag 64 bit problem

    How can I run 64-bit dxdiag?  I tried opening dxdiag & clicking on the 'Run 64-bit DxDiag' button on the bottom, but it doesn't close the window.  What I am doing wrong?

    Hello
     
    Method 1.
    When you click on run 64-bit DxDiag it minimizes the window. But it performs the test and you can click next page to view the errors.
    If the page closes directly can be a third-party application is causing the conflict. Let us check if the problem exists in the boot. See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
     
    Method 2.
    For more information about the DxDiag tool, refer to the article below.
    DirectX: Frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/DirectX-frequently-asked-questions
     
    Run the DirectX Diagnostic tool
    http://Windows.Microsoft.com/en-us/Windows-Vista/run-DirectX-Diagnostic-tool
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I chose to open files by default .exe for internet explore. Now I can't open microsoft word2007, Notepad, mozilla, chrome, etc etc as iexplorer opens when I click on any program. How to return back?

    I chose to open files by default .exe for internet explore. Now, I can't open chrome, mozilla, Notepad, microsoft, etc., etc. like iexplorer opens when I click on any program. How to return back?

    I tried this solution

    "When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program."

    microsoft community.
    The problem I encounter is that I can't even open Notepad or command prompt window window download internet explore opens and I'm stuck there. Please help me get out of this quagmire.

    Hi Wiillam,

    This problem occurs because the icon cache is not updated correctly.

    Refer to:

    Note: Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    (http://windows.microsoft.com/en-US/windows7/Back-up-the-registry ) How to back up and restore the registry in Windows.

    Icons change incorrectly in Windows

  • My address book is not open when I click the 'To' bar in an e-mail message.

    I've recently updated to Thunderbird 4.1.0. Since that time, my address book opens not when I try to send an email from the "To" or other lines. I have to open the address book and cut and paste the address manually. How can I reconnect the AddressBook for the e-mail program?

    I've never seen the address book open when you click on to. But maybe you are on that old one version that I have missed to see that. The latest version is 34.
    Open a window of writing and turn on the contact bar by pressing F9. That allows to process emails.

  • My DVD player does not open when I click on the button

    Hello

    I hope someone can help me.
    My DVD player does not open when I click on the button.

    I tried clicking on eject on the DVD drive icon in my computer and it comes up with an error message.
    I think I deleted the cookies the other day. Who would have something to do with the problem?

    Any help would be greatly appreciated that I really don't want to send my phone to a technician.

    Hello

    Try to manually open the CD/DVD drive.
    Near the eject button, you will find a small hole.

    You can use a small object like staple and could push gently into this hole.

    Usually, this should help to open the drive manually.

  • Change the e-mail program that opens when I click on a link in a document

    Clicking on an email address in a pdf document in Acrobat Reader, Mac Mail will open instead of the e-mail program I use, Outlook for Mac 2011.  How can I change the default program that opens when you click on a link?

    Hi Meenakshi,

    I assume you mean Adobe Reader > Preferences > e-mail accounts.  I did already but get an error message: "Error communicating with the server" when I try to send a PDF by e-mail (file > Send file > Attach to Email), even if the parameters are exactly the same as in Outlook.  Don't know how to solve this problem, although simple workaround is just to save the file locally and then send it as an attachment from Outlook itself.

    But with regard to the specific question that I asked originally, I don't try to send a document as an attachment; I am trying to send an e-mail to a hyperlink address embedded in a pdf document open. It seems the setting that you referenced only affects how documents are sent as an attachment, not what client opens when you click on a link embedded in a pdf document e-mail.

    Anyway, I solved the problem of the latter: in OSX, please make sure that in the native Mail application that the default mail reader is the application that you want to use ALL the programs/applications (Mail > preferences > General > default email reader), including Adobe Reader.  Once I put this in Outlook, click an address for e-mail embedded in a document pdf opens Outlook with the address already in the field "to".

  • Creative Cloud disktop app has stopped opening when I click the icon on the desktop?  Help?

    Creative cloud stopped opening when I click it on the disktop?  Help?

    Hi Ben,

    Please follow the steps below and try again:

    If you are using MAC:

    1-force Quit the sub process in the same sequence as shown below from Activity Monitor: see, use the monitor activity on your Mac - Apple Support

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • After that, everything that said adobe on it do a force quit for her

    2 - CUT any installed security software with firewall system.

    3 - raise the cloud creative app and connect

    If you use the WINDOW:

    1 complete the process / Task Manager tasks in the same order, as mentioned below the Manager tasks. See, Open the Task Manager

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • After that, everything that said adobe on it do a force quit for her

    2 - CUT any installed security software with firewall system.

    3 - raise the cloud creative app and connect

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • I just downloaded CC but the two PS and Lightroom will not open when I click on open. using Windows 7 any ideas

    I just downloaded CC but the two PS and Lightroom will not open when I click on open. using Windows 7 any ideas

    Please contact support:

    Contact the customer service

    Concerning

    Megha Rawat

  • I am trying to download a trial version of adobe captivate, I downloaded net session akamai interface, but it does not open when I click on it. I tried to download the file directly, and there is no answer. I unlocked the ads. I use an access point

    I am trying to download a trial version of adobe captivate, I downloaded net session akamai interface, but it does not open when I click on it. I tried to download the file directly, and there is no answer. I unlocked the ads. I use a mac apple OS10.6.8 and the browser chrome. can anyone help please?

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If he continues to not try to use a different browser.

  • Win 7 Firefox 3.6.13, new tab does not open when you click on it, on the desktop or laptop computer.

    I can not open a new tab in Firefox 3.6.13, running Windows 7. It does work on my desktop or my laptop. When I click on the '+' to add a tab, or right-click on it and choose 'New tab', nothing happens.

    "AskToolbar" extension is causing the problem. You can disable it in tools, modules, Extensions and restart Firefox.

  • How to stop additional instances of my Firefox home page to open when I click the links?

    Often, when I click on a link in an e-mail or web page, and Firefox is not yet running, not only opens this web page linked, but also an additional instance of my home page opens. I would like to avoid this.

    See also http://kb.mozillazine.org/Preferences_not_saved

  • Why a tab and a new window opens when you click a link

    When you click on a link in a new window AND new tab open. They stack above the other on the desktop slow down the computer. We run OS X EL CAPITAN.

    With the recent "update" I'm having this problem too. Navigation became a royal PITA. 27 windows open at the same time? It looks like nobody tested before FORCING the update that does not need to be updated.

  • Click on free will is not open when I click on options

    How can I open click free options. It closes when I click on the tab options. I am trying to reset

    You not give us a lot of information to work with...

    Check if there is an available update?

Maybe you are looking for