JS CS3 : Hyperlinks.add(y,z) always recreates the same object :-(

Hi,
I am trying to create hyperlinks from an index. The command works fine except that doc.hyperlinks.add(source,destination) always rewrites the former one. They don't stack and I need them to do this way.
Could you help ?
I write this function :
function hyperlien(src,dest)
    app.findTextPreferences.findWhat=src.contents;
    //var txtsrc = doc.hyperlinkTextSources.add(src);
    var txtsrc = doc.hyperlinkTextSources.add(doc.pageItems.item("index").findText()[0]);
    var pgdest = doc.hyperlinkPageDestinations.add();
    pgdest.destinationPage = dest;
    with(doc.hyperlinks.add (txtsrc,pgdest))
        name = src.contents;
        visible = false;
    app.select(NothingEnum.nothing, undefined);
and calls it this way :
hyperlien(app.selection[0],myPage);
according app.selection[0] is text, myPage is defined on top as:
var sel=app.selection[0];
var myFrame = app.selection[0].parentTextFrames[0];
var myPage = myFrame.parent;
the text is on a page but I try to apply the hyperlinks to the same text in the index. Hence I set my source as doc.pageItems.item("index").findText()[0]
Hope you can help.
Thanks Loic

Hi Harbs,
Once again, thanks for your care on my topic.
Sorry for "stacked", my frenglish stroke back ;-)
I mean that the standard behaviour of adding hyperlinks is like that in the hyperlinks palette :
h1
h2
h3
but in my script, the last hyperlink in the palette isalways replaced by the new one. I don't have a case like I describer but this in the palette :
h1 is replaced by h2 which is replaced by h3, etc.
So at the end I have only one Hyperlinks when I want 3 of them. As I said, I launched the script 3 times and expected to get 3 different hyperlinks but in fact, I get always the same replaced hyperlink.
I place screenshots asap.
Thanks in advance.
Loic
here are the screenshots
h1.jpg is a capture of the screen after I launched the script at first. I get an hyperlink, that's ok.
h1p.jpg are the h1 properties.
h2.jpg is the capture of the palette after I launched the script the second time. The second hyperlinks replaced the first one.
h2p.jpg are the h2 properties.
H1.jpg
h1p.jpg
h2.jpg
h2p.jpg
Hope it helps understanding the problem.
Loic

