It seems that the Adobe is currently running on these machines at the time the policy is triggered. But the way I see it is: Check to see if Reader DC is running If not, start script. Button 1(continue) quits Reader DC or button 2 (exit) quits script.I am not a script writer; but how would you go about adding something in the script to first check for and close the app, and then continue with the rest of the script? I have been going machine to machine using ARD to manually close Adobe Reader. I'll have to think about putting some time delay in it or looping it. @millersc, thank you for taking the time to help me out.
Something like rm -rf /applications/Adobe\ Reader.appdefaults write com.apple.
Launch Services LSHandlers -array-add '' The default handler update not be needed, because the DC version uses the same identifier as the non-DC version, not sure if deleting an app will revert this to the Preview app or not.
Newbie here, where do I find the actual Adobe Reader 11.0..09 update?
When I try to download it on my test machine, it just automatically installs through Safari.
I tried repairing the script myself, but Adobe has changed the versioning scheme to match the other CC products. if [ '`/usr/bin/uname -p`'="i386" -o '`/usr/bin/uname -p`'="x86_64" ]; then ## Get OS version and adjust for use with the URL string OSvers_URL=$( sw_vers -product Version | sed 's/[.]/_/g' ) ## Set the User Agent string for use with curl user Agent="Mozilla/5.0 (Macintosh; Intel Mac OS X $) Apple Web Kit/535.6.2 (KHTML, like Gecko) Version/5.2 Safari/535.6.2" # Get the latest version of Reader available from Adobe's About Reader page.
latestver=`` while [ -z "$latestver" ] do latestver=`/usr/bin/curl -s -L -A "$user Agent" https://get.adobe.com/reader/ | grep "Version" | /usr/bin/sed -e 's///g' | /usr/bin/awk ''` done echo "Latest Version is: $latestver" latestvernorm=`echo $ | sed -e 's/20//'` # Get the version number of the currently-installed Adobe Reader, if any.
@joe.farage I've been using your script for some time and I just wanted to say its awesome!
Recently however, I have seen some oddities...reference link from Adobe maybe changed? Submitting log to https://jss.teslamotors.com:8443/ Executing Policy Adobe Acrobat Reader DC...
I let it sit for a couple minutes, and then did a control c.