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

Need Help with a Script

$
0
0

Found a script that works but on current file, looking to make it more automated

 

try { 
   var layToRm = activeDocument.layers.getByName('WhiteOP'); 
   if(!layToRm.visible) layToRm.visible = true; 
   if(layToRm.locked) layToRm.locked = false; 
   layToRm.remove(); 
} catch (e) {} 

 

Removes a Layer with a specific name

 

I'm looking to get it to point to a directory and save/export -

found this bit

    var dir = Folder.selectDialog("location");
   var files = dir.getFiles("*.ai");

 

save works, but if possible Export as a specific file extension its a custom one but has no options can I just export as a .whatever?

 

if not save as .ai works as well

 

thanks,


Viewing all articles
Browse latest Browse all 3671


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