{"action":"created","issue":{"url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/5","repository_url":"https://api.github.com/repos/SimonTheLeg/deepwork","labels_url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/5/comments","events_url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/5/events","html_url":"https://github.com/SimonTheLeg/deepwork/issues/5","id":352287490,"node_id":"MDU6SXNzdWUzNTIyODc0OTA=","number":5,"title":"Trying to close Apps that don't exist, doesn't throw an error","user":{"login":"SimonTheLeg","id":20774623,"node_id":"MDQ6VXNlcjIwNzc0NjIz","avatar_url":"https://avatars0.githubusercontent.com/u/20774623?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonTheLeg","html_url":"https://github.com/SimonTheLeg","followers_url":"https://api.github.com/users/SimonTheLeg/followers","following_url":"https://api.github.com/users/SimonTheLeg/following{/other_user}","gists_url":"https://api.github.com/users/SimonTheLeg/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonTheLeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonTheLeg/subscriptions","organizations_url":"https://api.github.com/users/SimonTheLeg/orgs","repos_url":"https://api.github.com/users/SimonTheLeg/repos","events_url":"https://api.github.com/users/SimonTheLeg/events{/privacy}","received_events_url":"https://api.github.com/users/SimonTheLeg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"SimonTheLeg","id":20774623,"node_id":"MDQ6VXNlcjIwNzc0NjIz","avatar_url":"https://avatars0.githubusercontent.com/u/20774623?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonTheLeg","html_url":"https://github.com/SimonTheLeg","followers_url":"https://api.github.com/users/SimonTheLeg/followers","following_url":"https://api.github.com/users/SimonTheLeg/following{/other_user}","gists_url":"https://api.github.com/users/SimonTheLeg/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonTheLeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonTheLeg/subscriptions","organizations_url":"https://api.github.com/users/SimonTheLeg/orgs","repos_url":"https://api.github.com/users/SimonTheLeg/repos","events_url":"https://api.github.com/users/SimonTheLeg/events{/privacy}","received_events_url":"https://api.github.com/users/SimonTheLeg/received_events","type":"User","site_admin":false},"assignees":[{"login":"SimonTheLeg","id":20774623,"node_id":"MDQ6VXNlcjIwNzc0NjIz","avatar_url":"https://avatars0.githubusercontent.com/u/20774623?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonTheLeg","html_url":"https://github.com/SimonTheLeg","followers_url":"https://api.github.com/users/SimonTheLeg/followers","following_url":"https://api.github.com/users/SimonTheLeg/following{/other_user}","gists_url":"https://api.github.com/users/SimonTheLeg/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonTheLeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonTheLeg/subscriptions","organizations_url":"https://api.github.com/users/SimonTheLeg/orgs","repos_url":"https://api.github.com/users/SimonTheLeg/repos","events_url":"https://api.github.com/users/SimonTheLeg/events{/privacy}","received_events_url":"https://api.github.com/users/SimonTheLeg/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-20T20:38:03Z","updated_at":"2018-10-07T11:41:42Z","closed_at":null,"author_association":"OWNER","body":"config.json\r\n```json\r\n{\"affectedApps\":[\"Mail\",\"Calendar\",\"Rocket.Chat+\", \"does-not-exist\"]}\r\n```\r\n\r\n```shell\r\ndeepwork on\r\n\r\nSuccessfully opened/closed: 'Calendar'\r\nSuccessfully opened/closed: 'Mail'\r\nSuccessfully opened/closed: 'does-not-exist'\r\nSuccessfully opened/closed: 'Rocket.Chat+'\r\n```"},"comment":{"url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/comments/427646651","html_url":"https://github.com/SimonTheLeg/deepwork/issues/5#issuecomment-427646651","issue_url":"https://api.github.com/repos/SimonTheLeg/deepwork/issues/5","id":427646651,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY0NjY1MQ==","user":{"login":"SimonTheLeg","id":20774623,"node_id":"MDQ6VXNlcjIwNzc0NjIz","avatar_url":"https://avatars0.githubusercontent.com/u/20774623?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonTheLeg","html_url":"https://github.com/SimonTheLeg","followers_url":"https://api.github.com/users/SimonTheLeg/followers","following_url":"https://api.github.com/users/SimonTheLeg/following{/other_user}","gists_url":"https://api.github.com/users/SimonTheLeg/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonTheLeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonTheLeg/subscriptions","organizations_url":"https://api.github.com/users/SimonTheLeg/orgs","repos_url":"https://api.github.com/users/SimonTheLeg/repos","events_url":"https://api.github.com/users/SimonTheLeg/events{/privacy}","received_events_url":"https://api.github.com/users/SimonTheLeg/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T11:41:42Z","updated_at":"2018-10-07T11:41:42Z","author_association":"OWNER","body":"#8 solves the issue for opening apps\r\n\r\n```txt\r\nSuccessfully changed Do Not Disturb State\r\nCould not open app 'does-not-exist': 'Could not execute script: 33:45: execution error: Can’t get application \"does-not-exist\". (-1728) ; exit status 1'\r\nSuccessfully opened app: 'does-not-exist'\r\nSuccessfully opened app: 'Calendar'\r\nSuccessfully opened app: 'Messages'\r\n```\r\n\r\nbut issue still persists for closing\r\n\r\n```\r\nSuccessfully changed Do Not Disturb State\r\nSuccessfully closed app: 'Messages'\r\nSuccessfully closed app: 'Mail'\r\nSuccessfully closed app: 'Calendar'\r\nSuccessfully closed app: 'does-not-exist'\r\n```\r\n\r\nfurther investigation required, but it appears that osascript does not return an error when trying to close an app that does not exist"}}
{"actor":{"display_login":"SimonTheLeg"}}