Hey guys, I've been using basic scripts to export single documents in illustrator for some time now,
I wanted to make a script that would loop through all open documents and save them all out as pdf's
I looked through one of the adobe sample scripts to use as a base, ......
After much trial and error, I've pretty much got it working how I want EXCEPT it only seems to loop through around half of my open documents.
If I have 5 or 6 open, it only does 3, if I have 3 or 4 it only does 2 and so on.
theres no error message, it gives me the "Documents saved as PDF" line but always leaves a few behind.
what I want is for it to loop through all open docs, saving each one out as pdf and closing each document as it goes.
(so when it finishes I should have no open documents)
I imagine it's something quite simple but can't figure it out for the life of me.
Can anyone help me out with this? maybe explain where it's going wrong?