Similar Messages

  • I keep getting notified that there is an update to Firefox Weather 2.0.1 but when I try to install it I always get the same "download error" -228. How do I get around this?

    I don't think additional details will help since I don't have any. I have tried repeatedly to install this update and always get the same result which I have already detailed. This is technically an Add-On but I was given no place to ask questions about it.

    See if this helps you. <br />
    https://support.mozilla.com/en-US/kb/unable+to+install+add-ons#Download_Error_228

  • When clicking websites my Avast 5.0 antivirus notifies me that a malicious URL is trying to access my system or that a Trojan has been prevented from access. The attempted Malware/Trojan is always from the same address:[Ticon.in/nte/kuz/.exe/xhdoe515bvo3

    suspicious Maleware / Trojan.
    == This happened ==
    Every time Firefox opened
    == I tried to access a website

    Hello "Morbus",
    Thank you for your quick and informative reply. First I would like to provide more information on this attempted Malware/Trojan. I have copied the full addresses for you and/or anyone who may have interest. It follows below.
    28.06.2010 07:38:00 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\program files\Mozilla Firefox\Firefox.exe ( 5436 ) ]
    28.06.2010 08:14:44 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 4476 ) ]
    28.06.2010 13:32:53 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 1988 ) ]
    28.06.2010 17:51:53 Network Shield: blocked access to malicious site 楴祣湯椮⽮瑮⽥畫⹺硥e [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 5400 ) ]
    29.06.2010 13:31:03 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 2444 ) ]
    29.06.2010 23:15:14 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 480 ) ]
    30.06.2010 09:36:22 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe/wHd0e51a5bV03006f36002Ra38dbe4f108T9ccfa9f8Q000002fe901801F0035010aJ14000601L656e2d55530000000000 [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 5164 ) ]
    30.06.2010 22:31:52 Network Shield: blocked access to malicious site ticyon.in/nte/kuz.exe/wHd0e51a5bV03006f36002Ra38dbe4f108T9ccfa9f8Q000002fe901801F0035010aJ14000601L656e2d55530000000000 [ C:\Program Files\Mozilla Firefox\Firefox.exe ( 3600 ) ]
    I had failed to mention in my previous comments that each time the attempted attacks took place, a blank Adobe PDF page appeared. As you suggested, I disabled the Adobe add-on and have had no further attacks. I am extremely dilligent in keeping my SuperAntiSpyware Pro, AvastAntiVirus 5.0, ThreatFire, Vista Firewall Control, Malewarebytes and Windows Defender up to date. However, after any attack I always run these in safe mode just as a precaution. I had suspected the Adobe drop-in may have been the culprit because of the page that appeared and your suggested fix has in fact fixed it!
    Thank you again for your unselfish time in coming to my rescue. "Deaf Dave"
    From: [email protected]
    Date: 7/1/2010 12:53:40 PM
    To: [email protected]
    Subject: Reply notification: when clicking websites my Avast 5.0 antivirus notifies me that a malicious URL is trying to access my system or that a Trojan has been prevented from access. The attempted Malware/Trojan is always from the same address:[ticon.in/nte/kuz/.exe/xhdoe515bvo38d
    "Morbus" has posted a reply to a thread you're watching.
    You can view the thread and reply at the following URL:
    https://support.mozilla.com/en-US/forum/1/714170#threadId714337
    Message:
    Hello Deaf Dave.
    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    Also, it's possible that your system is infected with malware. To scan for malware, install, update and run these programs ''in this order''. They are all free for personal use, but some have limited functionality in their "free mode", but the features you'll miss are not really needed to find and remove the problem you have. Remember that ''not all programs detect the same malware''!
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/ superantispyware.com]
    AdAware - [http://www.lavasoftusa.com/software/adaware/ lavasoftusa.com/software/adaware]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html safer-networking.org/en/index.html]
    Windows Defender - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx microsoft.com/windows/products/winfamily/defender/default.mspx]
    Dr. Web Cureit - [http://www.freedrweb.com/cureit/ freedrweb.com/cureit]
    If these don't find it or can't clear it, please tell me and I'll provide you with further assistance.
    Did this response solve your problem with Firefox?
    Yes, this solved my problem (click here):
    https://support.mozilla.com/tiki-feedback.php?id=714170&hash=6d5f163b3092b464aa15d04188b5cca2&type=forum_topic&feedback=Firefox%20Support%20Forum&commentId=714337
    No, this did not solve my problem (click here):
    https://support.mozilla.com/en-US/forum/1/714170?hash=6d5f163b3092b464aa15d04188b5cca2#form
    If you no longer wish to receive notifications for this thread,
    visit the following URL to cancel your subscription:
    https://support.mozilla.com/tiki-cancel_watch.php?section=forum&hash=6d5f163b3092b464aa15d04188b5cca2

  • Compressor 1.2.1 I update but always appears the same updating

    Every time I open Software Updating it appears the same thing: Compressor 1.2.1
    See this, please.
    http://homepage.mac.com/guillermo_alvarez/Sites/varios/Imagen%201.jpg
    Can anybody tell me what is this and why though I update, always appears the same updating?
    Regards.

    Add me to the list.
    (I realize that my comment isn't exactly productive, but I'm getting fed up with having all these problems that never seem to get Apple's attention.)

  • How do I add a second URL to the same contact

    How do I add a second URL to the same contact.  There are 3 URL for this one company  depending on which division I need to look at.  I could 3 contacts but having the 3 URLs on one contact is easier for me

    Tap the "Edit" button in the upper right corner of the contact's screen. Tap the green "+" (which says add URL) next to it) below whatever URL you currently have entered.

  • Hi. My husband and I have always shared the same iTunes account.  Since installing iCloud, all our contacts and calenders have merged on our iPhone 4, which we do not want.  How do I rectify this? Does my husband need to set up his own apple ID?

    Hi. My husband and I have always shared the same iTunes account.  Since installing iCloud, all our contacts and calenders have merged on our iPhone 4, which we do not want.  How do I rectify this? Does my husband need to set up his own apple ID?  If so, where do I need to change his email address info, so that his calender and contacts remain his?  Thank you

    You can continue to use the current AppleID for iTunes, but your husband can create a new AppleID to use to create a new iCloud account that will be his own and not overlap with yours.  If you do not have another email address to use for an AppleID, just get a free Gmail account and use that.
    You can have as many AppleIDs as you want (or at least, as many as you have email addresses for).  You can use a separate AppleID for the store, another for iCloud, and even another for iMessage if you wish.
    You will want to keep the current one as the shared one for the store as all your previous purchases are permanently tied to it, and thus you need that AppleID to update or redownload your current purchased content.

  • How do i send hyperlink to a text box within the same page

    how do i send hyperlink to a text box within the same page on iweb

    It's called an anchor. It's often discussed in this forum.
    2 days ago : anchor
    Here's a search of the past year : anchors

  • How do I set a fixed page size in Muse so that the window always stays the same size

    how do I set a fixed page size in Muse so that the window always stays the same size

    Hi Aish & thanks for responding;
    I would like the window size to stay the same for the entire site and not be
    able to scale to drag & scale it. ie 950 pixels x 500 pixels.
    Thanks,
    JB
    On 12/4/14 3:30 PM, "Aishvarya Raj Rastogi" <[email protected]>

  • Make a file extension to open always with the same app

    Hello, do you know how can I make a file extension to open always with the same app. So far I have been doing it by double click > open with > other > and then mark open always with this app, BUT
    I do not want to do this very time with all the same file extension I have in my hard disk, is there any way, like in windows, to select and preset a determined app to always open all files with the same extensión in my hard disk??
    Actually what I´m experiencing and would like to change is to open always .pdf extensión with Acrobat and not with Preview
    Thanks very much in advance for your help!!

    OK!!!!
    Got it!!!
    Thanks anyway!!

  • Is there any way I can program "Capture" to save pnp.picts always under the same name, without a date ?

    Is there any way I can program "Capture" to save pnp.picts on the desk, but always under the same name, without a date ?
    It may be sound weird, but I use it in a very special way, and I would like, like photoshop, that capture just replace
    the previous pict by the new one..without any warning.
    Pierre

    There is no way to go back from an XFA form to an Acroform even with Acrobat Pro, still less with Acrobat. You either need to remake the form, or change your plans to use a third party viewer - Adobe have an excellent range of programs they would like you to use!

  • Firefox always uses the same session id

    Hi,
    our company changes standard browser from IE6 to Firefox 3.5.10 .
    Now we have  great problems with with our ColdFusion application when running it inside Firefox ,because Firefox doesn't create new session id
    when working  in two tabs or two windows. It always uses the same cfid and cftoken.
    So it is not possible to work with two different sessions.
    IE6 always creates new session id when opening new window.
    Has somebody solved this problem? It is very urgent!!!
    regards
    Claudia

    I suspect that this is browser issue, not a server-side (CF) issue.  In order to support different cookies in different tabs you will probably need to try to find a Firefox extension to change how the browser uses cookies.
    This extension is advertised as doing what you need.  Note that I have never used this product.
    http://www.nektra.com/products/cookiepie-tab-firefox-extension

  • II can't reset my APPLEID password because it doesn't recognize my APPLEID!!!  I have always had the same one!

    I can't reset my APPLEID password because it doesn't recognize my APPLEID!!!  I have always had the same one!

    Your Apple ID
        1.  Forgot Apple ID
        2.  Apple ID - Apple Support
        3.  Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support

  • Playlist shuffle always plays the same few songs

    I got a playlist that has roughly 250 songs. Everytime I connect my Ipod to charge it, then disconnect and start the playlist on shuffle mode, there's always a 20 to 30 songs playing first. If I close my Ipod and start the playlist again (still on it most of the time), it shows 1 of 250 and plays the same songs, but not in the same exact order (though sometimes it does for 2 or 3 songs). Just like if the shuffle was on "low" mode or something. It's still choose randomly some song here and there, but not that much since it the same few, ALL THE TIME for a while. The only way to get around this is to connect my Ipod to my computer again (it reset it somehow) or leave it open all the time so it knows wich song has been played (but that's terribly stupid). Is there any other way to go around that shuffling loop? I found myself skipping most of the time since I always hear the same few songs even though there's some songs in the playlist I've never ever played on the Ipod. Is there a way to set the "priority" (like play the most higher rated song first) or the "intensity" (from low to high) of the shuffle?
    Got the last 7th gen. Ipod Nano.

    On the iPod's Now Playing screen, there is a Shuffle button.  The symbol looks like two arrows crossing.  Is that set to ON? 
    I ask this because shuffing a playlist should NOT always put the same 20-30 songs at the top of the list. Shuffle means a randomly ordered list is created and played.  If the original playlist is in a somewhat random playlist order to begin with, playing it in play-in-order mode may seem like it is shuffling, even though the iPod is playing the list in playlist order.  And the same songs would be at the top of the list every time, because the iPod not shuffling the list.
    Sorry if that's too basic, but I need to ask the obvious question first, and that question is, IS is the iPod actually set to shuffle songs?

  • WRT54GS: without Windows, force a given MAC address to always get the same IP address via DHCP?

    I have just now set up my WRT54GS to manage my home wireless network, and it works great. I just have one question that I haven't been able to find an answer for (forgive me if I have overlooked an obvious source of information).
    I have set up the WRT54GS to be a DHCP server, and it assigns addresses in an ad hoc manner to all the devices that connect to it. In general, this is what I want, but in one case, I want a certain host to always get the same IP address, for example, 192.168.1.10.
    You should know that I have no Windows machines on my network. Everything is either running Linux, MacOSX, or Symbian (on a Nokia N95 handheld). Therefore, I can't set up a static IP for my device using the software supplied on the CD that comes with my router, as that software only runs under Windows.
    Using a different manufacturer's router, I am able to accomplish this by telling the DHCP software on that router to always assign 192.168.1.10 to the host who connects with a certain MAC address. I can then use this mechanism to force my specific host to always get this desired IP address. However, I haven't been able to find any way to do that with the WRT54GS without the software on the Windows-based CD. Is it possible at all? If I can indeed do this without that Windows software, could someone point me to some docs which explain how to accomplish this?
    ... or is there perhaps a different way to cause this to happen, perhaps by means of some sort of DHCP client ID?
    Thank you very much in advance for any pointers you can give me.
    Message Edited by HippoMan on 10-16-2007 05:27 PM
    Take a hippopotamus to lunch today.

    Forget about the CD. There is nothing on the CD which you don't configure better through the router web interface at http://192.168.1.1/ You don't need the CD. Never. I have never used the CD to configure any of my routers. The program on the CD is just a software which helps you with the initial configuration of the router. It is just a software which pretty much contacts the web interface in the background and sends some settings changes there. You can do everything yourself directly. Then you know what you change.
    You have to configure the static IP address on the computer and on the computer only, e.g. on your Mac use Static IP instead of DHCP in the network preferences. Enter the IP address you want to use for the computer, the subnet mask, gateway address and DNS server(s). That's it. The router is not involved in any of this.
    You just have to make sure that you use an IP address inside the LAN of the router. By default, Linksys routers use the IP address 192.168.1.1 on the LAN side for the the router. The subnet mask is 255.255.255.0. The IP address together with the subnet mask says that all IP addresses 192.168.1.0-255 are considered part of the LAN. Everything else is outside and needs to be routed to the router and from there into the internet. (If you want to know how the subnet mask works exactly read the wikipedia article on it or search for "subnet calculator" or similar in the internet)
    Thus, if you connect a computer to your LAN and set a static IP address on the computer it should be inside this IP address subnet/range in order to have internet and LAN access on the computer. It does not matter which address you use as long as it is inside the IP subnet. The DHCP server on the router automatically assign a correct IP address inside the IP subnet and also automatically assigns the correct gateway address (its own address = the address to which everything should be sent which does not belong into the LAN, i.e. the internet traffic) and the DNS server. With static IP you have to assign those values yourself.
    But again, there is no Windows computer or CD involved to do that nor is there any configuration on the router required to set the static IP address on the Mac. The IP address you set must simply match your LAN IP which is basically defined through the settings on the router as you want to have internet and thus need access to the router and its address 192.168.1.1.
    Some routers allow you define fixed IP addresses for specific devices in the DHCP server of the router. With that function you can set a fixed IP address on the router. The computer can remain on DHCP. It will always get the IP address you have configured in the list on the router through the DHCP server. However, your Linksys router does not have this option. If any device inside your LAN is supposed to receive the same IP address at any time you have to configure that on the device only.
    If you have not changed the default LAN IP address, subnet mask and DHCP server settings on the router, the router has 192.168.1.1, subnet mask 255.255.255.0 and the DHCP server uses 192.168.1.100-149 for dynamic assignments. To avoid potential address conflicts you should not use any static IP addresses inside the DHCP server address pool. This leaves you with IP addresses 192.168.1.2-99 and 150-254 as static IP addresses inside your LAN. You can pick any address you like as long as any device with a static IP address has a unique IP address inside your LAN.
    Assign the subnet mask 255.255.255.0 on the computer and set the default gateway to 192.168.1.1. The DNS servers are a little bit more complicated. Generally it is better and faster if you use the DNS servers of your ISP. You can, however, also use the IP address of the router 192.168.1.1 as DNS server. The router will then operate as DNS proxy, i.e. it contacts the DNS servers of your ISP for any request from your computer.
    If you want to use the DNS servers of your ISP, click on the Status tab in the router web interface. It shows you the current settings of the router on the internet port. It should show you multiple entries for DNS servers. Choose those DNS server IP addresses in the computer.
    If you don't want to go through the hassle with the direct access to the DNS servers of your ISP, simple use 192.168.1.1 as only DNS server on the computer.
    There are all settings you have to make on your Mac or other computers to assign a static IP address. As long as the IP address is inside 192.168.1.* it belongs to the LAN and has internet access through the router (as long as the default gateway address is 192.168.1.1 of course).
    Firmware is loaded either through the web interface of the router, usually somewhere on the Administration tab or with tftp. Both ways work fine on any Mac or Linux box.

  • Always plays the same song

    When I want to listen to one of my play list (on shuffle or not) it always plays the same song over and over and does not go to the next song in the list.
    I tried re-initiating my ITouch but it has not solved the problem. I also downloadeded the 3.o version of Itunes and the new upgrade in case that was the problem. Still an issue.
    Any advice?

    you haven't got the 'repeat' button selected by accident have you? (sounds daft but people have done it before and not realised)
    tap the screen while music is playing to bring up these controls.
    under the time and scrubber bar on the left handside, see those arrows? if they are blue (tapped once) it will repeat the whole sequence of songs (an album, a playlist, etc.) tap it again a '1' will appear on them. this repeats the current thing playing. tap it again to remove these settings.
    the arrows on the right will be highlighted blue when it's set to shuffle.
    the arrows on the left highlighted when it's set to repeat.

Maybe you are looking for

  • Query for Sales Order Analysis

    Dear Experts I have written a Query for Sales Order Analysis and would like to have help on this. The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales O

  • The ACPI LID close event catched only 50% of the time.

    I'm using acpid with s2ram to have my laptop suspend to ram when I close the lid. This works fine... 50% of the time. Here is what happen: If the s2ram command is commented in my /etc/acpi/actions/lid.sh, and I run an acpi_listen in a terminal, I can

  • Satellite C855-1GQ - hard drive failure warning

    Hi suddenly my laptop has started showing me "hard drive failure warnings" and I honestly have no idea what to do about it please can someone help me. Symptom: The PredictFailure flag is set on the disk Cause: A logical disk has the SMART Predict Fai

  • External DVD to Inspire 6700

    Hi! I'm just wondering if there is a way to connect the 5.1 outputs on my DVD player to my Inspire 6700 speakers? The rear centre wouldn't be used, I know, but is it possible to connect the rest? Also, am I right in thinking, having read threads unti

  • WHY do we set up a RFC connection for workflows

    Guys please tell me why do we setup a RFC connection for workflows. I am getting few dumps for function module IDOC_ERROR_WORKFLOW_START_R in transsactional RFC connection. Looks like it is because of temporary disconnection. i want to know what is t