Hi Guys,
We've recently come across an issue where PDF files are no longer opened in Safari after installing Adobe Creative Cloud applications. To remedy this problem, I intend to delete the relevant PDF plugins, and have written the following AppleScript code.
-- Delete the PDF plugins for Safari that were
-- installed by the Adobe Creative Suite.
-- R. Grunwald, Mar 2015
--
set pdf_plugin1 to alias "Macintosh HD:Library:Internet Plug-Ins:AdobePDFViewer.plugin"
set pdf_plugin2 to alias "Macintosh HD:Library:Internet Plug-Ins:AdobePDFViewerNPAPI.plugin"
tell application "Finder"
delete pdf_plugin1
delete pdf_plugin2
end tell
My intention is to execute this code after our Adobe CCP package has been installed by a self-service policy. However, the problem that's emerged is that an authentication box appears asking for an administrator account. That's perfectly understandable, but my question is can AppleScript be executed by an admin user under the hood, much like Shell script is executed by "root", and thereby suppress the auth. dialog?
Any suggestions would be most appreciated.
Cheers,
Ron.