Mobile app version of vmapp.org
Login or Join
Ravi4787994

: How to package an illustrator file with extendscript javascript? I have a lot of Illustrator files that I have to assemble (package) individually. I would like to know if it’s possible to

@Ravi4787994

Posted in: #AdobeIllustrator #Automation #Javascript

I have a lot of Illustrator files that I have to assemble (package) individually. I would like to know if it’s possible to do this with extendscript? I have found a function 'packageForPrin' in API InDesign that works very well but i don’t think it exists for Illustrator.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi4787994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria351

You can do this! Maybe, with an AppleScript/ExtendScript(.jsx for short) one-two-punch-combo!
What we can do is invoke the Illustrator Package dialog with no fuss, by using this .jsx line: app.executeMenuCommand ("Package Menu Item");. So you can have your AppleScript do a do javascript "app.executeMenuCommand ('Package Menu Item');" and upon the result of this javascript, you will know the Package dialog is up. You may also be able to control what path is displayed in the dialog's destination folder input, and maybe what items are checked on/off, via changing Illustrator preferences through more .jsx lines: app.preferences.setStringPreference(...).... - but that syntax is a matter of another question. The thing to really test would be - after this dialog is up, if AppleScript can control it or do the most fundamental thing: press that "Package" button and make Illustrator do its packaging.

I'll see if I can make it happen on my Mac, based on this test I will edit this answer!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme