importing .AI file without opening import window
  • gandhigandhi July 2011

    Hi... I´m working with some jsfl code to automate some tasks, and I´m trying to import some illustrator files automatically... this worked well for other type of archives, like png and wmf, but for some reason when I try to import illustrator files, I just cant get rid of the import window (transforming my automatic operation in something really manual...) :)

    I did some search at the internet and aparently nobody has an answer for this... do you have any idea how to solve this? I know I could use other vetorial formats, like emf and wmf, that dont open the import window, but I discovered that when illustrator exports to another format, it screws up the quality, or just fill with a lot of more nodes in the shapes.

    The project I´m working on needs a really good quality and I cant have heavy objects, so I really would like to use illustrator files.

     

    Any Ideas?

     

    Thanks, gandhi

  • DaveDave July 2011

    Hmm... well we're constrained by what the JSFL API will allow us to do, so if there's no option for a quiet import, then it's workaround time.

    Two ideas off the top of my head:

    1. Use something like Automator (or Windows equivilent) to make the correct button clicks after the import window is open (I've never used this, so don't can't comment on whether it might work)
    2. Convert the AI files to another format using a command line process such as nconvert: http://www.xnview.com/en/nconvert.html. FLfile has an undocumented method called runCommandLine() so you should be able to do everything from JSFL.

    The only other option would be getting someone to write a Flash extension in C, but that's an expensive option.

    Report back on how you get on if you try either of those two routes!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

Tagged