"Save A Copy" scripting problem
I'm trying to create a "Save As PDF" script for Illustrator that will allow me to keep my active document as an Illustrator (.AI) file open.
In my workflow, I need to create compressed PDF version of my Illustrator file for clients, WHILE I'm working on an Illustrator file. In other words, I need to keep the .AI file open and have the .PDF file saved in the background.
Currently this is how I do this:
1. Choose "Save A Copy..."
2. Choose PDF
3. Choose PDF Preset from the drop-down menu.
4. Use the keyboard to delete " copy" which is automatically appended.
5. Choose "Save PDF"
Of course I can easily just choose "Save As.." and choose pdf, but then my file is no longer an Illustrator (.ai) file.
I've been able to code a script which will automatically save my document as a pdf with a specific preset but it only works on the "Save As..." command. I need it to work on the "Save A Copy..." command. If I could just figure out a way to automatically remove the " copy" suffix that's automatically appended to the filename it would be a breeze.
Can you assist me in figuring this out?
