Add Javascript action to your Favorites

I would like to add an action to a bookmark to open a link in a new window.   I tried the following without success

Set AVDoc = CreateObject ("AcroExch.AVDoc")

If AVDoc.Open(myFolder & myPDFFile, "") then

AVDoc.BringToFront

"The value of the PDDoc object.

Set PDDoc = AVDoc.GetPDDoc

'Set the JS - Script Java object object.

Define the JSO = PDDoc.GetJSObject

Define the BMR = JSO. BookMarkROot

vBookmark = BMR. Children

End If

For k = UBound (vBookmark) in step 0-1
If vBookmark (k). Name then as "Hyp."
"What is the URL for the word document.
"This allows to determine the URL for the bookmark.

myAddress = GetHyperlinkAddress (myDoc, vBookmark (k). Name, LinkWithinDoc)

' Selects the bookmark
vBookmark (k). Run

"I would like to add the javascript code for this bookmark.

Monaction = "app.launchurl ('" & myAddress & "', True).

' Does not have this part

Monaction .setAction vBookmark (k)

End If

Next

I'd appreciate any help you can provide.

Thank you
Barb Reinhardt

In addition to what TSN has just said, you can set the action to a link, you do not what is the current action. If you define a new action, you are wiping out all other actions. And the action must be a JavaScript action. You want to set a JavaScript action, so that the room is OK, but you don't find this as the current action (or in the case of a URL) or target.

You can do it with a plug-in Acrobat, but it's a different kind of programming (requires C or C++ and a much deeper understanding of the Acrobat SDK kit and the PDF file format).

Tags: Acrobat

