Am făcut un script pentru cei care vor încă iTunes 12.6.5 cu AppStore in MacOS Mojave 10.14
iTunes12.6.5 poate fi descărcat de aici https://secure-appldnld.apple.com/itunes12/091-87821-20180912-69177170-B085-11E8-B6AB-C1D03409AD2A/iTunes12.6.5.dmg
Scriptul șterge aplicația iTunes, apoi modifică pachetul de instalare iTunes.pkg din iTunes12.6.5.dmg pentru a putea fi instalat în Mojave
set question to display dialog "Ștergeți iTtunes?" buttons {"Da", "Nu"} default button 1
set answer to button returned of question
if answer is equal to "Da" then
do shell script "rm -rf /Applications/iTunes.app" with administrator privileges
display dialog "iTunes a fost ștearsă" buttons {"Ok"}
set theDMG to choose file with prompt "Vă rog selectați iTunes 12.6 dmg:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/iTunes/Install\\ iTunes.pkg ~/tmp"
do shell script "sed -i '' 's/18A1/14F2511/g' ~/tmp/Distribution"
do shell script "sed -i '' 's/gt/lt/g' ~/tmp/Distribution"
do shell script "pkgutil --flatten ~/tmp ~/Desktop/iTunes.pkg"
do shell script "hdiutil unmount /Volumes/iTunes/"
do shell script "rm -rf ~/tmp"
end if
if answer is equal to "Nu" then
display dialog "iTunes nu a fost ștearsă" buttons {"Ok"}
return
end if
set question to display dialog "Instalați iTtunes?" buttons {"Da", "Nu"} default button 1
set answer to button returned of question
if answer is equal to "Da" then
do shell script "open ~/Desktop/iTunes.pkg"
return
end if
if answer is equal to "Nu" then
display dialog "Pachetul modificat iTunes.pkg a fost salvat pe desktop" buttons {"Ok"}
return
end if