How to create link for reference to the paragraphs or text anchor to another indesign file?

Hello

I'm new in indesign scripting.

I want to create the reference, which is the link to the paragraphs (or text anchor) another indesign file (new.indd).

My first problem is how to get all the paragraphs or anchor text of the file new.indd

I have a TextFrame whose content is Adobe Indesign.

I want to apply an Adobe Indesign link reference to the paragraphs with the Destination Documents: new.indd.

How it's done by script?

I have try to use this:

indesign #target

myDocument var = app.documents.add ();

var myTextFrame = myDocument.pages.item (0).textFrames.add ();

myTextFrame.geometricBounds is ['10', 15 ' p', '30', '35p'];.

myTextFrame.contents = "Adobe Indesign";

var text = myTextFrame.texts.firstItem ();

var hyperlinkURLDestination = myDocument.hyperlinkURLDestinations.add ("C/Documents and Settings/Administrator/Desktop/new.indd");

var DestinationDoc = hyperlinkURLDestination.parent ();

var xRefForm = myDocument.crossReferenceFormats.item ("Page number");

source var = myDocument.crossReferenceSources.add (text, xRefForm);

var myLink = myDocument.hyperlinks.add (source, hyperlinkURLDestination);

When I run this script it gives error "the destination is not valid. You can create Cross - reference to anchor text or destination of the paragraph.

How to get all the Paragrapgs or text the file new.indd anchor and create cross-references using the this.

Thank you.

You can create cross-references to anchor points and paragraphs. If you need create an anchor text in new.indd, then use as the target of the cross reference:

var anchor = app.documents.item ('new.indd').hyperlinkTextDestinations.item ('myAnchor');

source var = app.activeDocument.crossReferenceSources.add (text, xRefForm);

app.activeDocument.hyperlinks.add (source, anchor);

Peter

Tags: InDesign

Similar Questions

  • How to create links in a project of Muse to an anchor with a button created in Adobe Edge?

    Hi everyone, I created a button with edge animate, but when I import in my project Adobe Muse I can't link to anchors in Muse.

    What is the code?

    Thank you.

    Edge entertainment in an iFrame, which is technically a different page than you have placed the ILO tone on. To get the button to link to an anchor on the homepage, you will need to create a literal link (/ #anchor page.html) as an action on board. Make sure that the target attribute is set to _parent.

    who should do the trick but it won't be a smooth roll as Muse normally between anchor points.

    David

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • How to create a restore point in the protection of the system in safe mode?

    As topic the question, how to create a restore point in the protection of the system in safe mode?

    Hello

    read a tutorial on the below link for everything you need to know about the system restore

    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    and read this too

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • How to create folders for my received emails iCloud on an iPad?

    How to create folders for received emails on an iPad Air iCloud?

    In the mailbox display, press the "Edit" button, then "New mailbox", type a name, choose a location and then "Save".

  • How to create a shortcut to toggle the sound device?

    Anyone have any suggestions on how to create a shortcut to toggle the USB audio device in Device Manager?

    A shortcut is to enable this device, and the other shortcut is disable this device.

    Thanks for all the suggestions

    Hi oem7110,

    · Why you want to create a shortcut to enable or disable an audio device from Device Manager?

    You will be able to create the shortcut to Device Manager but no shortcut to enable/disable a device in Device Manager:

    a. right-click on the space empty where you want to create a shortcut

    b. click the shortcut

    c. in the type of space empty in devmgmt.msc

    d. click Next and follow the instructions in the wizard.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Smartphones blackBerry how to create a new folder in the video folder in the media

    Hi, I'm trying to figure out how to create a new folder in the video folder in the media. I can easily create new folders in the pictures folder, but not in the videos... Why? Thanks in advance for your help.

    well I'm sorry, I think that I have not read your emails correctly.

    The media application doesn't care about records at all. It will read the files, the tags when they are available, playlists, but it will not show the files. with the exception of the pictures.

  • How to create conn for bridge JDBC-ODBC for MS Access db in ADF APP?

    Mr President.

    How to create conn for bridge JDBC-ODBC for MS Access db in ADF APP?

    Concerning

    Hello everyone!

    I managed to get connect to access ms in adf application based in jdeveloper as below:

    First Control Panel tools admin and go to the data source (odbc) and create the dsn system as below picture

    Then, go to jdeveloper ide conn resources and then basic data and news database conn and then select jdbc-odbc briddge and then custom jdbc url gives as bellow pic

    See you soon

    Tanvir

  • Please how to create an e-commerce using the muse of adobe

    Please how to create an e-commerce using the muse of adobe

    ECWID is certainly the easiest to customize muse and it's very easy for customers to add/manage products. Another thing that many people love in Ecwid, it's that you can host several stores account. If you know css/javascript then you can do this on your own, but if you want a widget that does, make these widgets.

    If you are looking for some great Ecwid widgets, you can enter these ones that are free. And if you are wanting to customize even more (including the ability to host multiple account stores), you can get these even more impressive widgets for $14.99 with promo code: 1MUSESTORE #.

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • Add the link for help outside the answer, dashboard link at the top of the page?

    Hello world

    I would like to add the link for help outside the answer, dashboard link at the top of the page.

    http://hiphotos.Baidu.com/chenchendf/abpic/item/f44bb86eddc451dacb48b252b6fd5266d116326f.jpg

    Could you please let me know how. the bi version is 10g

    I found the ref: http://oraclebizint.wordpress.com/2008/01/31/oracle-bi-ee-101332-adding-custom-urls-to-the-dashboard/
    but it is not accessible.

    Thank you

    Hello

    Follow this-

    Stop the BI server

    Put the code below in the file commonuitemplate.xml under OracleBI\Web\msgdb\messages dashboardURL code (search for dashboardURL) above

    &(lt; td class = &(quot; Assets ProductCell &(quot; &(gt;

    <(a href="https://co-ds-ipm-a01:9704/analytics/res/OBIEE%20Guide.pdf" target="@{target}">Guide OBIEE &(lt; table &(gt;
    -

    Note: Code above please delete (wherever find you it, I put it as his poster not the code.)

    OBIEE Guide.pdf belongs under path (OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res)

    Restart the BI server

    Kind regards
    Srikanth

  • How can I get my reference of the AdobePS free CS2 series?

    How can I get my reference of the AdobePS free CS2 series?

    It is not free.  downloads are intended for authorized users of cs2.

  • How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer.  Think of it as a broad a page roll.

    When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.

    Some printers are capable of automatic double-sided printing.  With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages.  You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

Maybe you are looking for