Similar Questions

  • How can I to bookmark a page or add a page to your Favorites

    How can I to bookmark a page or add a page to your Favorites

    How to add a page

    Menu button - press the star

  • Add an item to your Favorites

    Hi all
    I'm developing my first app in Adobe AEM.
    I read that it was possible to add an article to your favorites using the application, and that it could be achieved by allowing the Favorites while developing the app, but it was and the article on Adobe DPS.
    Now, in the Panel of the MEA I can not find this feature. It should be in the tab "APP."
    Could someone help, please?
    Thanks, Katia

    Favoriting an article is not the mobile product of the MEA. This is a feature that we want to implement, but I don't have a good timeline when it would be available.

  • How do to add frequently consulted sites to your Favorites?

    How do you add frequently visited sites to Favorites (except keep history)?

    Click on the second icon in the toolbar or press Ctrl + D.
     
    --
    ..
    --
    "PARIXinternational" wrote in message
    News: a2f5de9d-21 c 3-49ab-be79-7c62b61796c6...
    > How do you add frequently visited sites to (other than maintaining Favorites
    (> History)?
     
     
  • How to add bookmarks to the IE Favorites list?

    How to add bookmarks to the IE Favorites list? I can find them on recently added bookmarks, but they are not listed when I click on IE Favorites.

    Firefox bookmarks are stored in your Firefox profile folder, they are not synchronized with the IE Favorites.

  • Captivate 9 - How to add multiple actions to a button

    HI all, on Captivate 9 I have created a status display slide with four buttons, so when the user clicks on each button, they will see different content.

    I want to force the navigation to make sure that the user clicks on THE 4 buttons (in order that), before being able to see the button "NEXT" will appear on the screen that will allow them to move to the next slide.

    I think I need to create variables and stocks advanced on each button to create this logic, but how do I add additional actions on the same button? Under 'The ACTION', I see that all the buttons have an action to open the contents of the status display when you click on:

    action-captivate.jpg

    Is it possible to add another action to the same button?  Please share instructions to help me create the logic to do this? Thank you very much.

    You need user variables and conditional action with two decision for each of your buttons. I posted this workflow many times, but it's so hard to find the wire. Another try:

    1. Create 4 variables v_one, v_two... v_four with a default value of 0. they will be changed to 1 when the user clicks on the associated button.
    2. Create a conditional advanced action for each button, with two decisions:
      1. First decision 'Always' is a standard simulated action
        IF 1 is equal to 1
        Assign the v_one with 1
        Change the State of...             the action that you had one this time
      2. Second decision "CheckVars".
        IF v_one is equal to 1 AND
        v_two is equal to 1...
        ....
        is equal to 1
        See the Bt_Next
        Select Bt_Next

    Create a similar action to each button, only the first decision will have to be modified (the variable and the state change).

    The Bt_Next button should be hidden in the output to start with. Don't forget to define points of suspension of the 4 buttons at this very moment. For the next button, you can have a break at the same time or later.

  • Favorite Confirmation your Favorites list has been successfully updated. How to avoid this

    Favorite Confirmation your Favorites list has been successfully updated.   This message was showing every time, after I decided to a product,

    But my requirement is:

    After logging in, a favorite of box user a product by clicking on an icon of the heart, under the thumbnail image, only the color of the heart icon should be changed, if a favorite is applied or favorite is removed it will change to another color, (tag icon he color change already there is BC) my only concern is how to avoid these (favorite Favorites Confirmation your list has been updated with success.) currently its display in a blank page with the confirmation text

    If a user wishes to favorite means more than 15 products, whenever it shows the message... Please someone help me... If I almost finish my project is over... Pleaseeeeeeeeeeeeeeeeee

    Do you it with JavaScript, crush the BC function that is called to save the favorite to eliminate the popup alert and full of color. I don't have code available to post. I hope this helps.

  • How can I add an action to an action?

    I'm stumped trying to recreate something that I already have an action: I want to use another action as a "subroutine" since it does what I want, but I can't understand how I managed to add an action as a sub-action in action. Boy, it sounds ridiculous.

    Here's what I have in my existing action but I don't remember how I did it.

    This is the 3rd line, 'Play action... '. »

    Add action.png

    I tried selecting the action during recording, the Insert menu item, but I can't seem to make it work.

    Thank you

    Darryl

    When you get to the point in your action recording

    and the desire to play another action (an allusion to another action),

    Just click on the action on the other and play this action, then

    your reference will be inserted.

    MTSTUNER

  • Trying to get on my email, the following statement comes from the IPU: "we're sorry, but you must enable cookies and Javascript to use your username with this site. I click on "here", but nothing happens. How to enable the amd Javascript cookies?

    Try to get t my email, this happens: we're sorry, but you must enable cookies and Javascript to use your username with this site.
    How can I do this?

    George Szántó

    [email protected]

    see similar question answered https://support.mozilla.com/questions/836913

    To be notified of updates to a question, if this is your problem or not just click on the "Get email notifications" and follow made the choice. Only the original poster can mark it as resolved, so there should be a slight difference in choice as an original poster and where you lock on another issue. Notifications only apply to individuals the question where is entered.

  • Impossible to your Favorites

    I looked at the KB on this issue, but none of them seem to address my problem. I have a Macbook Pro OS undated end model. No addons. I'm UNABLE to bookmark in anyway. It's not just save, I can't with any method that I am sensitive to your Favorites. If I click on the star icon it does not. If I use the shortcut keys, the bookmarks menu item highlights while I pressed the key combination. If I use the drop down menu, nothing happens. Any help would be appreciated.

    See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Windows Update, error 0x8ddd0001 - to continue, you must first add this site to your trusted sites in Internet Explorer

    original title: Windows Update

    When I try to update my Windows XP computer, it obviously going to Internet Explorer. Well, once this is where this message appears on the website, ""to continue, you must first add this site to your trusted sites in Internet Explorer. " " I did as he said and the message still appears. What should I do about it? Oh and there is an error code. I don't know if it'll help, but you can go: 0x8DDD0001

    Well, you user and now so can you connect again & tell us what your proven difficulty? It can help other people here who have a similar problem - that's why they are called community forums.

  • (SOLVED) Windows could not finish repairing the problem because it is impossible to perform the following action: renewing your IP address

    Computer Dell laptop Windows XP SP3 - processor Intel Celeron M 1.40 GHz, 512 MB Ram, ATI MOBILITY RADEON 9000

    The local connection is working fine but my wireless connection does not receive through my laptop. The wireless works since it goes through my PS3 and my sister's laptop perfectly.

    I used the repair, but it will say:
    Windows could not finish repairing the problem because it is impossible to perform the following action: renewing your IP address

    I used in the cmd command:
    ipconfig/renew
    Needless to say a message:
    No operations can be performed on the wireless network connection, although it has its media disconnected.

    Help, please

    Received my solution of another comforter

    Told to go to my router linksy page http://192.168.1.1 setup and change the wireless security mode. It is in mixed mode to WPA2/WPA and I changed it to WPA2 Personal and it worked!
    Thanks for trying to help JW! : D
  • How can you delete Windows Live, Microsoft Website, your favorite MSN Web sites in Windows Vista Home Premium?

    How can you delete Windows Live, Microsoft Website, your favorite MSN Web sites in Windows Vista Home Premium?

    If the MSN/Bing optimized IE8 or IE9 version is installed, you can do it.

  • How do you put your Favorites in alphabetical order?

    The @ top of browser bookmarks bar... OK, you click it and see all your Favorites... Now; How can I put them in alphabetical order?

    If you talk about the star in the upper right corner, then after clicking on it, right click anywhere in the list and

    Select sort by name.

  • BlackBerry Smartphones Newbie: What is your favorite feature?

    Care to share your favorite feature? I am tryint to get to know my new BlackBerry that is so different from the Treo, but I like that email is delivered without delay.  In the hope of discovering why the Verizon Rep.  think that the BlackBerry is a superior product!

    Thank you

    Gotcha... Thank you!

Maybe you are looking for

  • Pavilion dv6 7011tx: bluetooth device does not

    my bluetooth device does not work, so I uninstalled the bluetooth software and install the new driver. now while I'm installing the new driver, it indicates "no bluetooth device was detected. Please make sure that your bluetooth device is connected c

  • VI considered non-executable runtime LV, correct in the development of LV

    My current problem is the following: On the same PC, with TestStand 4.0 and development of LabVIEW 8.5, I try to run a sequence with two adapters: 8.5 LV and LV DURATION 8.5 development. My sequence no call screw complete this call subVIs in a hierar

  • Please give me the html code ready for use

    Dear Sir Please give me the html code ready for use

  • How to install IIS 6 on Vista Ultimate 64-bit?

    When I try to load on Vista Ultimate 64 bit IIS6 screens of the machine the dialogue 'Please wait' box... indefinitely. The processor seems to be grinding, but after 4 hours, he had done ot. What are the steps of loading IIS6 on Vista Ultimate 64-bit

  • Restoration of deleted movies and files downloaded

    I tried to delete a file in one of my folders and accidentally clicked the remove file permanently and didn't know that before all my data have been deleted.  I searched my hard drive and found the names of files, but they are the only files of 1 k s