How to create a bookmark with action to open a

Hi all

I am a newbie in script for Adobe Acrobat (I'm running on Acrobat Professional 8) so please do not kill me for my question.

I need to run a batch sequence to create a bookmark that opens a specific file in batches of pdf files. The way I'm following is:

1. to create a batch sequence to run a JavaScript with the selected pdf files.

2. I've tried several ways to write the script:

2.1.

var plan = this.bookmarkRoot;

myRoot.createChild ("Index");

var Index = myRoot.children [0];

Index.setAction ("app.openDoc ('/ relative path to the file.PDF ');'");

2.2.

var plan = this.bookmarkRoot;

myRoot.createChild ('Index', ' app.openDoc ('/ relative path to the file.PDF '); ');

In both cases, I get errors in the JavaScript debugger. First of all, I see:

NotAllowedError: Security settings prevent access to this property or method.

undefined app.openDoc:1:Bookmark: mouse upwards.

Please what am I doing wrong and what is the best way to create such bookmark that opens a simple pdf file which stored in the same directory where all the files are located.

Kind regards

Dima

Hi try67,

Thanks for your advice. You saved me a lot of time. Was looking through the script but did not throw a look in the API for some reason reference any.

For those who are interested in the correct code is:

var plan = this.bookmarkRoot;

myRoot.createChild ("Index");

var Index = myRoot.children [0];

Index.setAction ("app.openDoc ('the index file name', this);")

This works only if your file is placed in the same directory.

Tags: Acrobat

Similar Questions

  • I can't understand how to create live bookmarks in Firefox 7.0.1

    I can't understand, even with Google, the search, how to create live bookmarks in Firefox 7.0.1. Whenever I select an RSS feed or the attempt to create one, I am taken to another Web page asking if I want to open it with Google Reader or put it on my Google Homepage. I prefer to keep it in a folder in my bookmarks in Firefox toolbar. I have other live bookmarks and attempted to 'copy', then update the source information and food Web site, but they return to foods that I copied them each time they are reloaded. Help, please.

    Options-> Applications-> Web Feed-> add live bookmarks in Firefox.

  • How to create an arbitrary rotate action?

    I have been looking for a solution to this for a good part of the evening, but could not find how to create a catch-all action arbitrarily to rotate a picture, based on whatever the degree of change is after using the tool sets. I want to be able to use it several times on different images with different degrees of rotation. Create a record of a sample of stock rotation records unfortunately the amount of degrees required for that specific image. When you run the action on a different picture with an amount different from the rotation, rotation of degree even is applied.

    Clues? Thank you.

    What version of photoshop?

    If it is a version prior to version cs5, you can save arbitrary rotation and then activate toogle dialogue on action.

    You will need to use the tool sets for each image, but the degrees of rotation are expected to change in the arbitrary dialog every time.

    MTSTUNER

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • How to create Hlp files with labwindows 9.0

    Hello

    I used to create the dll with Labwindows 8.5 and use them with TestStand... The advantage is that with the help file, I can add information to the Fp file and loading the DLL with TestStand, the "?" button to open the help file...

    But the problem is that I can't find help with Labwindows 9.0 generation...

    Does anyone know how to create file hlp with Labwindows 9.0?

    The procedure with Labwindows 8.5 has been:

    Modification of the PS file, then generate the Option-> windows help

    Thank you very much

    Ronan

  • How to create an app with space name?

    Hi all

    How to create an application with the space, for example "Hello Word" name When I run my Simulator, I got ' Hello$ 20World "instead. I use the plugin for eclipse for development. I can see the Application descriptor for my application, and it shows the thin space. I tried to change the Blackberry project properties tab generate file output name, but it doesn't help in any way. Please advise...

    Goto Blackberry project properties

    Click the general tab

    Write in title = "Hello World".

    and you can see your title of the modified project

    I hope that you ask for it only!

  • How to create a rule of action to subtract from the Ips event log manager console express?

    How to create a rule of action to subtract from the Ips event log manager express console?, some unknown has a guide?

    Thank you.

    Sent by Cisco Support technique iPad App

    Hello

    http://www.Cisco.com/en/us/products/sw/secursw/ps2113/products_tech_note09186a0080bc7910.shtml

    HTH

    Luis Silva

    "If you need IDP (planning, design, implementation) assistance do not hesitate to contact us.

    http://www.Cisco.com/Web/partners/tools/pdihd.html

  • How to create a form with a submit in CC button animate using Actionscript 3

    How to create a form with a submit in CC button animate using Actionscript 3. The file will first be a SWF but will also have the flexibility to export as HTML5

    I've searched high and low for an example of code for this entry.

    Can someone help me please?

    Thank you

    You can use the same graphic assets of basis for two projects, but the coding will be different for everyone.  You must work on the project of a code at a time.

  • How to create dummy data with 1 TB

    Hi Expert,

    May I know how to create dummy data with 1 TB to test performance. ?

    Respect of

    Liang

    what columns you want to include? Basically, you can generate as many lines as you like to connect by queries - something like:

    create the table big_t

    as

    with

    generator1 like)

    Select rownum id

    of the double

    connect by level<=>

    )

    ,

    generator2 as)

    Select lpad ('* ', 1000,' *') col1

    of the double

    connect by level<=>

    )

    Select g1.id

    g2.col1

    of generator1 g1

    generator2 g2

    ;

    Of course, it is not 1 TB, but you can change the number of levels. Who said: I think you need to find a sensitive table first structure.

  • How to create a bookmark in a PDF in Adobe Acrobat Reader DC?

    How to create a bookmark in a PDF in Adobe Acrobat Reader DC

    Hey stas9056600,

    You will need to use Adobe Acrobat software to add bookmarks.

    This can be done using Adobe Reader.

    Kind regards

    Ana Maria

  • How to create a button with rollover that appears in a different place than the button when you move?

    Hello

    How to create a button with rollover that appears in a different place than the button when you move by using only the Muse (reversal may be a different shape and color of the button). I managed to do it using Photoshop and the separate layers and import it, but it is not a good solution. All suggestions will be welcome.

    Thank you

    You can try to use the widget of the Composition of the ToolTip. In this way, the trigger area is isolated and a "State of reversal" can be placed anywhere on the screen (compared to the trigger).

    • Remove the two triggers additional default
    • Set to display the targets on working capital
    • Select hide all initially.
  • How to create a DVD with Media Encoder? Thank you!

    How to create a DVD with Media Encoder? Thank you!

    Export to mpeg2-DVD and use a design program like still to create DVD compatible files to burn to DVD.

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?

    For example, a border: a black line with a width of 1, then a transparent line with a width of 5. Inside, it's the content pane.

    In JavaSE, there seems to be for the JFrame paintComponent() method to realize the effect.

    I can't see what you're trying to do now: it's a little trickier. You need stage.initStyle (StageStyle.TRANSPARENT), and I think you have to imitate the transparent part of the border by the presence of a second vessel inside the root container, properly positioned.

    Something like:

    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    
    public class CustomBorderExample extends Application {
    
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
    
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
    
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final Button closeButton = new Button("Close");
        mainContainer.getChildren().add(closeButton);
        closeButton.setOnAction(new EventHandler() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
          }
        });
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
      }
    }
    
  • How to create RAID 5 with 6 disks?

    I'm new to vmware. My machine is currently running ESXi 4.1 but the RAID set up gives me no more disk space I was advice to remake the structure of the disc physically to have all 6 disks in RAID 5 and then reinstall ESXi. I'm doing, but I need a direction how to create RAID 5 with 6 disks. Can someone please help with this?

    Thank you

    SD

    Assuming you are using the integrated Smart Array 6i controller it should without a problem. If you can get into the BIOS of conreollers, you can also boot from Smartstart CD and use the ACU (Array Configuration Utility). The ACU has the advantage that you can split the RAID in several logical drives. I usually create a small logical volume (~ 10GB) for the installation of the hypervisor (ESXi) and another large logical volume to the VMFS data store.

    André

    PS: When you respond by e-mail, please do not understand the original message.

  • How to create a table with two unique columns

    How to create a table with two unique columns. I use the following syntax below and I get the error message such unique or primary key already exists.

    create the table COPQ_WORKCELL_GOAL
    (
    Type_id varchar2 (4) NOT NULL UNIQUE,
    Tyle_Location varchar2 (30) NOT NULL UNIQUE,
    Type_Description varchar2 (20).
    KEY elementary SCHOOL (Type_id)
    );

    Use 1 or the other column type_id;

    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4),
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20),
      PRIMARY KEY (Type_id)
    );
    
    Table created
    drop table COPQ_WORKCELL_GOAL;
    
    Table dropped
    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4) primary key,
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20)
    );
    
    Table created
    

