Open with Acrobat Pro - file properties

Hi

Hope someone can help on this.

In Finder, I can select a file and bring up the info window for the file, go to “Open with:” and set what application will open the file.

I would like to do this with applescript. When I do this:

tell application "Finder"
	get properties of file alias "Filename and path"
end tell

I get a load of properties, but nothing that seems to relate to what application will be the default application to open the file in question.

Anyone know where this info is stored and how to change it? I need a script to change a pdf file to open with Acrobat Pro, rather than Preview.

Cheers

Hi,

ask System Events


tell application "System Events"
	set defaultApplication to default application of file "Filename and path"
end tell

Thanks Stefan

Will try this out

A