Copy link to clipboard
Copied
Is it possible to create script that will take object (Text and Images) form one and AI file and placed them into another AI file in specific layer and location?
When I do it manually:
#1 - Create Banner Design (Text and Images)
# 2 - Outline the text and group it with images to make it one object.
# 3 - Copy the group object
# 4 - Open another Ai file
# 5 - Paste it into specific layer and adjust location
We do this to individually customize documents and it is very time consuming.
Feel free to contact me directly, we will consider to hire programer to help us.
Copy link to clipboard
Copied
Here is the small script to do copy paste : Before executing this script ensure that object must be selected that need to be copied
app.executeMenuCommand('copy');
var newDoc = app.documents.add();
newDoc.activate();
app.executeMenuCommand('paste');
Copy link to clipboard
Copied
Where is all that information ?
I cannot find it in the "ADOBE ILLUSTRATOR CC 2017 SCRIPTING REFERENCE: JAVASCRIPT"-Manual.
Is there also a Method for 'paste in place' and 'select all' ?
Edit:
Sorry, I guess I found the answer here [JS] CS6+ executeMenuCommand
Copy link to clipboard
Copied
I love executeMenuCommand.
but here you can just use:
app.copy();
app.paste();
Copy link to clipboard
Copied
Also look into the textFrame function createOutline();