Illustrator scripting
Illustrator scripting
- Subject: Illustrator scripting
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 21 Jan 2017 18:12:36 +0900
I have a jsx script that I often use in Illustrator CS5. The script assigns variables to selected text in the active document. It was written in an Adobe support forum and I never actually bothered to adapt it to Applescript since it is working fine, most of the time. The problem is that when there are too many objects in a document (or in a single layer) Illustrator just crashes and I have to do all sorts of things to manually reduce the number of objects to make it work.
When I use the script, I first need to de-group all the groups, and disable clipping masks since all that seems to hinder text selection. Then I select the text objects and apply the script.
I then capture the data set, save it to an XML variable library, use the XML library as source file for translation and when the translation is done, read the translated library and check that no text box has been left aside.
So, besides for the actual variable assignment, there are plenty of things to do manually, and I'd like to automate that but I've never worked with Illustrator so I'm wondering if there are good ressources around (I have the CC 2014 reference from Adobe). Also, I'm worried about this performance issue where the script makes Illustrator crash because the actual number that triggers the crash is actually not that big (we're not talking about thousands of text boxes, more lake a hundred or so), so I'm wondering if there is not a glitch in the script itself.
So, if anybody could help that would be really nice.
Jean-Christophe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden