Re: [code][Textadept] Info.plist on macOS

From: Franck Guadagnini <>
Date: Thu, 24 Aug 2017 00:04:44 +0200

Hi Mitchell,

- "net.daringfireball.markdown" is not required, it's just common practice on macOS. I rebuilt the launch services database, and even for Markdown files for which TA is set as default opener, their UTI, inspected with "mdls" command, is still "net.daringfireball.markdown", which is defined in one or two other text editors' Info.plist on my computer. I don't know how macOS chooses which UTI to use, but anyway it doesn't prevent TA to open these files.
- "com.textadept.Java-source" on the contrary is a system-declared UTI (, <,> and applications are expected to use it; but, again, TA can still open java files anyway. (UTI is quite a confusing matter, and the documentation is sparse…)

Generally, TA showed itself in "open with…" context menu for .txt files as well as for every text files I tried. So it seems you don't have to complicate your plist generator!


Le 20 août 2017 à 23:08, Mitchell <> a écrit :

> Hi Franck,
> On Wed, 16 Aug 2017, Franck Guadagnini wrote:
>> Hi,
>> On macOS (10.12 at least), Textadept doesn’t show in the "open with…" context menu when you right click a .txt file. I’ve written a new Info.plist file that corrects that. See attached. Gathering bits from respectable sources, Apple’s own Xcode and TextEdit, and venerable BBEdit, I’ve updated the section "CFBundleDocumentTypes" to get rid of the deprecated key "CFBundleTypeExtensions". I use UTIs instead, which are the recommanded way since OSX 10.5. I've also added a section "UTImportedTypeDeclarations", which seems to correctly declare as source code the file types that Textadept is the only app to know (on my computer at least), and to properly register itself as their editor.
>> I've also replaced "CFBundleVersion" key by "CFBundleShortVersionString". The former is for build number, and can't contain spaces, reason why in the context menu and get info pane TA shows as "Textadept ()" (because of the space in "9.5 beta"). The latter is for deployed version number and can contain spaces.
>> Mitchell, after some testing by the community, you may be interesting in using this new Info.plist upstream?
> Please try the attached Info.plist file and ensure it works for you. I've incorporated your changes into my plist file generator, and there are a few slight differences between my generated file and your supplied file. I am curious if defining "net.daringfireball.markdown" is required to have Textadept register as a markdown editor. I am also curious if my registering of Java source files for example as "com.textadept.Java-source" interferes with the existing "" registration. (Ideally my plist generator would not have language-specific features, but just iterate over all of Textadept's supported languages and generate the same set of XML junk.)
> Cheers,
> Mitchell

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 23 Aug 2017 - 18:04:44 EDT

This archive was generated by hypermail 2.2.0 : Thu 24 Aug 2017 - 06:32:02 EDT