Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Script to change links for many files

$
0
0

Does anyone have any suggestions or pointers to a solution for changing the file path for links in an Illustrator document?

 

For example, let's say my Illustrator document is stored at:

/Volumes/Storage/Projects/Client/AAA001/designs/concept1.ai

 

and I have placed 2 linked visuals:

 

/Volumes/Storage/Projects/Client/AAA001/visuals/big_retouch.psd

/Volumes/Storage/Projects/Client/AAA001/visuals/flattened.jpg

 

 

When I open the .AI I noticed that the reference to the visuals is under a %DocumentFiles section:

%%DocumentFiles:/Volumes/Storage/Projects/Client/AAA001/visuals/retouc hed.psd

%%+/Volumes/Storage/Projects/Client/AAA001/visuals/flattened.jpg

 

I need to replace "/Volumes/Storage/Projects" with "/Volumes/Projects". (There are some more complex replacements I need, but let's start here.)

 

Any suggestions please?

 

Kind regards

Craig.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>