{"action":"created","issue":{"url":"https://api.github.com/repos/hluk/CopyQ/issues/477","repository_url":"https://api.github.com/repos/hluk/CopyQ","labels_url":"https://api.github.com/repos/hluk/CopyQ/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/hluk/CopyQ/issues/477/comments","events_url":"https://api.github.com/repos/hluk/CopyQ/issues/477/events","html_url":"https://github.com/hluk/CopyQ/issues/477","id":144233862,"number":477,"title":"bug: commands  - store copy time","user":{"login":"royharoush","id":8113056,"avatar_url":"https://avatars.githubusercontent.com/u/8113056?v=3","gravatar_id":"","url":"https://api.github.com/users/royharoush","html_url":"https://github.com/royharoush","followers_url":"https://api.github.com/users/royharoush/followers","following_url":"https://api.github.com/users/royharoush/following{/other_user}","gists_url":"https://api.github.com/users/royharoush/gists{/gist_id}","starred_url":"https://api.github.com/users/royharoush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royharoush/subscriptions","organizations_url":"https://api.github.com/users/royharoush/orgs","repos_url":"https://api.github.com/users/royharoush/repos","events_url":"https://api.github.com/users/royharoush/events{/privacy}","received_events_url":"https://api.github.com/users/royharoush/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T11:26:24Z","updated_at":"2016-03-31T07:05:48Z","closed_at":"2016-03-29T16:08:29Z","body":"Hi,\r\nnot sure if you will support global commands, but..\r\ni've tried using the default \"store copy time\" from both the faq and from the gist. \r\nboth give me the error shown below when copying.\r\n\r\n> \r\n> Command “copyq: var time = dateSt… setData(tagsMime, tags)”\r\n> Exit code: 1\r\n> CopyQ client ERROR: ReferenceError: Can't find variable: setData \r\n> --- backtrace --- \r\n> <anonymous>()@:3 \r\n> --- end backtrace --- \r\n\r\n\r\nthe command code is below. \r\n> ---\r\n> copyq: \r\n>     var time = dateString('yyyy-MM-dd hh:mm:ss')\r\n>     setData('application/x-copyq-user-copy-time', time)\r\n> \r\n>     var tagsMime = 'application/x-copyq-tags'\r\n>     var tags = str(data(tagsMime)) + ', ' + time\r\n>     setData(tagsMime, tags)\r\n> ---\r\n\r\n\r\nThanks ! \r\nRoy"},"comment":{"url":"https://api.github.com/repos/hluk/CopyQ/issues/comments/203790204","html_url":"https://github.com/hluk/CopyQ/issues/477#issuecomment-203790204","issue_url":"https://api.github.com/repos/hluk/CopyQ/issues/477","id":203790204,"user":{"login":"hluk","id":38054,"avatar_url":"https://avatars.githubusercontent.com/u/38054?v=3","gravatar_id":"","url":"https://api.github.com/users/hluk","html_url":"https://github.com/hluk","followers_url":"https://api.github.com/users/hluk/followers","following_url":"https://api.github.com/users/hluk/following{/other_user}","gists_url":"https://api.github.com/users/hluk/gists{/gist_id}","starred_url":"https://api.github.com/users/hluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hluk/subscriptions","organizations_url":"https://api.github.com/users/hluk/orgs","repos_url":"https://api.github.com/users/hluk/repos","events_url":"https://api.github.com/users/hluk/events{/privacy}","received_events_url":"https://api.github.com/users/hluk/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T07:05:48Z","updated_at":"2016-03-31T07:05:48Z","body":"Yes. If you are on Windows, you can use automatically build package from [here](https://ci.appveyor.com/project/hluk/copyq/build/artifacts)."}}