Add a hyperlink to another document? CS4

Hi,
How would one add a hyperlink to a document that refers to another document?
The basic is:
myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkTextDestination);
How do I get "myHyperlinkTextDestination" if it exists in another, unopened InDesign document?
I suppose I could open the document, get the Hyperlink destination, and then close it again, but in the UI this is not necessary (you simply browse to the required file and can then choose from a list of hyperlink destinations in that file). So how is this scripted?
Thanks,
Ariel

Next, I tried this:
I opened the document and got it's HyperlinkTextDestination.
Then I used it when adding the hyperlink to the main document:
app.activeDocument.hyperlinks.add(mySource, myDestination) //myDestination is a hyperlink destination in another document.
And I get the following error message:
Cannot set this property to an object in another document.
So I'm clearly on a wild goose chase here.
But obviously this is possible since it is doable in the UI.
Any and all help appreciated!
Ariel

Similar Messages

  • Hyperlinks Opening Another Document

    I am trying to work with my hyperlinks in CS6. Everytime I try to do anything (update a hyperlink, add one, assign one to text), InDesign wants to open up an older file and reference it. For each time I click on anything in the hyperlink panel, It will go through all the existing hyperlinks, open the old document and briefly says "converting data." It takes about 5 minutes to run through for every click I made. I don't want this document referencing an older document at all. How can I get the hyperlinks to unassociate from the old document?
    Thanks.

    Thank you for your help.
    The hyperlinks are just web URLs. Why do they need to associate to another document at all? The file it's calling on is a CS5 document. The file I'm working on now was originally a CS5 Template, resaved as a CS6 template and used to create the new document that I am in. Is there any way to dump all the links so I can recreate them? In the meantime, when it finally frees up, I will try renaming the file, but that's not a permanent solution as I need to create new files regularly based off the same template.

  • Hyperlink with an action 'Go to a page in another document' in IE browser.

    When the PDF Document is opened in IE, Clicking on a Hyperlink with an action 'Go to a page in another document' is not navigating to the proper destination page.
    This happens when the destination document is already opened in IE once and cached.

    Hi Vinayaka,
    I am unable to replicate this at my end. I am using Acrobat 11.0.10 on Windows 7 and IE11
    Below are the steps I followed :
    Create a link and select the "Custom link" option, click "Next",  select the "Options" tab, select "Go to page view", click the "Add: button, open the file to the page you want to link to, click the "Set link" button.
    Regards,
    Rave

  • How can I add a link in a cell in pages to another document

    Hello I am new to this so be gentle with me
    Can anyone tell me if it is possible to add a link in a (table) cell in pages to another document on my Mac, so when I click on it, it will take me to the document
    Many Thanks
    Charles

    As far as I remember you couldn't do it in PAges 09 and Pages 5 has lost over 90 features that Pages 09 has so I would say no you can't. I can't test it right now. I had a quick look in the help (http://help.apple.com/pages/mac/5.0/?lang=en) and could find that you could link to another document from anywhere let alone a table cell.

  • How do you hyperlink one Pages document to another Pages document?

    How do you hyperlink one Pages document to another Pages document?

    Feature removed from Pages 5, along with over 90 others, by Apple.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Can I add a hyperlink to a stamp in acrobat pro ?

    I'm working with blueprints in pdf format and I have created stamps to place on the drawings. I want to add a hyperlink to these stamps to link to another file or document. I can do this by "overlaying" the hyperlink feature. But I really want to be able to save the stamp with the hyperlink intact so I can reuse without having to go through the additional steps. Is this possible?
    Thanks in advance, idtwalt

    Hi,
    An alternative to consider.
    Typically, a Stamp incorporates an image.
    Consider using a Button.
    A Button can show text, an image, or both.
    A Button can be given an Action.
    The choices for the Action are many.
    The Action could be to go to another PDF, go to a named destination in another PDF, some specific view at some designated part of another PDF, or it could be to execute an Acrobat JavaScript.
    This alternative approach permits your use of specific images and actions.
    A "template" PDF could hold the inventory of Buttons.
    Have it opened while working on another PDF file. Use copy-paste to select and insert the Button; then, position it.
    Yes, adds time to the work flow.
    However, it provides the ability to let a user "link" to a different PDF.
    It becomes a question of the relative value of providing the "link" for all future users.
    As George points out; a Stamp provides no "interactivity" so its use precludes providing "added value".
    Be well...

  • Hyperlink to another sheet

    I am trying to add a hyperlink in my numbers document that links to another sheet in the document. For example if there is a list of sheets named 1-10 and there is one sheet with all the sheets listed. How do I make it so that I could click on the number and it takes me to that sheet.

    What you describe is not supported in Numbers. What you can do is give your sheets descriptive names and scroll the tabs across the top of the document window with a mouse or trackpad and click on the one you want. The Sheet tabs can be organized by dragging.
    Jerry

  • How to insert hyperlinks in RTF document shown in JEditorPane?

    This is a compound question so bear with me on this one :)
    What I need is to insert an hyperlink in a JEditorPane; Store it as RTF code; Retrieve it; Show it and click on it to go the the destination.
    1) So, first question, is there some method to automatically add the hyperlink and will it be saved in RTF with RTFEditorKit? (I'm actually using AdvancedRTFEditorKit but an answer to either will be enough)
    2) I tried a method that adds what appears as a link but the document that is stored doesn't have the necessary RTF codes, only the formatting that makes it look like a link. I also checked the actual RTF codes I'd need to add and they seem easy to do. So, is there a way to add the actual underlying RTF codes to the document while it's in the JEditorPane?
    I know the question(s) isn't too specific, if you can shed some light over the whole thing and point me in the right direction, it'd be great!

    Just a follow up to my own question. I found a way to answer my question 2) and I'm now storing the rtf code for hyperlinks. Now, when I show the document in JEditorPane with RTFEditorKit, I get the name of the hyperlink with no formatting indicating that it's a hyperlink.
    Example. The link "http://www.google.com" with the name "Google", only shows "Google" in plain text.
    Is it because the components I'm using don't support hyperlinks from RTF files even though they're supported from HTML files?
    Is there any way you can see this working? Is it possible to include something inside the JEditorPane that the user can click, instead of the hyperlink?

  • How to setup a link that is of the type "Go to a page in another document"?

    Is there a direct way for a javascript to setup a link that is equivalent to the acrobat link type  you get when you add a link of the type “Go to a page in another document”?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\File2.pdf
    Page: 43
    Zoom level: Custom
    I have a java script in a setAction of a link that I think does the job:
    l.setAction("var otherDoc = app.openDoc('../Folder2/File2.pdf', this);otherDoc.pageNum = 1 - 1;");
    But is there a more direct way that actual sets up a “a link of the type Go to a page in another document” so if it's "advanced edited" its the same as the manual set links?
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    John
    Code example in more detail:
    /* Insert document level JavaScript to set disclosed = true.
       This will run when the document is opened.*/
    this.addScript("setDisclosed", "this.disclosed = true;");
    // Search through the document for the word “Acrobat” and create a link around that word.
    for (var p = 0; p < this.numPages; p++)
        var numWords = this.getPageNumWords(p);
        for (var i=0; i<numWords; i++)
            var ckWord = this.getPageNthWord(p, i, true);
            if ( ckWord == "Acrobat")
                var q = this.getPageNthWordQuads(p, i);
                // Convert quads in default user space to rotated
                // User space used by Links.
                m = (new Matrix2D).fromRotated(this,p);
                mInv = m.invert()
                r = mInv.transform(q)
                r=r.toString()
                r = r.split(",");
                l = addLink(p, [r[4], r[5], r[2], r[3]]);
                l.borderColor = color.blue
                l.borderWidth = 1
                //l.setAction("this.getURL('http://www.adobe.com/');");
               l.setAction("var otherDoc = app.openDoc('../Folder2/File2.pdf', this);otherDoc.pageNum = 3 - 1;");
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)

    If you use buttons instead, it is possible to script adding the actions that you want. It involves creating a properly constructed FDF, saving it, and then importing it into the document. Buttons can be made to appear just like links. For more information, see: http://www.planetpdf.com/developer/article.asp?ContentID=6338

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • Where I can get hyperlinks in pdf document structure (except "Annots" entry in page dictionary)?

    Hi,
    I have two pdf documents (doc1 and doc2) with hyperlinks e.g www.somlink.com, www.somlink2.com.
    According to PDF Specification I can get those hyperlinks via Link Annotations -> URI Action. Link Annotations can be found in pdf page's dictionary under "Annots" key.
    So the problem is that in one pdf document I get that "Annots" array but in another document there is no such entry in page dictionary. But Adobe Reader recognize those hyperlinks (recognize means you can click on a link and it will be opened in web browser) in both documents. So it seems that there is another place where you can specify hyperlinks, not only in "Annots" array -> URI Action.
    Any ideas where it can be?

    No, that's where embedded ("real") link objects are.
    However, Adobe Acrobat/Reader have an "auto-detect links" feature which will read the text of the page and if it finds text that looks like a URL, make it active to click on.

  • Attachments in document library form or list form sent to another Document library on click without code

    Hello,
    I am trying to allow my users to use my form, fill out the fields, add attachments and then on button click the form will be attached to the document library (already done) and the attachments the user added will be automatically sent to another document
    library so that I can send them to another location separately from the form.
    So the sequence of events is:
    User enters in data
    User attaches documents
    User submits data to document library
    Attachments are sent to a separately document library
    Unfortunately I can't use code to go about this so this leaves out the COM but is there an out of the box way to go about this?

    Hi, 
    Kindly check out below mentioned URL for more details on this issue.
    http://sharepoint.sureshc.com/2012/12/publish-different-infopath-forms-into.html
    http://social.msdn.microsoft.com/Forums/en-US/653449d2-7dd2-4a94-862e-32e393ef4cbc/put-an-attached-file-from-an-infopathform-into-a-document-library
    I hope this is helpful to you. If this works, Please mark it as Answered. Regards, Dharmendra Singh (MCPD-EA | MCTS) Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Outlook express, add a hyperlink to a location on a  windows network,how2?

    In Outlook you can add a hyperlink to a location on a network how can this be done on a mac in mail?
    for example I get set this
    G:\
    Looking at the plain text it looks like this
    G:\Home\MattJayC\LIBRARY\photography
    <file:///\\uranus\DJKID\Home\MattJayC\LIBRARY\photography>
    On the PC Outlook, you go to insert hyperlink then navigate the folder on the network, and click OK.
    What is the quickest way or work around for me.
    Matt

    OK thanks. That number is always a theoretical "best" figure and the actual bandwidth is usually about half of that number.
    So call it 50 Mbps that is really available to the Express.  The "extend" setup now takes away another half of that on average, so the Express must share 25-30 Mbps among 5-6 devices or so....maybe an average of 5-6 Mpbs per device.
    That's less than half of the bandwidth on the old 802.11b system.
    I imagine that there is just not enough bandwidth available for this to work well.
    The AirPort Extreme can assign IP addresses for up to 200 devices and the Express is operating in bridge mode, so connected devices are being assigned IP addresses by the AirPort Extreme.  The Express acts a "pass through" device in this type of setup.
    My opinion is that it is a bandwidth issue and the Express simply shuts down or locks up when it cannot handle the load that it is being asked to deliver.
    Sorry, but I really see no workaround here other than an Ethernet cable run from the AirPort Extreme to the location of the switch.  Using Gigabit switches, now you have probably 8-10 times as much bandwidth or more for each device....about 50-60 Mpbs per device.
    You may of course, get some other opinions from other users on this.

  • Hyperlink position in document

    How can the insertion point be relocated in a Word document to where it finds a hyperlink? E.g. I would like to add some text after each hyperlink in a document. So I traverse the hyperlinks using
    For each hLink in Selection.Hyperlinks
    But when I try to reference hLink.Range it says that property is not defined.
    Any ideas? 

    Not a  hard thing, refer this
    article. Download this DOC library then add reference to your project, then use the following code:
    static void Main(string[] args)
    Document doc = new Document();
    doc.LoadFromFile("Spire.docx");
    List hyperlinks = new List();
    foreach (Section section in doc.Sections)
    foreach (DocumentObject sec in section.Body.ChildObjects)
    if (sec.DocumentObjectType == DocumentObjectType.Paragraph)
    foreach (DocumentObject para in (sec as Paragraph).ChildObjects)
    if (para.DocumentObjectType == DocumentObjectType.Field)
    Field field = para as Field;
    if (field.Type == FieldType.FieldHyperlink)
    hyperlinks.Add(field);

Maybe you are looking for