Skip to content

Instantly share code, notes, and snippets.

@b0gdanw
Created October 24, 2019 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0gdanw/3e35f6fe9de2cd87f9ac79cfcd189617 to your computer and use it in GitHub Desktop.
Save b0gdanw/3e35f6fe9de2cd87f9ac79cfcd189617 to your computer and use it in GitHub Desktop.
iTunes 12.9.5.5 on macOS Catalina 10.15
set theAPP to choose file with prompt "Please select iTunes app:" of type {"app"}
do shell script "mkdir ~/tmp"
do shell script "ditto " & POSIX path of theAPP & " ~/tmp/iTunes.app" with administrator privileges
do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist" with administrator privileges
do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist" with administrator privileges
do shell script "plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist" with administrator privileges
do shell script "plutil -replace CFBundleVersion -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/version.plist" with administrator privileges
do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/version.plist" with administrator privileges
do shell script "pkgbuild --component ~/tmp/iTunes.app --install-location /Applications ~/Desktop/iTunes13.9.5.5.pkg"
do shell script "rm -rf ~/tmp" with administrator privileges
display dialog "iTunes13.9.5.5.pkg was saved on Desktop" buttons {"Ok"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment