Skip to main content
Question

Adobe Reader download install script no longer working

  • October 30, 2020
  • 26 replies
  • 287 views

Show first post

26 replies

Forum|alt.badge.img+6
  • New Contributor
  • April 3, 2023

Great reccomendation

After analyzing the script Installomator uses. Gotta say, it's very clever. Essentially, it sequentially checks each download link from newest to oldest and grabs the newest link that returns 200 (i.e. it exists).
You may not install the newest version, but at least it will install a somewhat recent version that can be updated to the latest version.
Here is that section of code, for anyone interested:

 

versions=( $( curl -s https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html | grep -Eo "[0-9]+\\.[0-9]+\\.[0-9]+"| head -n 30) ) local version for version in $versions; do version="${version//.}" local httpstatus=$(curl -X HEAD -s "https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/${version}/AcroRdrDC_${version}_MUI.dmg" --write-out "%{http_code}") if [[ "${httpstatus}" == "200" ]]; then downloadURL="https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/${version}/AcroRdrDC_${version}_MUI.dmg" unset httpstatus break fi done