Skip to main content
Participant
December 14, 2019
Question

Ilustrator Action which saves files to same directory ?

  • December 14, 2019
  • 2 replies
  • 2004 views

Hello Guys,

I have several folders of AI Files. I need to process them individually, then save them as SVG, EPS, PNG, JPG, DXF in the same folder the original AI was in.
I created an action for it,
My problem is the action "remembers" the directory path in which the action was created also remember file name (i.e. the first folder).
When I run the action on AI file, I've opened from other folders, it defaults to the first folder. So I need to navigate to the current folder every time.

here is the action steps:

- Save a copy : file name.eps
- Save a copy : file name.svg
- Export As : file name.dxf
- Export As : file name.jpg ( Use Artboards)
- Export As : file name.png ( Use Artboards) (original is black)
- Select All
- Swatches > Apply swatch: white
- Export As : file name.png ( Use Artboards) ( white )

is there is a way to just have the action open the save as the files to the same directory as the currently open .Ai file with .AI file name ?

Is there a script that can do this or do I have to do it manually?

 

This topic has been closed for replies.

2 replies

Lumenn
Inspiring
December 15, 2019

It's not possible to do with actions, as you have many different subfolders - this is what illustrator won't process.
For sure it's doable with scripting, and maybe with batch processing, but i'm still not sure if those subfolders won't be issue here.

FontseraAuthor
Participant
December 16, 2019

Yes, I know it's possible with script , but I'm not familiar with javascript. 

Is it possible to convert an action to script so I can edit  those directories to directory the opened file was in rather than the one in

which the action was created.

Lumenn
Inspiring
December 17, 2019

Just to make sure if it's not possible via actions (i've read this second time, and maybe there will be a way)
Please show me structure of your files, where do you have original file, where do you save new ones.
Might just be screenshots from file explorer 🙂 

It's not possible to convert action to script as far as i know.

Kurt Gold
Community Expert
Community Expert
December 14, 2019

I can imagine that you could achieve that by using batch processes (see Actions palette menu), but I'm not sure as I may misunderstand your request.

 

You are familiar with Illustrator's Batch capabilities, aren't you?

FontseraAuthor
Participant
December 16, 2019

I tried batch with no luck , When I play  the action I created from other folders, it defaults extract the files to the first folder the action was recorded on.