Jump to content

Search the Community

Showing results for tags 'javascript'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 18 results

  1. Hey, I've made my own translation workflow, as the existing ones which I could find didn't quite suit my needs or lacked in some aspects. Features: "Natural language" input Text auto correction, language auto correction Easy setup Configurable 100% free Preview: Dependencies: node.js >=7.6 Installation: Just run the following command in your terminal: $ npm i -g alfred-polyglot ...or (not recommended) you can download it directly from
  2. I have a js file that ends with msg = JSON.stringify(result) $.NSFileHandle.fileHandleWithStandardOutput.writeData( $.NSString.alloc.initWithString(String(msg)) .dataUsingEncoding($.NSUTF8StringEncoding) ) When I run the script from the terminal, it returns JSON that appears to be correctly formatted for Script Filter. $ ~/Documents/myscript.js list {"items":[{"uid":"1","title":"OptA","autocomplete":"OptA","subtitle":"OptA","arg":"1"},{"uid":"2","title":"OptB","autocomplete":"OptB","subtitle":"OptB","arg":"2"}]} In Alfred, I created a workflow t
  3. Hello,everybody! I write a javascript in alfred workflow, try to return the json and copy the result to clipboard at the same time. Could anybody tell me how to make it?Thanks~ function run(argv) { var temp = argv[0]; var num; num = temp * 1000; return JSON.stringify({items: [ {title: "The number is :", subtitle:num } ]}) //return num;//It dosn't work. }
  4. Ascii Search Alfred Workflow Quickly search through silly ascii faces and kaomoji (ノ◕ヮ◕)ノ*:・゚✧ (☞゚ヮ゚)☞ Direct Download Source code in case anyone's curious: https://github.com/iansinnott/asciilib-workflow --- If you want to add to the list of search results feel free! Community contributions would be great. There are currently only about 300 search results in total, which is surely not near all the awesome kaomoji out there. To add something check out this repo where the actual data lives: https://github.com/ia
  5. I'm starting out trying to make workflows and have to this point just managed to do web searches on a specific website by using Alfred's buildt inn function with the {query} option. This has worked out perfectly with sites that displays a HTTP address for a search, but how can i tackle pages that does not do this? ATM i'm trying to make a search for this page http://www.magnusli.no/ifirooms/. I tried to inspect the getRoom() function and stole a link from there include/get_room.php?id= and tried to use the {query} on that (with eg. 'Caml' as a search) and that worked to a point where
  6. Hi all, I'm trying to run a node.js script with Alfred, using this workaround: http://remy.bach.me.uk/blog/2014/03/writing-alfred-workflows-in-node/ It seems to work to get scripts to run without modules, but when I try to use the npm 'fast-csv' module, running the Alfred workflow with my script gives me the error "Cannot find the module 'fast-csv'". I've installed 'fast-csv' globally, so I'm not sure what else to try. (The script runs correctly when using the terminal.) Any ideas? Thanks
  7. I'm running a simple Alfred 3 workflow as I always have but the osascript portion of it is failing all the sudden. I've restarted my machine and of course Alfred 3. This is the error I get: [ERROR: action.script] osascript: no such component "JavaScript". I'm on OSX 10.12.5 Please advise, John
  8. StackOverflow Search for Alfred Search for answers on StackOverflow.com from Alfred 2. Download Get StackOverflow for Alfred from GitHub or Packal. Usage .so <query> — Search StackOverflow.com for <query>. See below for syntax. ↩ or ⌘+NUM — Open result in default browser ⌘+L — Show full question title in Alfred's Large Text window Query syntax By default, words in <query> will be search for in the title of posts. To specify a tag, prefix it with ., e.g. python will search for python in the post title, .python will search for the tag python. Results Answ
  9. Dash 2 (note: paid app) has just been released and it comes with a Alfred 2 Workflow. Dash lets users instantly search through documentation for 130+ APIs (ranging from HTML to Cocoa), for more information, check out Dash's webpage. All of the Dash-supported documentation sets are available for offline use. You can get the Dash workflow by installing Dash and going to Preferences > Integration > Alfred. Supported documentation as of the 2.0 release (documentation is constantly added so this list might go out of date): iOS, OS X, Man Pages, .NET Framework, ActionScript, Akk
  10. This is a simple workflow that will lookup reserved words in JavaScript. I found myself wanting a quick and simple way just to double-check, without having to link off to a site, or open another app, or anything other than a lightweight and quick review. Alfred is perfect for this. Invoke the workflow with jsReserved and either scroll through the list of reserved words or start simply typing a word to find a match. Available on Packal and Github. readme from gitub:
  11. Hello, I use a simple jxa for getting url from devonthink this is the code Im using function run(argv) { var q=argv[0].split('/'),q=q[q.length-1].split('.')[0]; var qq=Application('/Applications/DEVONthink Pro.app').getRecordWithUuid(q).url(); return qq } But it adds %0A in the end of every link - this is not a script bug - this is an alfred 3 bug osx 10.11.5, alfred v 3.0 [652]
  12. How would I return the output from javascript in a "Run Script" Action? The following code returns nothing. I tried in OS X Script Editor and it let me know that the "return" command can only be used inside a function. Is there something I'm missing? My code is below var query = "{query}"; var time = query.split(":"); var hours = time[0]; var minutes = time[1]; var seconds = time[2]; var secondsDecimal = (seconds / 60) return secondsDecimal
  13. Take a look at this link: https://t.co/Y9TDhanIA7 Yosemite supports using JavaScript instead of AppleScript as a scripting language. It's a complete replacement with all of the same features and integrations with Objective-C frameworks. You can run it with osascript, etc. Since I'm posting this in the feature suggestions you can guess what I'm requesting when Alfred is run on Yosemite. :-)
  14. I've been playing around with the new JavaScript for Automation in Yosemite, and I must say that I've been smitten. It so much more predictable than AppleScript. However, I'm a noob when it comes to scripting in general. So, on that note, does anyone know how I should be implementing JavaScript into my Alfred workflows? It won't run in a NSAppleScript action, nor will it run if I put in in a Run Script action with the language set to osascript. I was able to get it to work if I placed the script inside the workflow folder and ran it with a bash command, but then how do I grab the arguments i
  15. This workflow converts and replaces Javascript on your clipboard to Coffeescript. To use: Copy whatever Javascript you want converted (i.e. A Gruntfile config block, a Stackoverflow answer). Invoke Alfred and type 'JS2'. Wait for notification (could take a few seconds on first run). Hit paste wherever you want your Coffeescript. Requirements: Node and npm must be installed Download: Get the latest version by downloading the latest binary release from Github. Support: Please log any issues via Github issues. Thanks!
  16. for anyone who wants to create workflow with nodejs, I created a demo workflow to show how it can be done. https://github.com/marty-wang/Alfred-2-nodejs-workflow
  17. Hi, I am trying to trigger the instapaperizing action from Alfred. I seted up a hotkey, followed by either a run script action or an open page in browser, with this code inside, but nothing seams to work… any clue? Thanks! javascript:function%20iptxt()%7Bvar%20d%3Ddocument%3Btry%7Bif(!d.body)throw(0)%3Bwindow.location%3D%27http://www.instapaper.com/text%3Fu%3D%27%2BencodeURIComponent(d.location.href)%3B%7Dcatch(e)%7Balert(%27Please%20wait%20until%20the%20page%20has%20loaded.%27)%3B%7D%7Diptxt()%3Bvoid(0)
  • Create New...