Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Renaming EPS files

$
0
0

Hi people!

I was trying to rename a few EPS files using this code but it didn't work.

 

var myEPS = Folder.desktop + '/AF Files/oldName.eps';
myEPS.rename( Folder.desktop + '/AF Files/newName.eps');

 

I got this code to make it work and I didn't work too! :/

What am I doing wrong?

 

var myfile = File.openDialog( 'select your AI file…' );
myfile.rename( 'NEW.ai' );

 

Show this ERROR: myEPS.rename is not a function.

 

Is possible to rename a file with Illustrator? How could I do it?

Many thanks for your time guys!


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>