-
-
Save ten-A/625a178e9972328dfaa4c2575cc6b28c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var f = File.openDialog("Please select your archive."); | |
f.fsName.match(/(.+?)\.|docx$|xlsx$|pptx$|zip$|idml|/); | |
var fdr = new Folder(RegExp.$1); | |
if (!fdr.exists) fdr.create(); | |
else | |
{ | |
alert("A folder with the same name already exists."); | |
return; | |
} | |
app.unpackageUCF(f, fdr); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extract docx, xlsx, pptx, idml and zip files from InDesign.
Use the "Download ZIP" button in the upper right corner of this page to download and unzip the script. To install, simply open the unzipped folder and move "unpackager.jsx" file into the InDesign scripts folder.
To execute, simply run "unpackager.jsx" from the Script Panel and select the target file. An expanded folder will appear at the same level as the target file.