Maybe you are looking for

  • When you try to update Adobe Flash Player, the message says no found ActionList.

    When I try to watch videos on the CNN homepage, it tells me that the video is optimized for flash player 10, and when I click on the appropriate buttons to download, it tells me "not found ActionList.

  • WIFI does not work on my Satellite L40-139

    Hello I just downloaded the latest driver for Atheros Ar5007EG Toshiba Download Center, but it still does not work...Vista seems to know that he is there s a new device, but he doesn t recognize (or as Ethernet controller)...I don't know what I have

  • Satellite wan't C50 - A wake the system from standby mode

    Hello I bought a C50 - A Satellite about 8 months ago. On the first day, I had this problem. What happens is that when the laptop is turned on for a while, I suppose it goes to sleep or something, not that one light is on hard. The only way so that h

  • Software bug Motorola/Lenovo Forum

    Articles tagged with some types of text do not appear in the forum. If you want examples, answer and I attempt to display the text of the problem as an attachment. Attachment is the cut and pasted the output of a command "fastboot getvar all. When it

  • Has received an error message when you try to install Windows XP Service Pack 1.

    Service Pack 1 Setup error The server did not respond. Go to Windows XP Service Pack web site and select "problems downloading the service pack... This will give you instructions on how to download a verson of the CIP tht service requires an Internet