{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2727","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2727/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2727/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2727/events","html_url":"https://github.com/Automattic/wp-calypso/pull/2727","id":128433291,"number":2727,"title":"Desktop App: command line actions - see video!","user":{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Desktop%20App","name":"Desktop App","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Author%20Reply","name":"[Status] Needs Author Reply","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-24T23:31:34Z","updated_at":"2016-02-01T20:27:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/2727","html_url":"https://github.com/Automattic/wp-calypso/pull/2727","diff_url":"https://github.com/Automattic/wp-calypso/pull/2727.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/2727.patch"},"body":"# Demo\r\n\r\n[\r\nClick below to see example of Chrome integration:\r\n![](https://cldup.com/B4SJ6G6EIj-2000x2000.png)\r\n](https://cloudup.com/cp255D2Jh53)\r\n\r\n# Motivation\r\nDuring Core Calypso Miami meetup we were discussing what would entice users more to install desktop app.\r\nIt can have some far ranging OS integrations. For me, in particular it would be awesome to:\r\n- Integrate it with OSX 'services' (  they work a bit like 'send to app' on iphone and intents on android : http://www.macworld.com/article/1163996/software-utilities/how-to-use-services-in-mac-os-x.html )\r\n- Launch image editing in the seperate app directly from our app\r\n- Generally tying it all together\r\n\r\n# This PR\r\nThis PR introduces rudimentary command line parameters handling for launching post editor and populating it.\r\nThis also basically can replace 'post template' functionality.\r\nIt is only a first step, but I would argue - very necessary.\r\nIn future, we need mime type detection and image upload, maybe detecting title from the first line of file, etc.\r\nAlso, We need to somehow handle passing arguments when the app is open.\r\n\r\n[There is a second PR in desktop repository which compliments this one.](https://github.com/Automattic/wp-desktop/pull/49)\r\n\r\n# How to test?\r\n- `Make run` to compile\r\n- Kill the app\r\n- Launch it with parameters: \r\n```\r\n./node-modules/.bin/electron . post --site=YOUR_SITE(ex: artpitesting116.wordpress.com) --title=\"I love WordPress\" --file=\"./LICENSE.md\r\n```\r\n\r\n# Future steps\r\n- on OSX proper services integration can be achieved via some native scripting, currently electron dies not support that, but we can definitely try to provide complimentary Automator workflows, I will look into installation process.\r\n\r\nCC @rralian @apeatling - if I remember correctly, you were kinda interested in this"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/178171742","html_url":"https://github.com/Automattic/wp-calypso/pull/2727#issuecomment-178171742","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2727","id":178171742,"user":{"login":"artpi","id":3775068,"avatar_url":"https://avatars.githubusercontent.com/u/3775068?v=3","gravatar_id":"","url":"https://api.github.com/users/artpi","html_url":"https://github.com/artpi","followers_url":"https://api.github.com/users/artpi/followers","following_url":"https://api.github.com/users/artpi/following{/other_user}","gists_url":"https://api.github.com/users/artpi/gists{/gist_id}","starred_url":"https://api.github.com/users/artpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artpi/subscriptions","organizations_url":"https://api.github.com/users/artpi/orgs","repos_url":"https://api.github.com/users/artpi/repos","events_url":"https://api.github.com/users/artpi/events{/privacy}","received_events_url":"https://api.github.com/users/artpi/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T20:27:48Z","updated_at":"2016-02-01T20:27:48Z","body":"@rralian: Sorry, no need to do all these cherry-picking any more, PR is rebased to proper changes in master and now works without these problems.\r\nUpdated 'testing' section"}}