Setting SWF file association with Duti

Kennedy
New Contributor II

Hi all,

I have searched high and low without too many results.

Basically I'm trying to set the file association for .swf files to the Adobe Flash Viewer application, rather than Safari.

Duti seems to be the go, but I'm unsure of the Bundle ID and UTI for the Adobe Flash Viewer application.

I was hoping someone out there had already achieved this.

Cheers,
Gav

2 REPLIES 2

mm2270
Legendary Contributor III

You can get the BundleIdentifier of any application using the following syntax-

defaults read /path/to/application/appname.app/Contents/Info CFBundleIdentifier

For the UTI, use mdls (command line Spotlight metadata listing) to read the list back from the SWF file.

mdls /path/to/file/file.swf -name kMDItemContentTypeTree

Kennedy
New Contributor II

Thanks for the reply - I'll try this out in the morning.

Cheers,
Gav