Determine Default App for File Type from Command Line - Exotic Digital Access
  • Kangundo Road, Nairobi, Kenya
  • support@exoticdigitalaccess.co.ke
  • Opening Time : 07 AM - 10 PM
How to Internationalize Numbers with JavaScript

Determine Default App for File Type from Command Line


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!

  • Determine Default App for File Type from Command Line

    One major problem with creating UI components with the MooTools JavaScript framework is that there isn’t a great way of allowing customization of template and ease of node creation. As of today, there are two ways of creating: new Element Madness The first way to create UI-driven…

  • Determine Default App for File Type from Command Line
  • Determine Default App for File Type from Command Line

    A few days back I debuted a sweet article that made use of MooTools JavaScript and opacity to show focus on a specified element. Here’s how to accomplish that feat using jQuery. The jQuery JavaScript There you have it. Opacity is a very simple but effective…

  • Determine Default App for File Type from Command Line

    This post is a proof of concept post — the functionality is yet to be perfected. Picture this: you’ve found yourself on a website that uses horizontal scrolling instead of vertical scrolling. It’s an artistic site so you accept that the site scrolls left to right.



Source link

Leave a Reply