Jump to content

Search the Community

Showing results for tags 'javascript'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 16 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 the GitHub releases page if you don't want to use npm. Note that if you would like to use the npm way in the future you will have to uninstall the workflow completely first. You can also go through the easy, but optional setup. Have fun! GitHub
  2. deanishe

    Search StackOverflow

    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 Answered questions will be shown first in the list of results (and have a tick on their icon). Licensing, thanks This workflow is released under the MIT Licence. It is heavily based on Alfred-Workflow, also MIT-licensed.
  3. 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 the function returned the data for that search, but that was not what i intended to do. The request returned this: Wanted outcome: Any tips or input as to where to start or how to tackle an issue like this would be much appreciated. Thank you!
  4. 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
  5. 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
  6. 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/iansinnott/asciilib
  7. 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, Akka, Android, Angular.js, Ansible, Appcelerator Titanium, Arduino, Backbone.js, Bash, Boost, Bootstrap, Bourbon, C, C++, CakePHP, Cappuccino, Chai, Chef, Clojure, Cocos2D, Cocos2D-X, Cocos3D, CodeIgniter, CoffeeScript, ColdFusion, Common Lisp, Compass, Cordova, Corona, CSS, Django, Dojo Toolkit, Drupal, D3.js, Elixir, Emacs Lisp, Ember.js, Emmet.io, Erlang, Express.js, ExpressionEngine, ExtJS, Flask, Foundation (by Zurb), Git, GLib, Grails, Go, Groovy, Haml, Haskell, HTML, Jade, Java, JavaFX, JavaScript, Joomla, jQuery, jQuery Mobile, jQuery UI, Knockout.js, Kobold2D, Laravel, LaTeX, Less, Lua, Lo-Dash, Marionette.js, Meteor, MongoDB, Mono, MooTools, MySQL, Nginx, Node.js, Ocaml, OpenCV, OpenGL, Perl, PhoneGap, PHP, Play, PostgreSQL, Processing, Prototype.js, Puppet, Python, Qt, R, Redis, Ruby, Ruby on Rails, Sass, Scala, Sencha Touch, Smarty, Sparrow, Spring Framework, SproutCore, SQLite, Stylus, SVG, Symfony, Tcl/Tk, Twig, Twisted, TYPO3, Underscore.js, Unity 3D, Vagrant, Vim, VMware vSphere, WordPress, Xamarin, Xojo, XSLT, XUL, Yii, YUI, Zend Framework, Zepto.js.
  8. 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:
  9. 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]
  10. 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
  11. 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. :-)
  12. 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 in the script? Thanks!
  13. asimpson

    JS2Coffee Workflow

    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!
  14. 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
  15. 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)
×