Software

Determine Default App for File Type from Command Line

[ad_1]

One quality of life improvement any developer can make for themselves is ensuring different file types open in the app they’re most proficient in. If you know me, you know I prefer accomplishing as much as possible from the command line. The duti utility allows users to determine default file type from command line.

The duti utility allows developers to query which app is the default for different file types. You can install duti with brew:

brew install duti

Once you have duti available, you can check on the default app for file type with the following command:

~ duti -x md
Xcode.app
/Applications/Xcode.app
com.apple.dt.Xcode

You can set the default app by using its package:

duti -s com.sublimetext.2 .js all

The duti utility is really great for determining and automating default app management!

  • From Webcam to Animated GIF: the Secret Behind chat.meatspac.es!
  • An Interview with Eric Meyer

    Your early CSS books were instrumental in pushing my love for front end technologies. What was it about CSS that you fell in love with and drove you to write about it? At first blush, it was the simplicity of it as compared to the table-and-spacer…

  • MooTools Overlay Plugin

    Overlays have become a big part of modern websites; we can probably attribute that to the numerous lightboxes that use them. I’ve found a ton of overlay code snippets out there but none of them satisfy my taste in code. Many of them are…

  • 5 More HTML5 APIs You Didn’t Know Existed

    The HTML5 revolution has provided us some awesome JavaScript and HTML APIs.  Some are APIs we knew we’ve needed for years, others are cutting edge mobile and desktop helpers.  Regardless of API strength or purpose, anything to help us better do our job is a…


[ad_2]
Source link
Show More

admin

Makes Noise is a blog where you can find all the juicy details on a variety of topics including health and fitness, technology, lifestyle, entertainment, love and relationships, beauty and makeup, sports and so much more. The blog is updated regularly to make sure you have all the latest and greatest information on the topics that matter most to you.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button