Skip to main content
Question

Setting SWF file association with Duti

  • May 19, 2014
  • 2 replies
  • 13 views

Forum|alt.badge.img+5

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

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • May 19, 2014

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

Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 19, 2014

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

Cheers,
Gav