How to edit and reload JavaScript code without restarting Acrobat?

As a programmer, I wonder if there is a better way to do things that I still cannot figure out.
At the moment I write code in Notepad++, save it in Acrobat's Javascripts folder, open Acrobat, test the code and find out it doesn't work (no surprise there ).
I then have to close Acrobat, edit the code in Notepad++, save, open Acrobat and find out again that it doesn't work.
Rinse and repeat for an inordinate amount of times, especially at the beginning of a new "scripting project".
The JavaScript Debugger is great but, unless there's something I don't know, doesn't let me edit the code directly in its window.
As you have worked out already I'm referring to folder-level scripts, so the "Document JavaScripts", "Set Document Actions" and possibly even the "Edit all JavaScripts" buttons are in fact useless.
Adobe Acrobat and Adobe Reader... ain't no Visual Studio and I don't want them to be but please tell me there's a way to write code a little bit more on-the-fly
Thanks!
Roberto

Thank you both for your posts!
I spent a few days working and experimenting with Javascript in Acrobat and my first impressions are sadly confirmed.
try67, you are absolutely correct, but the console approach for testing and developing doesn't work if the add-on is heavily dialog box based (because debugging is disabled).
Not to worry though, any difficulty can be overcome and frankly it doesn't take that long to relaunch adobe anyway
Thanks for your time!

