How to find destinations hypertext links to other files
Hello Scriptmakers
I want to find hyperlinks in a document with destinations of another InDesin file.
I want to find this hyperlinks by a JavaScript,
I tried this
if (app.documents.length > 0) { main(); } function main() { var doc = app.activeDocument; var anchors = doc.hyperlinks; //for (var n = 0; n < anchors.length; n++) //{ anchors[0].showSource(); // This works fine. anchors[0].showDestination(); // This goes to the right page but in the wrong file. // The following works, but this is not what I need. alert(anchors[0].destination.name); alert(anchors[0].destination.destinationText.parentTextFrames[0].parentPage.name); alert(anchors[0].destination.constructor.name); //} }
Miss me something like this:
...destination.parentFile.name
Who can help?
Thank you to
InDesignerix
Hello
I'd look for destination.parent .
Be the destination could be a:
ParagraphDestination
HyperlinkURLDestination
HyperlinkTextDestination
HyperlinkPageDestination
HyperlinkExternalPageDestination
and the parent is always a document object.
Then he must unravel, whether or not it is your active document.
Search for document.fullName in the documentation of DOM and Hyperlink.destination DOM documentation.
To compare I would use File(Hyperlink.destination.parent.fullName) .fullName and do a comparison of strings , because document.fullName is a file object and I don't think you can compare a file object to another file object directly. Maybe I would also check if the File.isValid. Could well be, he hasn't.
Sorry, no time to write and test some don't code for this right now.
Some links to the documentation for DOM:
Adobe InDesign CS6 (8,0) object model JS: file
Adobe InDesign CS6 (8,0) object model JS: Document
Adobe InDesign CS6 (8,0) object model JS: hyperlink
Adobe InDesign CS6 (8,0) object model JS: ParagraphDestination
Uwe
Tags: InDesign
Similar Questions
-
How to find and get rid of unnessary files, records, data, etc.
How to find and get rid of unnessesary files, folders, data back up info etc.
Hello
Welcome to the Microsoft Community and thanks for posting the question.
According to the description, you must clean the unnecessary files.
Perform the steps from the link below and see if it helps.
http://www.Microsoft.com/athome/Setup/CleanSweep.aspx#fBid=H8M_xQi7xZQ
Hope this information helps.
Meet us if you encounter any other Windows problem, and we would be happy to help you.
Good day!
-
How can I see "a link to a file" given in adobe acrobat pro on the mouseover?
How can I see "a link to a file" given in adobe acrobat pro on the mouseover?
It's because it's actually a link that points to a local file (using the file:/// syntax). If you change the action associated with this link, you will see that it is a command "open a web link", not a command "open a file". The latter does not display this information, that I know.
-
Hello!
I'm really pleased with the DPS and have published workbooks on this society.
For our pre orders, we would use the publication and the link to our (Excel-based) pre order sheet links directly to specific pages within the workbook.
Thus, for example, I produced (A) listed in the spreadsheet and I want to offer our customers click on a hypertext link to go directly to our workbook pages digitally published with all the background beta.
Help, please!
Cheers!
-
How to remove the db link in other patterns as user sys?
Hi all.
I would like to table db links in other patterns as user sys.
I got the error when droping a link as the user sys.
-------------------------------------------------------------------------------------
Papa2:SQL > drop database link kht. "" TT ";
Drop database link kht. "" TT ".
*
ERROR on line 1:
ORA-02024: database link not found
-------------------------------------------------------------------------------------
Can someone help me?
Thanks in advance.
Best Rregards.869578 wrote:
Hi all.I would like to table db links in other patterns as user sys.
I got the error when droping a link as the user sys.
-------------------------------------------------------------------------------------
Papa2:SQL > drop database link kht. "" TT ";
Drop database link kht. "" TT ".
*
ERROR on line 1:
ORA-02024: database link not found
-------------------------------------------------------------------------------------Can someone help me?
Thanks in advance.
Best Rregards.There is no miracle solution
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/ds_admin004.htm#i1008271
"If the link is private, it must be in your scheme."
-
can not find the download link for the file Windows XP SP3
Hi all!
I just hugging old comp with Windows XP. He has XP SP2. I can't get Windows Update to work without SP3, but I can't find a download link for SP3. Where should I look?
Thank you
Jon
Too bad. Finally found the file. For others who need it, here is the link:
http://www.Microsoft.com/en-US/Download/details.aspx?ID=24
Hello
Thanks for sharing the information. If you have other Windows-related issues, feel free to post in our forum.
-
Is there a way to make firefox to open hypertext links to local files?
My company has a system of custom Office and of course its developed for IE, but none of the engineers like IE. We all use and wish to continue using Firefox. The sections in the ticket system a a place for links to local files on a shared drive. I created the link and point to a word document. This hyperlink works fine in IE but it does nothing when you click in Firefox.
Of course the dev team gives me the line of old age '.NET play well with Firefox... developed for IE... blah blah use IE.»
Probably link to a local file as excel or word or even a directory is a simple idea and needs to be done somehow with FireFox right? Can someone help with that and give a suggestion how to make this work?
For example:
N:\KNOWLEDGE BASE\Cisco price List\2012\pricelistaugust2012.xlsx
I'm trying to share with a hyperlink as:Looking for suggestions on how to make this work. Thank you very much!!
I think there are two aspects to this:
(1) URL format
If you access this file using the dialog box of the browser open the file (Ctrl + O), you can get the format of practical link for it. For example, the separators will be oblique instead of backslashes.
(2) local file security
Firefox limits access to pages on web servers, to pages on the local drive or UNC paths. This article has more information: links to local pages don't work - MozillaZine Knowledge Base. This extension provide a workaround: LocalLink (I have not tried myself).
-
How to find the location of a (game) file or a folder in windows 7
I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?Program Files or Program Files (x 86) is where almost everything is installed - including games.
-
In the latest version of cards, there is not apparent until you find directions between two places when or is your current position. In earlier versions, we enter in two places of departure and destination. In the new version, you enter your destination into a search window, but there is no place to enter a starting location. The application assumes that your current place of residence is always your place of departure. It is a remarkable oversight by designers. Am I missing something?
If you go to maps, you can search for a location. Once you find the place, press the route button. It is from your current location, but if you type on my position, next: you can change the location that you want the management of.
-
Does anyone know how to find past article links from the MSN home page?
I read an article on the MSN homepage on 26 June and I kept it open, but unfortunately my PC crashed with a blue screen of death and it took several weeks to restore. The link is out of my story, and I couldn't find the search engine 'Bing' Microsoft Help. I looked through Encarta because one link says it might be there, but still nothing. Article about work from home being and that maybe it was the next gold mine. I'm doing a research paper and need to find this article. Help please!
Hi Ca_Countryboy,
Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to the Live and would be better suited to the online community. Please visit the link below to find a community that will provide the support you want.
http://windowslivehelp.com/community/
JohnD
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
I want to find all objects in the DB which contain a perticular table in a specific schema.
If there is a question about SQL Developer functionality is simple - click on the table in the connection browser and find the "Dependencies" tab on the right
Philippe
-
How to reconnect the hypertext links in the menu without deleting and rebuilding?
I don't know if it's because I use FTP upload that I own my own domains, but the contact link no longer works in preview mode. Is there a way to quickly reconnect?
He also says in the recaptcha key page add code in... someone found it necessary?
Any help appreciated. I'm just starting it and it'll take some time to assemble.
Thanks in advance.
The menu on the home page seems to be half covered by another element of page at the top, then the bottom half is active, it is also superior to the top of the page the rest of the pages.
Audit PHP th form seems to be OK (http://indymcduff.com/scripts/form_check.php). Make sure that local settings in the form widget are correctly configured.
David
-
Hi all;
I'm new at VMAs, I put it in place and adds 5 Server esxi 4 and I can list the fines using vifp lists broadcast and works, very well but my problem is I want to interrogate the remote servers for this vMA host for example I need to check the contents of these files
cat /etc/resolv.conf
cat/etc/sysconfig/clock
tail/var/log/vmkernel
Discovered the following
esxcfg-firewall - q and esxcfg-vswif - l
Can someone please help me on how to run these commands or another way on how to get this information above hosts and ESXi 4. I checked the forum, but I don't see anything similair nature! now, either I'm stupid full because it's as simple as drinking water and so no one asked or I am just lucky to ask the right question, so be it, I appreciate your time and effort
Thanks in advance
Esxlinux
So its worth your time through the vMA documentation to understand how to manage your hosts and it's main use case. The operations that you are trying to accomplish cannot be done using vMA... at least in the way that you are hoping for.
See my vMA article and some of the getting started guides.
cat /etc/resolv.conf
You will want to use esxcfg-dns to list the configured DNS servers
cat/etc/sysconfig/clock
This file does not yet exist on ESXi, if you try to set the time on ESXi host, you should use NTP and it is also important to note that single ESXi uses UTC and no other options are available.
tail/var/log/vmkernel
If you need to display the host logs, consider using vi logger on vMA OR configure syslog on your host to send to the centralized syslog server
Regarding the last two commands, they do not apply to an ESXi host and therefore these commands are not available.
There are certainly differences between ESX and ESXi, understand the differences and orders to ask for certain pieces of information is very important. vMA can help with this, but you must understand the use case of vMA and what tools are at your disposal. The best way to start is to take a look at the documentation, to jump it and try to jump in, will just be confusing.
Good luck
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at: http://www.virtuallyghetto.com/
Introduction to the vMA (tips/tricks)
Getting started with vSphere SDK for Perl
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
How to find containing the record of the file with the projector?
Several times, because I am sometimes reckless, I save a file without noting the folder where it will. How can we find a folder containing a file using Spotlight? This is useful in circumstances more than just my idiosyncrasies.
Thank you
Jack
Spotlight is located under the name of files, not folders.
The basics of the Mac: Spotlight helps you find what you are looking for - Apple Support
-
How to find the path to the project file programmatically
I'm trying to find a way to get the path to the project file in the development environment.
I have attached a small project in LV 8.5.1 with a project file, a library file and the VI. I can get the path to the file library, but not to the project. This channel is still
. I know that the problem exists in LV 8.6.1f1 but I didn't test in LV 2009.
I am aware that in reality he could there have more nested levels of the library files, but it doesn't matter when this simple example does not work.
If this is related to the problem I initially created the library by using the file > new... and later, I created the project and added to the library.
Hi Waldemar,
Here is a small piece of code and a related link.
http://forums.NI.com/NI/board/message?board.ID=170&message.ID=220269&requireLogin=false
I hope this helps.
Kind regards
N. Ralf
Engineering applications
OR Germany
PS: Don't forget the congratulations. )))))
Maybe you are looking for
-
2008 mac book pro screen flashing folder with question mark at startup
2008 mac book pro screen flashing folder with question mark replaced boot hard drive and cable, continues to do the same. any ideas to fix?
-
ENVY 17 j - 153 cl Notebook: critical structure Corruption
I have a HP ENVY 17 TS j - 153 cl laptop which has a BSOD problem. Last week trying to change some settings under settings on the touch screen PC, he told me there is a mistake and make an update to fix the problem. Unfortunately, I did as described
-
Keybord tip to quickly insert a value in an array constant
Hello worldI just want to know if there is a keyboard trick that allows you to switch quickly from one element to the next time (or another) I type in an array of constant values, you know if there is? I mean, it's a key on the keyboard as a tab that
-
Hello I have the image with a custom palette: I want to create legend this value 1represented by red 2 blue and so on as in charts or tables. Any ideas?
-
I have a job with 20 steps. This error occurs for any stage of perticular. It produces randomally at any stage. "The return value is unknown. The process exit code was 128. The step failed. »