moretension / duti

A command-line tool to select default applications for document types and URL schemes on Mac OS X
Other
1.41k stars 66 forks source link

Fluid-app generated web application for google docs mapping fails silently #3

Closed arubdesu closed 10 years ago

arubdesu commented 10 years ago

Google docs files, when synched down with the GoogleDrive app, have '.gsheet' extensions. I use Fluid.app to 'firewall-off' my cookies from the rest of my browsing experience, and so I can stay logged in to multiple gmail sessions. I want to be able to map the 'com.fluidapp.FluidApp.mycustomgmailfluidapp' app bundle to those .gsheet files, so I could trigger opening them from the finder, which by default goes to the regular Safari.app. I tried: duti -s com.fluidapp.FluidApp.mygmail /path/to/gdrive/folder/foo.gsheet all which doesn't return an error (but doesn't open the correct app,) and checking it with -x immediately afterwards has no effect

moretension commented 10 years ago

You have the right idea, but the presence of the "/" characters in the path are indications to duti to interpret that value as a MIME type. Try:

duti -s com.fluidapp.FluidApp.mygmail gsheet all