diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-10-29 18:30:35 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2010-10-29 18:30:35 +0200 |
commit | ad2bef363171c0cdf79c51903cb8ae06a31964d9 (patch) | |
tree | e96f2b760945862f243b8e589eb4d728f1f8ce4f | |
parent | 0bce1e8213dcc16357f8e20c479a4c8de990069e (diff) |
Fixed a problem with exported paths on Mac.
-rw-r--r-- | Export QML.jsx | 6 |
1 files 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); |