diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..231ad50 Binary files /dev/null and b/icon.png differ diff --git a/info.plist b/info.plist new file mode 100644 index 0000000..8652427 --- /dev/null +++ b/info.plist @@ -0,0 +1,129 @@ + + + + + bundleid + + connections + + 1457D4B8-BA7B-4B07-BD21-8EB11C71BC74 + + + destinationuid + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 + modifiers + 0 + modifiersubtext + + + + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 + + + destinationuid + A46C50B0-7456-464C-B867-EF9934808B76 + modifiers + 0 + modifiersubtext + + + + + createdby + Adam Simpson + description + Converts copied JS to CoffeeScript and puts it on your clipboard + disabled + + name + JS2Coffee + objects + + + config + + argumenttype + 2 + keyword + js2 + subtext + Convert JS to CoffeeScript + text + JS2Coffee + withspace + + + type + alfred.workflow.input.keyword + uid + 1457D4B8-BA7B-4B07-BD21-8EB11C71BC74 + version + 0 + + + config + + lastpathcomponent + + onlyshowifquerypopulated + + output + 0 + removeextension + + sticky + + text + Paste your fresh Coffee! + title + JS2CoffeScript + + type + alfred.workflow.output.notification + uid + A46C50B0-7456-464C-B867-EF9934808B76 + version + 0 + + + config + + escaping + 4 + script + chmod 777 js2coffee.sh && ./js2coffee.sh + type + 5 + + type + alfred.workflow.action.script + uid + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 + version + 0 + + + readme + + uidata + + 1457D4B8-BA7B-4B07-BD21-8EB11C71BC74 + + ypos + 10 + + 87D2CF1D-75D9-4A7A-A6CF-FFA2C087BBB8 + + ypos + 140 + + A46C50B0-7456-464C-B867-EF9934808B76 + + ypos + 10 + + + webaddress + http://adamsimpson.net + + diff --git a/js2coffee.sh b/js2coffee.sh new file mode 100755 index 0000000..54e863c --- /dev/null +++ b/js2coffee.sh @@ -0,0 +1,6 @@ +PATH=$(npm bin):$PATH +mkdir -p alfredtmp && cd alfredtmp +pbpaste > tmp.js +js2coffee tmp.js > tmp.coffee +cat tmp.coffee | pbcopy +cd ../ && rm -r alfredtmp \ No newline at end of file