Need tiny AS-help for an easy task in Illustrator
Hello Illustrator-Scripter,
we use Illu rarely, so I dont got much expirience in scripting that applictaion, so I beg u guys for some tiny lines of code:
My script runs in InD, and delivers a string to the pastboard, calling illustrator and opening a template-document. This document contains a textbox with an temp string "00000 Institut".
Task:
Find the textbox, overwrite the text in the textbox with pastboard-text.
Problem:
Im too unskilled to address the box/content.
Options:
I could modify the template: If in Illustrator is some sort of sriptlabel, ID or tag, to find and select the textbox.
Here we go:
My document is already open and active, thats the bit:
tell application "Adobe Illustrator"
set theTemplate to "/Volumes/srvmar101_01/myfile.ai"
open theTemplate
activate
set newFP to "/Volumes/srvmar101_01/mynewfile.ai"
-- ??????
save current document in newFP
end tell