JavaScript Editor opens when I click Run Sequence

I'm using Batch Sequences to add Headers to my documents, using addWatermark from Text.  I want the file name as part of the watermark.
The reason I'm using javascript rather than the provided sequence is that I have a few hundred documents and they have a different amount of pages.
When I click run sequence the javascript editor pops up and if I click OK then everything runs fine, the new doc is created with the header I wanted. 
But I don't want to click OK a few hundred times and it wasn't happening before, it just started. Is there a way to stop it from popping up? Or a way to figure out why it started?
I'm on Acrobat 9 Pro 9.0.0 and Windows XP. 
The code is below:
/*Adding a header to a document*/
//This gets the filename
var re = /\.pdf$/i;
// filename is the base name of the file Acrobat is working on
var filename = this.documentFileName.replace(re,"");
//This adds a header in the right top position
this.addWatermarkFromText({
cText: "(My right header -" + filename +")",
nStart: 2, //Page to start adding the header
nEnd: this.numPages-1,  //Pages to stop adding the header
cFont:font.Helv,
nFontSize:10,
nTextAlign: app.constants.align.right,
nHorizAlign: app.constants.align.right,
nVertAlign: app.constants.align.top,
nHorizValue: -72,
nVertValue: -72

Make sure the "Prompt user" check-box under the Execute JavaScript command
in your Action is not ticked.

Similar Messages

  • NOT OPENING WHEN I CLICK PHOTO EDITOR

    Photoshop is not opening when i click the photo editor screen...it just loads and then acts like nothing ever happened...
    Why is this happening and how can i fix it...

    There is a separate window that opens up and says which photo library do you want iPhoto to use.  So I am not sure what to do. Terence I am not sure where the picture  folder is. sorry

  • Hi I am trying to downkoad based on the free trial. I hane Internet explorer and when I click run a sibdow will open with the sign of sownloading but it remains always to 0%

    Hi I am trying to download based on the free trial. I hane Internet explorer and when I click run a window  will open with the sign of downloading but it remains always to 0% and no download is executed. Can someone help?

    Use another browser.
    Mylenium

  • Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Firefox opens when I click on a hyperlink in an e-mail in my Outlook 2003 program, but does not go to the URL in the link. It used to work before I re-installed my MS XP Pro 64 bit OS. Help!

    At first, after I re-installed the OS, nothing would happen when I clicked on an e-mail hyperlink. So I went to Folder Options in Control Panel and associated Firefox with the E-mail file type. Firefox then opened when I clicked on a hyperlink in an e-mail, but just opens to the Firefox start page ("Blank page"). Firefox does not open the URL in the hyperlink. I need guidance as to how to restore this function which worked perfectly before I had to re-install the OS due to a corrupted program installer. I have run the MS Office Detect and Repair function twice--both times indicating that everything is fine--but it does not make a difference in fixing the Firefox function.
    NEW: An attempt to click on the link in Security Center to go to Microsoft Update brings up an error message that reads: "The requested lookup key was not found in any active activation context." I have no idea what this means, but I suspect it is related to the lack of ability to open Firefox to a link URL.
    See the uploaded screen print(JPEG) below.
    UPDATE: PROBLEM SOLVED!! Searched on error message on line, solution fixed problem. THANKS ANYWAY

    # Yes, if you go to accounts.firefox.org, sign out, you will now be signed out.
    # Sign back in, and you will be asked to save the password you entered.
    # This will save the password and autocomplete if you have this option turned on.
    I am not exactly sure why the menu did not detect the password change or if it was stored incorrectly after you changed it? But after storing the correct password you can manage any duplicate passwords in the password manager.[[Password manager - Remember, delete and change saved passwords in Firefox]]

  • ITunes won't open when I click on it

    In the past couple of weeks my iTunes library will not open when I click on it. I have tried uninstalling and installing iTunes and updating it but nothing works. Even plugging in my iPod will not open up iTunes.

    Please someone help!!! This problem is recent and apple has not caught up on it yet. I've resolved to seek answers on various forums but to no avail. I'm running a 64-bit version of windows 7 with 6GB RAM. I have tried uninstalling/re-installing/repairing itunes/quicktime and still nothing! A response will be greatly appreciated.

  • My Itunes won't open when I click on the program.

    My Itunes won't open when I click on the icon/program. It will flash like it's going to open on the bottom bar on windows 7 but then doesn't do anything, I have tried deleting it and redownloading it, however this still hasn't done anything. What can i do??? Thanks.

    Can you right mouse click iTunes icon and choose "Run as Administrator"?
    If this fails:
    Try SCAN your Windows system files for possible corruption:
    Go to command prompt (START/ALL PROGRAMS/ACCESSORIES right mouse click "command prompt" and choose "Run as Administrator"
    type in
    sfc /scannow
    let Windows fix any system files that need to be repaired.
    Restart the computer if it did actually repair any files.

  • Blackberry App World won't open when you click on icon

    Blackberry App World won't open when you click on icon, I have done reboot and batt pull and redownloaded - any ideas

    Hello scottex968, 
    Welcome to the forums. 
    In this case we can try to reload the software on the BlackBerry® smartphone to make sure it is running the latest version and there are no issues with the OS.
    Here is how to backup your BlackBerry smartphone http://bbry.lv/oPVWXc
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB03621
    Once completed test it and proceed with a selective restore, here is how to restore http://bbry.lv/qgQxLo
    Thank you
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • My photos won't open when I click on them,

    My photos used to open when i clicked on them, for some reason they now wont open, I have to highlight them and press return, does anyone have any idea what has happenned recently that could have caused this, update maybe, has anyone else got the same problem?

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • 2013 excel won't open when double clicked

    Hello,
    I am using window's 7. I am having an issue with excel. An excel file will not open when double clicked.
    Thank you,

    Hi,
    Does this issue happen to a certain Excel file or all Excel files?
    If this only happen to a certain Excel file, where is the file stored? We may try to open a blank Excel file, and then open the certain Excel file via File > Open and then navigate to the file to see the result.
    If this issue happens to all Excel files, please go to Task Manager, click Processes tab and make sure Excel.exe is not listed there. If Excel.exe is listed, end the process and then try to opening Excel file to see the result.
    If above doesn't fix the issue, we may also try to
    run a repair of your Office installation to see the result. It seems that the method fixed a similar issue for a number of users according to another thread.
    Please have a try and let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Firefox won't open when I click on the icon. I've tried uninstalling so that I can reinstall, but it says I have to close firefox (which isn't open), so I'm stuck.

    The problem: Firefox won't open when I click on the program.
    Solutions tried: #1) I tried to uninstall the program so that I can download it again, but the screen shows the message "firefox must be clsoed.. to proceed with installation". However, firefox is not open.
    #2) I tried to download firefox, thinking that possibly it would update and solve the problem. However, I get the same error message that "firefox must be clsoed.. to proceed with installation" Problem is that firefox is not open.
    I've done a screen shot, so you can see that I do not have the firefox browser open.

    Thanks for the reply. I tried repairing the permissions (as well as several other things like deleting the Finder preferences file), but no dice.
    Given that the problem cropped up right after updating OS X on two separate machines, it's looking to me like it's just a bug that needs squashing at this point.

  • HT1451 If I have two iTunes libraries on one computer, how do I know which one is opening when I click on the iTunes icon on the desktop?

    If I have two or more iTunes Libraries on one computer, how do I know which one is opening when I click on the iTunes icon on my desktop?

    You cannot.
    When you sync to a new library, it will erase the current content.
    Use your backup copy of the old computer to copy everything to the new one.

  • Finder won't open when I click on the icon

    OSX Yosemite
    iMac 21.5 in , late 2009
    Processor 3.06 GHz Intel Core 2 Duo
    Memory 8 GB 1067 MGz DDR3
    NVIDIA GeForce 9400 256 MB
    Out of the blue my Finder App will not open when I click the icon.  Finder will open if I click and hold the Finder icon and select New Finder Window.  It's more of an annoyance than anything, but I use Finder a lot and don't want the extra step of clicking and holding.
    I have checked the Finder functionality on my other Users and it works fine, so it is just my User that is having the problem.
    This is what I have tried to do to fix the issue:
    Delete com.apple.finder.com and restart
    Delete all Login Items and restart
    Unplug all peripherals and restart
    Test the issue in Safe Mode.  The problem still occurred in Safe Mode.
    Deleted my User and restored from Time Machine Backup.  Still have the problem.
    I don't know what else to try.  Any help will be appreciated.

    Thanks for the reply. I tried repairing the permissions (as well as several other things like deleting the Finder preferences file), but no dice.
    Given that the problem cropped up right after updating OS X on two separate machines, it's looking to me like it's just a bug that needs squashing at this point.

  • How do I change the default software that opens when I click on a document?

    I'm not sure if this is the right neighborhood to post this question, but here goes. How do I change the default software that opens when I click on a document icon. I've been without MSWord for a long while, so all my word processing docs have been written in TextEdit, the stock mini-word processor that comes with OSX. Now I have MSWord and I no longer need TextEdit. Even more importantly, I'd like Word to automatically open when I click on a doc created in TextEdit. Adding ".doc" at the end doesn't do it. It's still refers to TextEdit to open the document.
    Any advice?
    Thanks,
    John

    Select a document of that type in the Finder, choose Get Info from the File menu, change the application under Open With, click on Change All, and confirm your action.
    (23558)

  • My files on pages cannot be opened, when I click on them appear" file impossible to open". All is.saved.on iCloud and iCloud drive and on my devices is the same

    My files on pages cannot be opened, when I click on them appear" file impossible to open". All is.saved.on iCloud and iCloud drive and on my devices is the same
    All iCloud systems works properly, also  WiFi and devices and the system
    Help me please

    hi there,
    try booting into safe mode, by pressing the Shift button once you hear the startup sound.
    Hope this helps,
    Chris

Maybe you are looking for

  • Using iTunes in Parallels Environment with Mac Library

    Is it possible, while running Windows XP in a Parallels environment on my Mac, to have the Windows version of iTunes access my music library located on my Mac hard drive in the normal position (~/Music/iTunes)? I've tried connecting the Windows versi

  • If I download bootcamp will i need to buy windows 7 before I can install a PC game?

    I want to buy the new star wars old republic game when it comes out.  But its a pc game.  I heard i could download a program called bootcamp.  I just want to know if i will have to buy and install windows 7 in order to play a pc game on my macbook or

  • Buyer Beware!

    I was using Partner Printing with great luck; then started shopping because of freight charges from west coast. Started using 4-Over, but am just recovering from a very bad experience with them. 2500 trifolds arrived at my clients office unfolded; 4-

  • Downloaded files don't open automatically

    why most of files, Word, Excel and many other don't open automatically on desktop after downloading them, is very irritating to go and search all the time Thanks for help

  • Slide notes

    This question was posted in response to the following article: http://help.adobe.com/en_US/captivate/cp/using/WS5b3ccc516d4fbf351e63e3d119e9582190-7fd8.h tml