Skip to content

Instantly share code, notes, and snippets.

@ten-A
Last active April 21, 2025 07:20
Show Gist options
  • Save ten-A/625a178e9972328dfaa4c2575cc6b28c to your computer and use it in GitHub Desktop.
Save ten-A/625a178e9972328dfaa4c2575cc6b28c to your computer and use it in GitHub Desktop.
(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);
})();
@ten-A
Copy link
Author

ten-A commented Apr 21, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment