Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Reputation Activity

  1. Thanks
  2. Thanks
    mklement0 reacted to Andrew in Dictionary > Define a word functionality fails to open the relevant page in Dictionary.app when the search term includes an apostrophe [Fixed 4.0.3 b1091 pre-release]   
    @mklement0 interesting spot, thanks!
    It looks like a bug in Dictionary.app as if I type the following into Terminal, I get the same:
    open "dict://dunbar's number" The best I think I can do to fix this in Alfred is to strip single quotes from the input - I'll do this in the next build  
  3. Like
    mklement0 reacted to deanishe in Dictionary > Define a word functionality fails to open the relevant page in Dictionary.app when the search term includes an apostrophe [Fixed 4.0.3 b1091 pre-release]   
    This works fine, though (on High Sierra): open 'dict://dunbar%27s%20number'
    Look like you just need to properly encode the URL.
  4. Like
    mklement0 got a reaction from DJay in speak.awf - a TTS (Text-to-Speech) workflow for multilingual scenarios   
    The workflow comes with two distinct feature groups:   Speak the active application's text with a specific voice; useful for multilingual setups where you want to have text spoken in one of several languages on demand. For instance, you could have one global keyboard shortcut for speaking text in English, and another one for Spanish. Speak specified text with one or more voices, selectable by name(s) or language(s); useful for interactive experimentation with multiple voices, such as to contrast regional accents.   For details, see the repo.   Here's the direct download link to the most recent stable version (this link will remain current).
      However, I suggest installing via the npm registry, if you have Node.js installed - if not, consider installing it just to benefit from its great package manager, npm; try curl -L http://git.io/n-install | bash  ):     [sudo] npm install -g speak.awf The advantage of this installation method is twofold:
    Remembering only the package name is sufficient to install the workflow (again). More importantly: It's easy to update the workflow to its latest version: [sudo] npm update -g speak.awf If the latest version is already installed, no action is performed.
  5. Like
    mklement0 reacted to bogdansrc in Dash - Documentation for 80+ APIs   
    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. 
  6. Like
    mklement0 reacted to vitor in Copy/Paste objects in workflow editor   
    Right-click the one you want in the sidebar, and pick Duplicate.
  7. Like
    mklement0 got a reaction from DMaher in Call contact via iPhone (new Yosemite feature)   
    Great tip.
    Note that the 
    //  part is optional, 
    tel:{query}  will do.
    On a related note, 
    facetime:{query}  (audio+video) and
    facetime-audio:{query} (audio only) work as well.
    A caveat, though it may unique to my setup: among my contacts I found phone numbers with no-break spaces (Unicode 0xa0; UTF-8: 0xc2 0xa0) instead of regular spaces - these won't work.
  8. Like
    mklement0 reacted to Yoyontzin in Alfred as Text Expander   
    I have a file with abbreviation and desired expansions, for example for may LaTeX documents. I have it in Textmate and In there I can expand using this list. Do you think it is possible to make alfrd to read a list like this:
    ;a  \alpha
    ;b  \beta 
    ;thm  \begin{theorem} %| \end{theorem}
    ... ? 
    and not to have to do every single abbreviation by hand?
    For example I can export my TextExpander snippets in to a single document (a list). It would be perfect If I can just make Alfred to use the list to expand my snippets. 
  9. Like
    mklement0 reacted to vitor in Alfred as Text Expander   
    Going back to the original point of inserting ⇥, ↩, and others, it is fairly easy with applescript. Take into account, however, this will be like pressing the keys without any checking, so it can lead to undesirable results.

    As an example, if you want to fill your first name, press ⇥ to go to the next field, and fill in your last name, you could have a Run Script node using /usr/bin/osascript as the language, and write something like
    tell application "System Events" keystroke "<your_first_name>" key code 48 keystroke "<your_last_name>" end tell key code 48 is ⇥, naturally. Something like Key Codes will help you find other codes you might need.
  10. Like
    mklement0 reacted to ctwise in Call contact via iPhone (new Yosemite feature)   
    You can do it yourself right now. Preferences -> Features -> Contacts -- click on Phone and pick 'Pass to URL Scheme'. In the URL field, enter 'tel://{query}'. Now when you press enter on a contact phone number it'll open the call dialog. You _do_ have to press the Call button to initiate the call though.
  11. Like
    mklement0 reacted to MikeAlt in Option to remember last typed query for more than 5 minutes   
    I like this setting as well.  Found it under the Advanced tab.  You need to enable both:
    Store typed query history
    Show latest history if within 5 minutes

  12. Like
    mklement0 reacted to Florian in Option to remember last typed query for more than 5 minutes   
    try the up arrow
  13. Like
    mklement0 reacted to vrtcl1dvoshun in Add a version field for workflows   
    Need the ability to add a version field to keep track of workflow changes and prevent updates from wiping out user customizations.
    If not, then I suggest developers at least add their app's version to its name as follows: "My Alfred Workflow (2.3)" which would remain consistent with the way Apple denotes different app versions. The version number should show up in both the filename of the workflow and in the name that is seen in Alfred's workflow preference pane.
  14. Like
    mklement0 reacted to deanishe in Add a version field for workflows   
    There's Packal, which is the de facto central repository for workflows. Shawn, the creator, is also working on a workflow to automatically update any workflows that you've installed from Packal (you have to submit a version number when you upload one to Packal). For the time being, I wrote a workflow to search Packal, which can also tell you which of your workflows are updateable.
    Ideally, Packal would be "advertised" more clearly on this board: a forum is really not a great platform for showcasing/discovering workflows (or collecting tutorials/documentation etc.).
  15. Like
    mklement0 reacted to ClintonStrong in Search Safari and Chrome Tabs [Updated Feb 8, 2014]   
    Search your tabs in Safari, Chrome, Chromium, Chrome Canary, and Webkit.

    When you action a result, it'll bring your browser to the front and switch to the selected tab. You can also close a tab by holding down alt when actioning a result.

    Download from Packal
    Updated Feb 8, 2014: Made it more resilient to an AppleScript error that could cause a blank output.
    Update #2, Feb 1, 2014: Fixed regression with searching. You should be able to search anchored by words (and capital letters in CamelCase words) again.
    Updated Feb 1, 2014: Rewrote the workflow. It now supports copying the URL of a tab, viewing a tab in QuickLook, and closing a tab with a modifier key.
    Updated Oct 11, 2013: Fixed issue with improper string encoding in Mavericks and Ruby 2.0 breaking the workflow.
    Updated Oct 9, 2013: Updated for Mavericks and Ruby 2.0.0. Removed thumbnails for now (beta versions of Safari don't seem to generate them anymore). Fixed some issues where the proper window wouldn't always focus correctly.
    Updated May 4, 2013: Experimental support for webpage thumbnails. Prevent launching browsers when WebKit is open.

    Updated Mar 26, 2013: (Hopefully) prevent launching browsers when it's not supposed to, and fix an issue with it not detecting WebKit.
  16. Like
    mklement0 got a reaction from chadv in Encoding issue   
    @chadv: Thanks for investigating and letting me know. Shame indeed, especially given that it hasn't been fixed in OS X 10.10 (the current public beta), which still ships with the same libiconv version (1.11).
    Curiously, 3- and 6-byte UTF8 emoji sequences as well as those 7-byte sequences that start with an ASCII char. byte (followed by combining characters) do work properly, but the majority of emoji (4-byte sequences) do not.
    On a side note, Terminal.app, while *rendering* emoji as expected, doesn't handle them properly in terms of cursor placement, printing the next character, and backspacing. 6-, 7-, 8-byte sequences seemingly involve combining characters, and are misinterpreted as comprising *2 or 3* characters, which has all sorts of unwanted side effects.
  17. Like
    mklement0 reacted to rice.shawn in Packal Updater   
    Finally here: Update your workflows with the Packal Updater.
    There is a longer explanation on the Packal page, so just check that one out, but I'll give you a short version here.
    The updater will upgrade any workflows that you have downloaded from Packal when an upgrade becomes available. It cannot upgrade any workflows that you did not download from Packal.
    When you launch it the first time, head over to the settings and configure how you want it to work. If you write workflows, then put in the name that you most often use. If you have a Packal account, put that name in there too. If you do those two things, then the updater won't try to upgrade your workflows. If there are workflows that you do not want to update if, say, you've modified them, then Blacklist them in the appropriate place, and the updater will ignore those workflows. 
    If you're running Mavericks (or, theoretically, Yosemite), then you'll have access to a nifty little GUI. If you're not, then, well, you don't, but you can still configure and do everything from Alfred itself. See the animated screenshots below for a quick demo of both.
    Three other notes:
    (1) The Updater Workflow uses the Alfred Bundler, which has been receiving an overhaul. If you run into some trouble with it, then just go ahead and delete your bundler directory, and it will re-install itself. A newer version of the bundler should be coming out soon that will make some great fixes, but you needn't worry about that because the bundler will update itself.
    (2) The Updater can send information to Packal about what workflows you have installed, enabled, and downloaded from Packal. It'll try to do this once a week if you do not disable the feature. It is anonymous reporting in that there is no way for me to figure out who you are from the data. Here's the command that I use to generate your unique identifier:
    ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { split($0, line, "\""); printf("%s\n", line[4]); }' If you just plug that into a terminal, then you'll probably see something akin to:
    (3) The Updater keeps backups of the workflows you've updated, so, if anything breaks, just open the backups folder and double-click the most recent version of the workflow to restore.
    Anyway, go grab it from Packal, and start updating.
    (And, as always, I think I've removed all the bugs, but, as I release this into the wild, I expect to find more. Just report them here.)
    Lastly, the updater can update itself according to my tests. Cool, right?
    Demo — Packal "GUI"

    Demo — Packal Script Filter Interface

  18. Like
    mklement0 reacted to deanishe in Packal: Workflow and Theme Repository   
    For a bit of fun (and to test a Workflow library I'm working on), I made a Workflow to search Packal.

    You can get the Workflow here. The very brief source code is here.

    It uses the manifest.xml file exported to Packal's GitHub repo, so the information available to the Workflow is very limited (e.g. no workflow URL and, alas, no tags). Hitting ENTER on a result will send you to Packal's search page, which should show you only one result: the Workflow you actioned.

    As I say, it's just a bit of fun, so don't be asking for any funky features (though I'd happily add tag search and a proper URL if they're added to the manifest file, hint hint Shawn  ).
  19. Like
    mklement0 reacted to milan in Toggle Wifi workflow   
    A workflow for toggling Wifi on and off.
    Get it at http://www.packal.org/workflow/toggle-wifi
    Report bugs (unlikely to impossible) here.
  20. Like
    mklement0 got a reaction from chadv in Alfred 2.0.3 doesn't respect the user locale in bash scripts, unexpected encoding   
    Bash scripts launched by Alfred in the context of workflows don't respect the OS X user's locale and instead default to the generic "C" locale.
    Alfred should use the same locale that is used when a user starts an interactive shell in Terminal.app
    (For instance, running locale in Terminal on my US-English system returns:
    LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL= )   To verify the problem, use the following test workflow: download and install https://dl.dropboxusercontent.com/u/10047483/localetest.alfredworkflow type localetest into Alfred, which will display the effective locale in large type   To work around the problem, use the following at the beginning of your script:  
    export LANG="$(defaults read -g AppleLocale).UTF-8"    Possibly related [update: NOT related - see below]: non-ANSI characters are currently encoded in unexpected ways:   In normal UTF-8 encoding, "ü" should be passed in (via {query}) as the following multi-byte sequence: expected: 0xc3 0xbc instead, Alfred currently passes: 0x75  0xcc  0x88   - 3(!) bytes
  21. Like
    mklement0 got a reaction from chadv in Encoding issue   
    @Andrew's normalise utility works great, but I've since found that there is an alternative using the standard utility iconv with the (somewhat obscurely named)  UTF8-MAC encoding scheme:
    Note: The following examples use bash.
    iconv expects its input via a filename or stdin.
    Applied to the example above:
      # Converts NFD form of 'й' to NFC form
    iconv -f UTF8-MAC <<<'й'
    Some background:
    The following examples use input string 'ü'
    in NFC form, $'\xc3\xbc' - i.e., bytes 0xC3 0xBC, which is the UTF8 encoding of Unicode codepoint 0xFC in NFD form, $'u\xcc\x88' - i.e., a u - the base character - followed by bytes 0xCC 0x88, which is the UTF8 encoding of Unicode codepoint 0x308, the so-called combining diaeresis (¨). to demonstrate converting; note that in Terminal the result will always appear as ü - pipe to hexdump -C, for instance, to see the byte values.
      # NFC -> NFD
    iconv -t UTF8-MAC <<<$'\xc3\xbc' # -> $'u\xcc\x88'

      # NFD -> NFC
    iconv -f UTF8-MAC <<<$'u\xcc\x88' # -> $'\xc3\xbc'
    These conversions are safe to use in that if the input string is already in the target format, it is left as is. 
  22. Like
    mklement0 got a reaction from designandsuch in Workflow: Units - convert currency length temperature weight and more   
    > That's what computers work with
    Not consistently: OS X has reported base-10 numbers with respect to drive capacity (in line with manufacturers' specs.) since Snow Leopard (10.6).
    Confusion exists, but it can be avoided by using distinct unit names for the base-10 and base-2 definitions:
    GB (gigabyte)= base 10 = 10 ^ 9 GiB (gibibyte [sic]) = base 2 = 2 ^ 30 (analogous distinction for KB/KiB, ...)
    This distinction was adopted by the IEC (International Electrotechnical Commission) and "the IEC Standard had been adopted by the IEEE, EU, and NIST."
    Source: https://en.wikipedia.org/wiki/Gigabyte
  23. Like
    mklement0 got a reaction from mannieschumpert in Better Escaping   
    +1. (Sadly, this problem has been around a long time and only recently, after a long period of languishing, has received a bit of attention with the added option of escaping backslashes.)
    In particular, a single, aggregate option to escape the entire query for use in bash would be great.
    As of Alfred 2.0.3, one has to jump through the following hoops to achieve that:
    Opt to escape ONLY the following characters in Alfred:Backquotes Double Quotes Backslashes Dollars Use double-quoting to refer to query: "{query}"  
    Incidentally, if you want to play interactively with how the shell escapes strings, use: 
      printf '%q\n' 'inputString'. 
    Similarly, Applescript's "quoted form of" can be used to experiment:
      quoted form of "Honey\\(`sweetie`), I'm $HOME."
    Here's a piece of text that can serve as test input to see if it can be passed through without any modification (e.g., by echoing {query} and redirecting to a file): 
    It ain't "easy".
    a\b \\server
    a|b & more
    test: `ls`; also: $( ls )
    $HOME, sweet \$HOME - \a!
  24. Like
    mklement0 reacted to adayzdone in Voice Search   
    The Voice Search Workflow opens Google's search page in Chrome and activates the voice search. Upon a successful search, search terms are copied to the clipboard.

    Usage: Call the Voice Search workflow with the vs keyword.
    Version: 1.2
    Release date: 2013-05-16
    Author: John Day
    Version History:
    1.2 Opens new tab if current tab is not Google Search
    1.1 Copy Search Term to Clipboard
    1.0 Initial Release
    Google Chrome must be installed.
  25. Like
    mklement0 got a reaction from designandsuch in Workflow: Units - convert currency length temperature weight and more   
    Looks quite promising - thanks for the update.
  • Create New...