can I write tell Mac OS to open document with Acrobat family ???

Hi,

the faculty I work for really hate Apple’s Preview application.

I need to write an applescript that opens PDF files via file references from Filemaker

The problem is that certain mac users may have different versions of Adobe Acrobat / Acrobat Reader…

how can I write a script that will open a file with Adobe Acrobat 7.0 Standard, if they have it… and if not, then with…

Adobe Acrobat 7.0 Professional and if they don’t have it then with Adobe 7.0 Reader

etc.

and then at the end of this list… I could put Preview so that if all else fails it opens with Preview.

is this possible ? if so, could someone please share ? :slight_smile:

many thanks in advance.

tell app "Finder" to open file x using application file id "CARO"

Not sure, but I think the identifier is “CARO” for any Acrobat version since ancient times. So, I would write something as:

set identifiers to {"CARO", "prvw"} --> Acrobat, Preview, add more if you wish

set x to alias "path:to:file.pdf"

repeat with i in identifiers
	try --> will error if not found, and will try next identifier
		tell application "Finder" to open x using application file id i
		exit repeat
	end try
end repeat

Anyway, you can tell those haters they can just choose their favorite app in the Get Info window of any PDF doc, Open With, then Change all…