Discussion:
How Do You Use Scripting to Relink Multiple Images
(too old to reply)
M***@adobeforums.com
2006-09-20 15:58:33 UTC
Permalink
I'm trying to find a faster way to relink multiples of the same image within a file. Someone suggested using the Zamera script.

I'm not familiar with scripting, so I spent a little time trying to figure it out, but I think I'm missing something.

Someone else suggested faking the file names, but for me this would be hard to manage because
I will have several files to work with for 1 job, maybe 100, each with a different image, but the same image repeated in 1 file.

I want to have 1 folder for images, 1 folder for print files. I want to be able to relink the image to a new file name and have it apply the change to all the images in that file with the same name. I could do this in quark, except the the images have a transparent background.

Any Ideas would be much appreciated! There's got to be a faster way to do this!
K***@adobeforums.com
2006-09-21 10:20:24 UTC
Permalink
In case other readers don't know about the scripts Maari is talking about, here are the links:

<http://illustrator.hilfdirselbst.ch/dokuwiki/english/scripts/javascript/zamena>

<http://illustrator.hilfdirselbst.ch/dokuwiki/english/scripts/javascript/zamena_size>

Maari,

what you're describing can easily be done with the zamena scripts. The basic idea is that all selected objects will be replaced with the topmost object in the stacking order of that selection. In other words:

1. Open a blank document and place a linked image
2. Duplicate the image a couple of times
3. Place another linked image and make sure it is the topmost object
4. Select all and run zamena.js or zamena_size.js
K***@adobeforums.com
2006-09-21 13:00:59 UTC
Permalink
I want to have 1 folder for images, 1 folder for print files.




So those »images« in the first folder will have the same names as the »print files« in the second folder? Is that the case? You would need no script then.

Klaus
M***@adobeforums.com
2006-09-26 21:27:56 UTC
Permalink
Hi Kurt,

Thanks for the reply! Either I'm missing something or I don't know. What I want to happen is that when I go to the links palette and relink the file that has been duplicated, it will relink all the files, instead of prompting me to relink for each separate file.

I did what you said, but then when you get to the part where you say, "Run the Script" - what's supposed to happen? I tried relinking after I ran the script and they relink the same way.

Any additional help would be much appreciated.
K***@adobeforums.com
2006-09-26 23:12:41 UTC
Permalink
One final attempt for a »no script« solution ...

Let's assume it's like this: All your linked images are from a folder called »images«. Now duplicate that folder to a folder called something like »My layout images«.

Let's also assume that your meant-for-print images are in a separate folder, but have the same names than the linked images. Rename that folder to something like »My print images«.

Now make that »images« folder your swap folder. Delete it! And duplicate the »My print images« folder to be the new »images« folder now. Open your Illustrator document and you can relink everything at once.
K***@adobeforums.com
2006-09-27 10:08:42 UTC
Permalink
What I want to happen is that when I go to the links palette and relink
the file that has been duplicated, it will relink all the files, instead
of prompting me to relink for each separate file.




As described in post #1, the script does not work this way. You do not have to use the Links Palette at all. Again:

1. Open a blank document and place a linked image (Image 1)
2. Duplicate Image 1 a couple of times
3. Place another linked image (Image 2) and make sure it is the topmost object
4. Select all and run zamena.js or zamena_size.js

Now all instances of the linked Image 1 are replaced with the linked Image 2.
M***@adobeforums.com
2006-09-27 14:38:53 UTC
Permalink
Hi Kurt,

I got it now! Thank you for your patience.
M***@adobeforums.com
2006-09-27 15:38:33 UTC
Permalink
One more question. Can you use this script in InDesign, or is there a script like it for InDesign?
Nini Tjäder
2006-09-28 09:43:05 UTC
Permalink
A script for illustrator can only be used in Illustrator. A script for InDesign can only be used in InDesign. You would have to edit the script to use it in another application and check its whole syntax.
Loading...