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

Dynamic image link?

$
0
0

Is there a way with JavaScript to place an image with a calculated path and file name?  I have 30+ artboards per document, each artboard named by product number.  The actual file name of the master AI file is also already established (meaning every document I use this new script on will have already been saved).

 

Here's the scenario I'm hoping to create in the context of the documents mentioned above:

Run a script to "Place" a linked image based on the following calculated path:

 

["S:\SAP\Current Images in SAP\Stock Schools\"] + [current ai filename minus the .ai extension]+[a hyphen like this "-"]+[currently selected artboard name]+[".jpg"]

 

This image link can be placed on a new top layer called "Images" or if necessary on the currently selected layer.  Dimensions of the placed image should be a pre-determined size 8"x8".

 

Error if the ai document has not been saved yet.

 

Is a script like this possible?

 

Thanks,

Tim


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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