Skip to content

Instantly share code, notes, and snippets.

@dmitry-salnikov
Forked from JScott/unxip.scpt
Created February 25, 2018 00:30
Show Gist options
  • Save dmitry-salnikov/081cdb9cc4f915f600980b26e1ec3dea to your computer and use it in GitHub Desktop.
Save dmitry-salnikov/081cdb9cc4f915f600980b26e1ec3dea to your computer and use it in GitHub Desktop.
For unarchiving Apple's bad decisions
-- http://stackoverflow.com/questions/37812664/end-of-central-directory-signature-not-found-when-installing-xcode-8-beta-xip/37857162#37857162
on run argv
tell application "Archive Utility" to open POSIX path of (item 1 of argv)
repeat
delay 5
if application "Archive Utility" is not running then exit repeat
end repeat
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment