{"action":"created","issue":{"url":"https://api.github.com/repos/nteract/nteract/issues/324","repository_url":"https://api.github.com/repos/nteract/nteract","labels_url":"https://api.github.com/repos/nteract/nteract/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/nteract/nteract/issues/324/comments","events_url":"https://api.github.com/repos/nteract/nteract/issues/324/events","html_url":"https://github.com/nteract/nteract/pull/324","id":149344436,"number":324,"title":"[WIP] Registering documents on OS X","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T04:18:18Z","updated_at":"2016-04-19T04:22:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nteract/nteract/pulls/324","html_url":"https://github.com/nteract/nteract/pull/324","diff_url":"https://github.com/nteract/nteract/pull/324.diff","patch_url":"https://github.com/nteract/nteract/pull/324.patch"},"body":"Thus begins registering nteract as a handler for `*.ipynb`. Haven't gotten this to actually do the registration, though I think these are the values. Since I didn't open XCode to help me make this, I wrote this snippet of node:\r\n\r\n```javascript\r\nconst plist = require('plist');\r\n\r\nconst fs = require('fs');\r\n\r\nconst data = {\r\n  CFBbundleDocumentTypes: {\r\n    CFBundleTypeExtensions: ['ipynb'],\r\n    // CFBundleTypeIconFile ?\r\n    CFBundleTypeName: 'public.ipynb',\r\n    CFBundleTypeRole: 'Editor',\r\n    LSHandlerRank: 'Owner',\r\n    LSItemContentTypes: ['public.ipynb'],\r\n  },\r\n  UTImportedTypeDeclarations: {\r\n    UTTypeConformsTo: ['public.data'],\r\n    UTTypeIdentifier: 'public.ipynb',\r\n    UTTypeTagSpecification: {\r\n      'com.apple.ostype': 'IPYNB',\r\n      'public.filename-extension': ['ipynb'],\r\n      'public.mime-type': 'application/x-ipynb+json',\r\n    },\r\n  },\r\n};\r\n\r\nfs.writeFileSync('extend.plist', plist.build(data));\r\n```"},"comment":{"url":"https://api.github.com/repos/nteract/nteract/issues/comments/211723826","html_url":"https://github.com/nteract/nteract/pull/324#issuecomment-211723826","issue_url":"https://api.github.com/repos/nteract/nteract/issues/324","id":211723826,"user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T04:22:22Z","updated_at":"2016-04-19T04:22:22Z","body":"Hold off on merging, I think I got the top level type on CFBundle wrong as well as the name itself..."}}