Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

File.rename on Mac :/

$
0
0

Guys... I have this code, it works on Windowsperfectly renaming the files.

I have tried to make it work on Mac but I couldn't.

 

Is doesn't display any error / alert.

What am I doing wrong, why doesn't it work on Mac? :/


Many thanks in advanced x)


var filenameEXT = "SST";
var mainPath = Folder.desktop + "/";
var fullPath = Folder.desktop + "/New Files/";
var f = File(mainPath + "EXT.svg");
if (f.exists) {    f.rename(fullPath + filenameEXT + ".svg");
};

Viewing all articles
Browse latest Browse all 3671


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