Ακου φιλε The script from #11 works fine. Try it.When I try to copy to applications folder I get error.
Ακου φιλε The script from #11 works fine. Try it.When I try to copy to applications folder I get error.
set theAPP to choose file with prompt "Please select iTunes app:" of type {"app"}
do shell script "mkdir ~/tmp"
set theTmp to ((path to home folder as text) & "tmp")
tell application "Finder" to duplicate theAPP to theTmp
do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
set question to display dialog "iTtunes was patched. Save iTunes as dmg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "hdiutil create -format UDZO -srcfolder ~/tmp/iTunes.app ~/Desktop/iTunes.dmg"
display dialog "iTunes.dmg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Save iTunes as installable pkg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "productbuild --component ~/tmp/iTunes.app/ /Applications/ ~/Desktop/iTunes.pkg"
display dialog "iTunes.pkg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Delete temporary ~/tmp folder?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "rm -R ~/tmp"
display dialog "~/tmp was deleted" buttons {"Ok"}
return
end if
set theAPP to choose file with prompt "Please select iTunes app:" of type {"app"}
do shell script "mkdir ~/tmp"
set theTmp to ((path to home folder as text) & "tmp")
tell application "Finder" to duplicate theAPP to theTmp
set question to display dialog "What iTunes version do you wish to patch?" buttons {"12.9.5", "12.8.2", "12.6.5"} default button 3
set answer to button returned of question
if answer is equal to "12.9.5" then
do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
end if
if answer is equal to "12.8.2" then
do shell script "sed -i '' 's/12.8.2/13.8.2/g' ~/tmp/iTunes.app/Contents/Info.plist"
end if
if answer is equal to "12.6.5" then
do shell script "sed -i '' 's/12.6.5/13.6.5/g' ~/tmp/iTunes.app/Contents/Info.plist"
end if
set question to display dialog "iTtunes was patched. Save iTunes as dmg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "hdiutil create -format UDZO -srcfolder ~/tmp/iTunes.app ~/Desktop/iTunes.dmg"
display dialog "iTunes.dmg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Save iTunes as installable pkg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "productbuild --component ~/tmp/iTunes.app/ /Applications/ ~/Desktop/iTunes.pkg"
display dialog "iTunes.pkg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Delete temporary ~/tmp folder?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "rm -R ~/tmp"
display dialog "~/tmp was deleted" buttons {"Ok"}
return
end if
sudo spctl --master-disable
Multi iTunes patcher
The script asks for an iTunes.app, then asks you to select the version to patch, makes the appropriate changes to Info.plist, asks to save iTunes as dmg, pkg and if the modified version should be deleted from the temporary folder created.
Code:set theAPP to choose file with prompt "Please select iTunes app:" of type {"app"} do shell script "mkdir ~/tmp" set theTmp to ((path to home folder as text) & "tmp") tell application "Finder" to duplicate theAPP to theTmp set question to display dialog "What iTunes version do you wish to patch?" buttons {"12.9.5", "12.8.2", "12.6.5"} default button 3 set answer to button returned of question if answer is equal to "12.9.5" then do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist" do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist" do shell script "plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist" end if if answer is equal to "12.8.2" then do shell script "sed -i '' 's/12.8.2/13.8.2/g' ~/tmp/iTunes.app/Contents/Info.plist" end if if answer is equal to "12.6.5" then do shell script "sed -i '' 's/12.6.5/13.6.5/g' ~/tmp/iTunes.app/Contents/Info.plist" end if set question to display dialog "iTtunes was patched. Save iTunes as dmg?" buttons {"Yes", "No"} default button 1 set answer to button returned of question if answer is equal to "Yes" then do shell script "hdiutil create -format UDZO -srcfolder ~/tmp/iTunes.app ~/Desktop/iTunes.dmg" display dialog "iTunes.dmg saved on Desktop" buttons {"Ok"} end if set question to display dialog "Save iTunes as installable pkg?" buttons {"Yes", "No"} default button 1 set answer to button returned of question if answer is equal to "Yes" then do shell script "productbuild --component ~/tmp/iTunes.app/ /Applications/ ~/Desktop/iTunes.pkg" display dialog "iTunes.pkg saved on Desktop" buttons {"Ok"} end if set question to display dialog "Delete temporary ~/tmp folder?" buttons {"Yes", "No"} default button 1 set answer to button returned of question if answer is equal to "Yes" then do shell script "rm -R ~/tmp" display dialog "~/tmp was deleted" buttons {"Ok"} return end if
Let's wait for Apple to fix the bugs in Catalina, then try to find a solution.how to solve this mistake of the icons
What xml file? You mean the Info.plist? That's what we've first done when 10.14.4 was released #166You can copy and paste the xml file of new music app to iTunes 12.6.5
From Apple?Found a download for 12.9.9.5
set theAPP to choose file with prompt "Please select the Install macOS Mojave.app:" of type {"app"}
do shell script "hdiutil mount " & quoted form of POSIX path of theAPP & "/Contents/SharedSupport/InstallESD.dmg"
set thePackage to POSIX file "/Volumes/InstallESD/Packages/Core.pkg"
do shell script "mkdir ~/tmp"
set theExppath to POSIX path of ((path to home folder as text) & "tmp")
tell application "Suspicious Package"
set theDocument to (open file thePackage)
set theAPP to (find bundles under installed item "/Applications" of theDocument whose name is "iTunes.app")
with timeout of 3000 seconds
export theAPP to theExppath & "/iTunes.app"
end timeout
end tell
tell application "Suspicious Package" to quit
do shell script "hdiutil unmount /Volumes/InstallESD/"
do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.9.5.5' ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleShortVersionString -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleVersion -string 13.9.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "productbuild --component ~/tmp/iTunes.app/ /Applications/ ~/Desktop/iTunes12.9.5.pkg"
do shell script "rm -rf ~/tmp"
display dialog "Modified iTunes saved on Desktop" buttons {"Ok"}
No, it fell off an internet truck.From Apple?
Actually, 12.6.5 stopped working all of a sudden on Mojave. Looks like Apple is actively trying to shut that down for no benefit to the users. It is really annoying that they do this kind of crap.Then we need iTunes 12.6.6 just like we needed IOS 12.6.5 for IOS 12 last year.
Mine is working fine on 10.14.6 (18G87). I have it in ~/Applications as described in post 186 and the info.plist is modified with 12.9.4 instead of 12.6.5 with the script from post 179. You can also use the script from the post 27 above.Actually, 12.6.5 stopped working all of a sudden on Mojave. Looks like Apple is actively trying to shut that down for no benefit to the users. It is really annoying that they do this kind of crap.
You are a genius!!
Need to reinstall the iTunes 12.6.5 with the scripts that you have created and shared with the rest of us, move it to somewhere else and then put that on the dock. (I did not move that the first time around )
And voila! It is working like a charm again.
Photo Sync works on Mojave 10.14.6 and Catalina Beta 4 with iTunes 12.6.5.3 and iOS 12.4.Could anyone confirm if photo sync to iPhone/iPad works in iTunes 12.6.5.3 as before?[/ATTACH]
set theDMG to choose file with prompt "Please select iTunes dmg file:" 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 "hdiutil unmount /Volumes/iTunes/"
do shell script "cd ~/tmp/iTunesX.pkg;" & "cat Payload | gunzip -dc |cpio -i;" & "cd ~/tmp/iTunesX.pkg/Applications;" & "cp -r iTunes.app ~/tmp;"
do shell script "plutil -replace CFBundleGetInfoString -string 'iTunes 13.6.5.3' ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleShortVersionString -string 13.6.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleVersion -string 13.6.5 ~/tmp/iTunes.app/Contents/Info.plist"
do shell script "plutil -replace CFBundleVersion -string 'iTunes 13.6.5.3' ~/tmp/iTunes.app/Contents/version.plist"
do shell script "plutil -replace CFBundleShortVersionString -string 13.6.5 ~/tmp/iTunes.app/Contents/version.plist"
set question to display dialog "Copy patched iTunes to /Applications?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "cp -r ~/tmp/iTunes.app /Applications"
display dialog "Patched iTunes.app was copied to /Applications" buttons {"Ok"}
end if
set question to display dialog "Save patched iTunes as dmg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "hdiutil create -format UDZO -srcfolder ~/tmp/iTunes.app ~/Desktop/iTunes13.6.5.dmg"
display dialog "iTunes13.6.5.dmg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Save patched iTunes as installable pkg?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "productbuild --component ~/tmp/iTunes.app /Applications ~/Desktop/iTunes13.6.5.pkg"
display dialog "iTunes13.6.5.pkg saved on Desktop" buttons {"Ok"}
end if
set question to display dialog "Delete temporary ~/tmp folder?" buttons {"Yes", "No"} default button 1
set answer to button returned of question
if answer is equal to "Yes" then
do shell script "rm -R ~/tmp"
display dialog "~/tmp was deleted" buttons {"Ok"}
return
end if