PDA

View Full Version : Getting past the Illustrator Import Dialog box using JSFL


quiet.mountain@yahoo.com
06-20-2007, 10:18 PM
Hi there,

I would like to import and manipulate hundreds of .ai files to Flash CS3. I can do all of the manipulation I need using jsfl together with custom c code, once I get them in.

The issue I'm having is right at the start - automatically importing the .ai files using my custom settings.

I've disabled the import dialog box for the Illustrator import, and then called:

var URI = 'file:///C|/Templates/brocade.ai';
fl.getDocumentDOM().importFile(URI);

Problem is that not all of the shapes in the .ai file are being checked for import by default. Some are, some aren't - seems pretty random.

Is there any way of forcing a default of importing everything present in the .ai file?

If not is there any way of writing a script to manipulate the "import dialog box" to check all of the items for import - I've had a look at fl.xmlui but thought it could only be applied to custom UIs, which is why I thought disabling it was the way to go.

Thanks for your help,
Rich

<!-- Richard Germuska M.Eng., M.Sc. -->