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

Can't write to network drive (osx)

$
0
0

I've been running a script for a while now that saves to a network share, but today it's just stopped working.  I just get an error "Can't save the illustration.  You do not have enough access privileges. -5000".  The drive in question has never changed, can be written to as normal from and File /Save As... dialog or adding files with Finder, but the script can no longer write to the drive.

 

Have checked the permissions for the drive its all full access & writable, i'm out of ideas!

 

My script longer, but get the same error with this more simple one:

 

 

function saveAsAI8()       {       if (app.documents.length == 0) return;              // Set a variable to the active document       var docRef = app.activeDocument;              // Check and strip off old extension        var docName = docRef.name;       var nameString = '';       var extOffset = docName.lastIndexOf('.');       if (extOffset == -1) {            nameString = docName;       } else {            nameString = docName.substr(0, extOffset);       }         // Get the name to the files parent  
//     var docPath = docRef.path.fsName;    var docPath= "/Print Jobs/";    //  var docPath = "~/Desktop/";             // Set up a save options object       var epsOptions = new EPSSaveOptions();       epsOptions.cmykPostscript = true;       epsOptions.compatability = Compatibility.ILLUSTRATOR8;       epsOptions.compatibleGradientPrinting = true;       epsOptions.embedAllFonts = true;       epsOptions.embedLinkedFiles = true;       epsOptions.flattenOutput = OutputFlattening.PRESERVEAPPEARANCE;       epsOptions.includeDocumentThumbnials = true;       epsOptions.overprint = PDFOverprint.PRESERVEPDFOVERPRINT;       epsOptions.postScript = EPSPostScriptLevelEnum.LEVEL2;       epsOptions.preview = EPSPreview.COLORTIFF;              // Make file object to new location       var saveFile = new File(docPath+'/TEST.eps');              // Use save as method passing new file path & options       docRef.saveAs(saveFile, epsOptions);       }         
saveAsAI8();  

Viewing all articles
Browse latest Browse all 12845

Trending Articles



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