Similar Messages

  • How to run and stop LabView code without using start and stop buttons

    Hey
    I've attached my code that I'm going to use with thermocouples. What I'm trying to do is: when I hit start button the code should run for a minute then stop for 5 minutes and then start again, this process should be repeated twice . Could you please suggest the appropriate way to do it.
    Regards 
    Rajab
    Solved!
    Go to Solution.
    Attachments:
    temp. samples.png ‏24 KB

    Rajab84 wrote:
    Hi altenbach
    Thanks a lot for your help, I've tried the state machine, I’ve created 5 case structures as following: start for 1 min, stop 5 min, start again for 1 min, stop 5 min, restart again 1 min and finally stop. I’ve tried the code and it didn’t work. Could you please have a look at the attached code and let me if I need to change something. I think I’ve not used the elapsed time function properly. 
    Best Regards 
    Rajab
    you really dont need to repeat cases (2x)...using a shift register will reset your timer function once the timer has reached it's set limit. the "bool crossing" is used to tell me when the "5 min" case is done and increments the cycle count....ofcoarse, change the "seconds" constant to your desired time on the elapsed timer of this example 
    and you could "or" the stop to the "compare = 2" or change the select "wait" to "exit" with a constant connected to the stop
    Attachments:
    Untitled 2.vi ‏42 KB

  • How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    Hi hasvi,
    Need Template(.indt), textframes etc for the following script:
    var myFolderInd = Folder.selectDialog();
    var myFile = myFolderInd.getFiles("*indt");
    app.open(myFile)
    var myDoc = app.activeDocument;
    var myDocName = myDoc.name;
    var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
    var myFolderDoc = Folder.selectDialog();
    var myFile1 = myFolderDoc.getFiles("*doc");
    mySaveFile.pages[0].textFrames[0].place(File(myFile1))
    //~ mySaveFile.place(File(myFile1))
    app.activeDocument.textPreferences.smartTextReflow = true;
    var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
    myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
    alert("Process Completed")
    Regards
    Siraj

  • Question:  How to edit and/or delete photos uploaded to web gallery?

    My Dad uploaded some photos to my web gallery without renaming the photos. Is there any way I can go in and edit and/or delete these photos? Sorry if it's a dumb question... I'm new to iLife '08 (really new to iLife in general)... and for the life of me can't figure out how to edit and/or delete these photos (without deleting the whole library).
    Thanks for any help!
    Ciao ~ Louie

    Guess I just answered my own question.
    For anybody else that may be wondering...
    From within iPhoto there is a "WEB GALLERY" tab in the left side menu. There you will see the name of your web gallery with a little icon that looks like an antenna. If you click on that icon... it will sync your web gallery photos that have been uploaded by other users into iPhoto. You can then edit and/or delete the photos within iPhoto and the edits will automatically change on the published web gallery (may depend on sync preferences... mine changed automatically).

  • How to edit and make a high quality swf a low quality one

    How to edit and make a high quality swf a low quality one. how do you do this in adobe flash cs5? The file i edited is entirely too large

    click file/publish settings/html and use the quality settings dropdown.
    if that doesn't lead to satisfactory file size, you may need to check the properties of each bitmap in the library to see if it's set to over-ride the global settings.

  • How to edit and add a signature on a pdf file

    how to edit and insert signature on a pdf attachment
    Creating, Editing & Exporting PDFs

    First the PDF file has to be editable.
    Then it depends on whether you want to sign it with an annotation (Acrobat stamp), an Electronic Signature (a.k.a EchoSign) or a Digital Signature (Acrobat).
    If it's a Stamp then go to Sign Panel>Get others to Sign and then you can use the Place Signature button.
    If it's an Electronic Signature then after you finished your stamp then just follow the wizard that pops up when you click the Signed. Proceed to Send Powered by EchoSign
    If it's a Digital Signature then go to Sign Panel>Work with Certificates>Sign with Certificate and follow the wizard.

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • How to find & replace in Javascript code?

    Hi all!
    I hope that this turns out to be an easy question! We recently updated several forms (about 50 of them) to alter a select set of field names per customer requirements. However, it turns out that one of these fields is a key field and is referenced in one or more places by JavaScript within the PDF.
    In Acrobat 6 I'd select the option to edit all scripts which would give me a big document with all of the Javascript within the PDF. I could then do a find/replace on the code and save it. Now, using Acrobat Pro 9, I cannot find anything like this. Please don't tell me that I have to search through all of the different form fields and PDF objects to find all of the script pieces tied to objects or events! I'm really, really hoping that there is an easier way to do this since right now I'm out of ideas and really don't want to have to sift through all of the objects in over 50 PDF documents.
    Thanks in advance for pointing me in the right direction!

    Talk about not being able to see the forest for all the trees! I can't believe that I missed that -- I spent quite a while looking all over before posting. *sigh*
    The exact menu sequence (for those interested) is Advanced -> Document Processing -> Edit All JavaScripts...  That is exactly what I needed. Thanks!!!

  • How can I delete all javascript code from a file

    We need to delete all the javascript code from our illustrator files. Right now I need to click on each element and check my SVG interactivity window for any javascript code, then trash it from that window. Very time intensive. Any ways to make a complete elimination of javascript code?

    sudo -u _cyrus /usr/bin/cyrus/bin/ipurge -d 0 -f user/mailboxname
    HTH,
    Alex

  • How to edit and update table control into database?

    I am doing table control. Here are my codes:
    *& Report  ZHERA_TABLE2
    REPORT  ZHERA_TABLE2.
    ***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'ZTABLE_CONTROL'
    *&SPWIZARD: DEFINITION OF DDIC-TABLE
    TABLES:   ZHERA.
    *&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'ZTABLE_CONTROL'
    TYPES: BEGIN OF T_ZTABLE_CONTROL,
             NAME LIKE ZHERA-NAME,
             AGE LIKE ZHERA-AGE,
           END OF T_ZTABLE_CONTROL.
    *&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'ZTABLE_CONTROL'
    DATA:     G_ZTABLE_CONTROL_ITAB   TYPE T_ZTABLE_CONTROL OCCURS 0,
              G_ZTABLE_CONTROL_WA     TYPE T_ZTABLE_CONTROL. "work area
    DATA:     G_ZTABLE_CONTROL_COPIED.           "copy flag
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ZTABLE_CONTROL' ITSELF
    CONTROLS: ZTABLE_CONTROL TYPE TABLEVIEW USING SCREEN 1000.
    START-OF-SELECTION.
    CALL SCREEN 1000.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE_CONTROL'. DO NOT CHANGE THIS LI
    *&SPWIZARD: COPY DDIC-TABLE TO ITAB
    MODULE ZTABLE_CONTROL_INIT OUTPUT.
      IF G_ZTABLE_CONTROL_COPIED IS INITIAL.
    *&SPWIZARD: COPY DDIC-TABLE 'ZHERA'
    *&SPWIZARD: INTO INTERNAL TABLE 'g_ZTABLE_CONTROL_itab'
        SELECT * FROM ZHERA
           INTO CORRESPONDING FIELDS
           OF TABLE G_ZTABLE_CONTROL_ITAB.
        G_ZTABLE_CONTROL_COPIED = 'X'.
        REFRESH CONTROL 'ZTABLE_CONTROL' FROM SCREEN '1000'.
      ENDIF.
    ENDMODULE.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE_CONTROL'. DO NOT CHANGE THIS LI
    *&SPWIZARD: MOVE ITAB TO DYNPRO
    MODULE ZTABLE_CONTROL_MOVE OUTPUT.
      MOVE-CORRESPONDING G_ZTABLE_CONTROL_WA TO ZHERA.
    ENDMODULE.
    Screen 1000 codes:
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'ZTABLE_CONTROL'
      MODULE ZTABLE_CONTROL_INIT.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_COL_ATTR.
      LOOP AT   G_ZTABLE_CONTROL_ITAB
           INTO G_ZTABLE_CONTROL_WA
           WITH CONTROL ZTABLE_CONTROL
           CURSOR ZTABLE_CONTROL-CURRENT_LINE.
    *&SPWIZARD:   MODULE ZTABLE_CONTROL_CHANGE_FIELD_ATTR
        MODULE ZTABLE_CONTROL_MOVE.
      ENDLOOP.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'ZTABLE_CONTROL'
      LOOP AT G_ZTABLE_CONTROL_ITAB.
        CHAIN.
          FIELD ZHERA-NAME.
          FIELD ZHERA-AGE.
        ENDCHAIN.
      ENDLOOP.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_COL_ATTR.
    MODULE USER_COMMAND_1000.
    Please show me where to put my codes to edit(edit directly on table control fields) and update my table control(using the 'save' button)?

    Hi,
    You have to put the following code in the PBO of screen 1000.This code would make the fields editable to make changes in the table control fields directly.
    Here there are 3 transactions.For create and change transactions, the fields will be in editable mode and for display transaction,they will be non editable mode.
    DESCRIBE TABLE tb_line LINES lin.    " tb_line is the name of the internal table for the table control
      tcl_item-lines = lin.                             '' lin hold the number of lines of the internal table
    CASE sy-tcode.
        WHEN 'ZCREATE09' OR 'ZCHANGE09'.
    ***Checking if the table control is empty or not***
          IF lin NE 0.       
            LOOP AT SCREEN.
    ***To make the screen editable****
              screen-input = 1.
            ENDLOOP.
          ELSE.
            LOOP AT SCREEN.
              IF screen-name CS 'TB_LINE'.
    ****To make the screen non-editable if no values are present in the
    ***table control****
                screen-input = 0.
                MODIFY SCREEN.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Once the fields are edited and the save button is pressed,the entered values have to be populated into the Z tables.The code has to written in the PAI of the screen 1000.Here the values from the work area of the internal table are moved into the Z Table. The code will be.
    LOOP AT tb_line.
        ztm09_ekpo-ebeln = ztm09_ekko-ebeln.  "ztm09_ekko and ztm09_ekpo are the names of the Z Tables.
        ztm09_ekpo-ebelp = tb_line-ebelp.   
        ztm09_ekpo-matnr = tb_line-matnr.
        ztm09_ekpo-menge = tb_line-menge.
        ztm09_ekpo-meins = tb_line-meins.
        ztm09_ekpo-netpr = tb_line-netpr.
        ztm09_ekpo-waers = tb_line-waers.
    *****Update the entries into item table*****
        MODIFY ztm09_ekpo.
      ENDLOOP.
    Reward if helpfull
    Thanks,
    Kashyap

  • How to edit and or remake mass amounts of PDFs

    I work for a company whose instruction manuals for over 60 different products were originally created in Adobe Indesign CS2 and were then converted to PDFs. There are simple edits and changes that need to be made to these files on a weekly bases. No longer having the original file they were created in, we have had to suffice to converting the .pdf to a word doc and make changes this way, but with all the formating issues we need a better way to do this. What is the best program to have these pdfs converted to to be able to edit them? Are there any programs to do a conversion without having to completely recreate the document? We're also looking for a program that would be best in making simple quick edits when needed.

    This is a monstrous task. I assume you have already tried to move heaven and earth to get back the InDesign documents? Including all options for getting them back from backup?
    This is really a disaster. In losing these documents you have probably lost years of work which will have to be redone. Fixing it up in the PDFs just isn't viable.
    Converting to Word isn't much of a solution: InDesign supports much more complex layouts than Word. You need to decide either to go for a simpler layout that Word can do, or rebuilt them in InDesign. If there isn't an InDesign expert in house, it is likely to be more cost effective to pay a professional to rebuild them. There are of course options for streamlining, it isn't like the original layout, since the text can be copied and pasted. Maybe even graphics too.

  • How to edit and save a document in Pages

    How do I edit and save a document in Pages with MacBook Air

    1) Do you want to edit a .doc(x) and then save it as a .doc(x) again? You'll need to be a bit more specific
    2) Pages is an analogy to MS Word, so editing would be just as simple as typing. Go to 'Help' in the menu bar in Pages and then select 'Pages Help' to enter How-to's and Tutorials from Apple on using Pages.

  • Any Complete Tutorials On How To Edit And Export MIDI Files In GB?

    Hi. A friend sent me about 25 nice standard MIDI files that all open fine in QT Pro. She wants me to drag and drop them into GarageBand 2, attempt to edit them, change sounds and then export them out as the edited versions, key changes, added bars, change instrument sounds, etc,. Although I'm a trained musician who understands form, I really don't have a clue on how to use GB to edit and export standard MIDI files. Can this be done effectively in GB ver 2 or 3?
    Basically what she then wants to do is take the edited MIDI tracks, put them into itunes I guess on her iBook G4 or Ipod and do a solo act playing her keyboard live and usibg the MIDI tracks as background.
    Are there any links to step by step tutorials on how I can lerarn this procedure? Please offer any advice and links if you can and thanks for your help
    steveb

    Not really practical, I'm afraid. Capturing screenshots and cutting them up is possible with Photoshop, but PDF editing is very limited (fix a typo, move a picture).

  • How to edit and rebundle CFBundleExecutable bundle

    I already have one iPad aap and i just want to modify the language and few changes inside. I searched lot for the solution and i found that everything is bundled inside(i found one bundle named "micro SVR").
            <key>CFBundleExecutable</key>
            <string>micro SVR</string>
    Can any one please guide me how can edit this and rebundle it.

    That sounds as if it might be a question better asked in the Developers' Forum.

  • How to edit the html source code for my site

    I have just started a blog, and am VERY new to it. I am trying to edit the html source code on my site (ie, to insert google adsense search bars). I go to my blog site, get to page source and see the html but I am not able to edit it. Not sure what I am doing wrong. Thanks!

    You can use any editor you want mine is set up for notepad.exe
    :see http://dmcritchie.mvps.org/firefox/firefox.htm#notepad
    :to invoke use "Ctrl+U" or View > Page Source
    :this is for sites that you maintain on your local drives or servers, and copy over to a website.

Maybe you are looking for