From ad2bef363171c0cdf79c51903cb8ae06a31964d9 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Fri, 29 Oct 2010 18:30:35 +0200 Subject: Fixed a problem with exported paths on Mac. --- Export QML.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Export QML.jsx b/Export QML.jsx index d021d19..40f8c07 100644 --- a/Export QML.jsx +++ b/Export QML.jsx @@ -121,9 +121,9 @@ function main() { if (elementName.indexOf(".qml") == -1) // Append .qml unless not explicitly set elementName += ".qml" - var outputName = exportInfo.destination + "\\" + elementName; + var outputName = exportInfo.destination + "/" + elementName; - var imagefolder = new Folder(exportInfo.destination + "\\images\\"); + var imagefolder = new Folder(exportInfo.destination + "/images/"); imagefolder.create(); app.activeDocument.suspendHistory("export QML history", ""); @@ -310,7 +310,7 @@ function exportChildren(dupObj, orgObj, exportInfo, dupDocRef, fileNamePrefix) { // Save document if (!isText) { - var saveFile = new File(exportInfo.destination + "\\images\\" + filename); + var saveFile = new File(exportInfo.destination + "/images/" + filename); pngSaveOptions = new PNGSaveOptions(); pngSaveOptions.interlaced = false; dupObj.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE); -- cgit v1.2.3