[JS CS3] Function relink working but nof fully functional

Hi,
I wrote this function to update all my links as path were modified.
It runs well except that when I launch it, it let a few links not updated.
I need to relaunch and relaunch the script as long as necessary to get all links updated.
Is this a know issue ?
I run it as a loop call for any of my links
link is links[i]
name is the name of the broken link (ie : lostlink.tif)
newlink is the link to the new file (ie. /d/.../newlink.tif)
So for all links, it looks for the link status.
If it's not normal, it will check for the name of the link and look if it contains the name requested. In this case, it will relink the link to a new direction and update it.
function relinks(link, name, newlink)
if(link.name.indexOf(name)>=0 && link.name.indexOf("/m/")==-1)
link.relink(File(newlink));
link.update();
link.parent.fit(FitOptions.PROPORTIONALLY)
link.parent.fit(FitOptions.CENTER_CONTENT);
thanks for advice
Loic

Just at the JS level, this should help:
var elements = app.selection[0].texts[0].characters.everyItem().getElements();
var max = elements.length;
for(var i = 0; i < max; i++) {
elements[i].baselineShift = posMe();
-X

Similar Messages

  • DW CS3: test connection works, but local pages won't upload.

    My MacBook Pro died, can'taccess files or apps and I don't have the CS3  install disks,  so I moved DW over from my Mac Pro.The test connection works, but local pages won't upload.I re-entered all the site info, confirmed I ahd all the correct FTP settings from my sertver tech guys. I even created a new site duplicating all the original info. BTW I have ALWAYS had this problem on the Mac Pro...Never been able to upload from that computer. All the other apps in CS3 work fine.
    jackhatfield

    FileZilla worked. Thanks so much. Still wish I could figure out why
    Dreamweaver won¹t transfer files, it would be easier than editing in DW and
    then having to use Filezilla to transfer them. DW never transferred files on
    the Mac Pro I had it installed on either (that¹s where I got it from when I
    moved apps to my new MacBook Pro).
    jack

  • After updating OS X 10.8.5, bluetooth is not available in the menu bar. The Magic Mouse is recognized and working but the bluetooth mouse functions do not work.

    After updating OS X 10.8.5, bluetooth is not available in the menu bar.
    The Magic Mouse is recognized and working but the bluetooth mouse functions do not work.
    I have downloaded and installed 10.8.5 combo but it does not help.
    Menu bar - System Preferences/ there is no bluetooth item
    I restarted with cmd + alt + P + R it doesn't help.

    Did you try the suggestions from your other post on this?

  • HT201317 Is there a way to "stream" older photo's to my PC stored on my Iphone before I upset up "Photo Stream?  NOTE:  My Photo Stream "pushing function is working, but I can only push "new" photos to my PC.

    Is there a way to stream  "older" photos to my PC that were stored on my Iphone before I implemented "Photo Stream?  NOTE:  My Photo Stream "pushing" function is working, but I can only push "new" photos to my PC.

    It might not be streaming but have you considered copying the photos directly off the iphone onto your PC?  I plug my phone in via the USB cable like usual and in Windows Explorer, navigate to Computer\Apple iPhone\Internal Storage\DCIM\860xxxx  and there they are. Copy & paste and you have pictures.
    Hope it helps.

  • License has stopped working (CS3):  tried every fix but no dice

    Hello all, my PS CS3 will not work and I've tried and tried to get it to work but it won't.   You can read everything I've done on this forum:
    http://forums.dealmac.com/read.php?4,2854842,2854842
    I've called Adobe 6 or 7 times now and run both scripts they've made, uninstalled and re-installed 3 times, fixed permissions, deleted the FLEXnet folder (wasn't where it was supposed to be), etc.    Adobe sent me a followup email about my case last week asking how it was going (with no reply address!) and I posted all of this on their support page for my case but have yet to hear from them.   Really, I'm surprised at how bad Adobe's customer service is.  A company as successful as Adobe ought to do better!     What is especially frustrating about this is that the program worked fine before, it's just some code they created that's causing the trouble, so why can't they fix the code?   Or give me a refund?  Or the upgrade to CS4?
    Any help would be appreciated!
       -Cal

    I get the "License has stopped working" mesages too.
    We have a MacbookPro at home. There are two user-acounts on this mac, one for my wife and one for myself. This way we keep our personal stuff (e-mail, files, settings, dropbox, desktop clutter etc) separated. "Fast user switching" is enabled to easily switch to your personal account.
    Now when I open Photoshop I might get the dreaded "License has stopped working" message. This will happen if Photoshop is left open in her account. So I'll have to log into her account, close Photoshop, go back into my own acount and open Photoshop again.
    I should not get this message since Photoshop is not part of a particular user account, it is installed in the "Applications" folder which is accesible to all users.
    What makes it even more annoying is that I get the "License has stopped working" message on trying to open Photoshop even when Photoshop is closed in in the other acount, but Illustrator is opened.
    This makes no sense since we bought Photoshop and Illustrator CS3 as separate programs, not as a part of the Creative Suite.
    I did not report this to Adobe yet but it wil do that now.

  • In my ipad zoom function not working..some day before it worked,but when i double pinch with my three fingers it zooms negligible, wat to do?plzz help me..

    In my ipad zoom function not working..some day before it worked,but when i double pinch with my three fingers it zooms negligible, wat to do?plzz help me..

    It works when I reset my all settings...
    Settings>general>reset>reset all settings
    It never delete ur all contacts and any others,but ur wallpaper and wifi connection will change..it can be as before...

  • I have low battery on my ipad and it still works but it is not fully charging what can i do

    i have a low battery on my ipad it still works but it is not fully charged what can i do to fully charge it

    Clean the charging port.
    Charge using the supplied wall charger, not your computer.
    Try another charger and/or cable.
    If none of these work, you have a hardware problem.

  • Just bought an iPhone 5C.. Safari is non-functional! A blank frozen screen! Any one else experience this? Horrid design Apple! It's your freaking web browser! Google Chrome works but not Safari! I may simply return this "upgrade" unless someone can help

    Just bought an iPhone 5C.. Safari is non-functional! A blank frozen screen... What gives? Safari is Apple's browser for gods sakes! Google Chrom works but not Safari? This is nuts. This is an "upgrade"?? Anyone else experiencing this? Or should I just give up and return this

    Are you always like this?
    First try a Reset: Hold down the home and sleep buttons, wait for the Apple logo, let go of the buttons.

  • For what can i trade in my cracked but still fully functional iPod 4th Gen for?

    For what can i trade in my cracked but still fully functional iPod 4th Gen for?

    Apple will give you a 10% discount when purchasing a new one.

  • Ipad screen is locked.  SLIDE function will not work but screen does still rotate.

    ipad screen is locked.  slide function will not work but screen does rotate...

    Try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Ok I have an fully upgraded iPad 2 and the volume button don't work but it do with headphones can someone help

    Ok I have an fully upgraded iPad 2 and the volume button don't work but it do with headphones can someone help. I try to go to settings and the volume won't go up there either I have the home button gesture and still the same. I try resting my iPad and nothing no sound work unless I have my headphones in. Do anybody know how to fix this

    Did you try rebooting the iPad? You will need to have some battery power for this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This may be helpful
    iPhone, iPad or iPod touch: Not responding or does not turn on
    Frozen or unresponsive iPad - Apple
    iPad: Unable to update or restore

  • Pause function works, but I loose soundTransform

    I am stumped on pausing a sound and keeping the volume sound transform on play again.  Pause works, but when I play again it plays correctly from pause position; however, the sound transform vol reverts to 1 (100%)
    //soundbed vars
    var mySound:Sound = new theme();
    var sndVol:SoundTransform = new SoundTransform(0.2);
    var channel:SoundChannel = mySound.play(0,2,sndVol);
    /pause function
    musicOn_mc.musPause_mc.addEventListener(MouseEvent.CLICK,togMus);
    function togMus(e:MouseEvent) {
    var pausePosition:int = channel.position;
        if (musOn) {
            channel.stop();
            musicOn_mc.musPause_mc.gotoAndStop("off");
            musOn = false;
        } else {
    //THIS IS THE PROBLEM
           channel = mySound.play(pausePosition);
            // ???? any idea how I would re-apply the sound transform?
    //END OF PROBLEM
            musicOn_mc.musPause_mc.gotoAndStop("on");
            musOn = true;
    Thanks

    If you look in the Help you will see that each time you call play a new channel object is created and assigned the variable - so you lose the old transform. You just need to reassign it...
    channel.soundTransform = sndVol;

  • HT1414 IPad less than 1 year old was working perfectly & was fully charged. Went back 2 hours later & it was blank screen & will not respond no matter what I do. Have fully charged but still black screen & non-responsive with nothing happening when I try

    IPad was working fine &amp; fully charged. Screen is now black &amp; non-responsive. Is there something I can try or should I take to service center?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Original iphone works but can no longer be activated for phone use????

    I have one of the original iphones that works but I no longer use (as in I paid $700 for it when it first came out). I just gave it to my nephew and my brother tells me Apple and ATT don't support it and he's being told that it can't be set-up as a functioning phone? That the current version of itunes won't support it either? Does this make sense to anyone? Could this be true? I'm on my 3rd iphone version and the first 2 work I just upgraded so now the old phones can't be used? I gave the same nephew a much older flip phone that still works and it has phone service.... Thoughts?

    This doesn't make any sense to me either. Are we missing some vital information or is he just mistaken?
    Until this last November, I was using a Blackberry Curve. I was visiting a friend and complained about the trackball giving me fits. He went to his kitchen junk drawer and pulled out his very first iPhone 2g and tossed it to me. I've been using it ever since without issue.
    If the phone is in proper working order, it should only take a call to AT&T to order an appropriate plan and sim card. The original iPhone is still fully supported by AT&T and iTunes. While iOS support does end with version 3.1.3 and more and more apps do require iOS4, it still affords a very reasonable user experience. So reasonable, in fact, I am reconsidering my original plan of upgrading to the iPhone 4 this month. What can I say? It kicks BB Curve behind and does everything I need using a sweet grandfathered calling and data plan! laugh

  • Elements 12 (PC) loaded from cd, organizer works but editor says it is loading, grinds for 20 secs then disappears

    loaded Elements 12 (PC),  2 months ago both organizer and editor fully functional. Got message today free trial ran out and i needed to buy it.
    Reloaded from DVD, organizer works but editor will not load

    Two suggestions:  the first one is a workaround. You just have to drill down your program file tree to Adobe Photoshop Elements Organizer and find the .exe file - the one specifically for Organizer, not Elements.  Make a shortcut to that file on your desktop and it will open Organizer. The second suggestion resolved the problem altogether for me. I actually called Dell and after working with several different techs over several different days, I talked to a tech in premium support who was excellent. I discovered from them that it is actually a problem with the windows system files. I have 8.1.  I went through a "refresh" on my computer which rebuilt all the files. Then reinstalled Adobe as well as my other programs again and Photoshop Elements Organizer works from the standard desktop shortcut.

Maybe you are looking for

  • Display number as Date in report

    Hi, We are getting the date info in the format ddmmyyyy and have to map it in the number field. I want to show this date info in the report as dd/mm/yyyy. For example, if the date is 10072009 (10th July 2009), it should be displayed as 10/07/2009 in

  • What do i need to open programs???

    hi all i have stuffit expander and it works fine. however, there are things i need to open but i cant and was wondering what i need to do. i want to open an icon. it is a black rectangle with a little green bit on it. looks a bit like a credit card.

  • Which SAP Module I should go for

    Hi All, I  compltely new to the SAP.I have around 3 year experience in BI(DWH,ETL),Java .I have some good package as well Due to some  personal reason  I wanted to shift to my native where we dont have any software companies but we have so many steel

  • Smartform purchase order print duplex terms

    I have made change to print TERMS page last and it works.  Also the folder NOTES after MAIN still works as does page number, ie the TERMS do not add to total number of pages. However, page TERMS does not duplex and the printer can print in duplex. Th

  • How to install oracle8i and 9ias in one machine.

    I need u help. I should install both product in one machine. and should 9ias should be enterprise version.