Skip to content

Instantly share code, notes, and snippets.

@ten-A
Created November 16, 2019 00:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 return;
app.unpackageUCF(f, fdr);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment