Jump to content

ClintonStrong

Member
  • Content Count

    115
  • Joined

  • Last visited

  • Days Won

    7

Reputation Activity

  1. Like
    ClintonStrong got a reaction from M1m1s 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.
  2. Like
    ClintonStrong got a reaction from cands in Random Choice   
    I kept finding myself writing one-off scripts to feed my indecision and make a random choice. I wrote this workflow to automate my indecision.


    Download | Source
    Some of these keywords are duplicates of existing workflows, but I wanted to have all my RNGs in one workflow. Feel free to disable any keywords you don’t want or need.
    Oh, and you don’t have to worry about downloading a light or dark version of the workflow. The icons adjust automatically based on your theme as soon as you start using the workflow. See alfred-icons for more information about how this works.
    Usage
    choose
    Enter a comma separated list of values and pick one at random.


    roll
    Roll a die. Enter the number of sides, and have a random number chosen.
    rand
    At its simplest, rand just an alias of roll. For example, rand 20 and roll 20 both do the same thing. However, you can define a lower and upper limit with rand.
    Example usage:
    rand 20 rand 10-20 rand 50 70 rand 100..1000 flip Flip a coin: heads or tails.
    should
    Like flip, but with a yes or no response instead.
  3. Like
    ClintonStrong got a reaction from cands 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.
  4. Like
    ClintonStrong got a reaction from szeitlin in Search Safari and Chrome Tabs [Updated Feb 8, 2014]   
    Could you try this workflow and let me know if it works for you? Install it, type in "example", and hit enter. It should show a dialog saying "It works!".
     
    http://cl.ly/2j2E3D2H3b0F
     
    If that works for you, I'll work on changing the way the workflow makes AppleScript calls. Hopefully that'll fix it.
  5. Like
    ClintonStrong got a reaction from mklement0 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.
  6. Like
    ClintonStrong reacted to deanishe in Fuzzy Folders   
    Fuzzy search across folder subtrees.
     
    Update 10/09/2016:
    Added Alfred 3 support and removed Alfred 2 support. Added ability to self-update.  
    Update 10/04/2014:
    Added support for glob-style excludes. Unfortunately, these have to be added manually to the settings file at the moment. Update 05/04/2014:
    Now supports searching files as well as/instead of folders You can now adjust the minimum query length to improve search performance.

    This Workflow provides partial matching of path components, allowing you to drill down into your filesystem with a space-separated query. Each "word" of the query will be matched against the components of a directory or file's path, so a three-word query will only match at least three levels down from the specified root directory.

    You can use a File Action to intiate a fuzzy search on a folder or to assign a keyword to perform a fuzzy search on that folder.

    Download

    Get the Workflow from GitHub or Packal.

    Commands
    fuzzy — List your Fuzzy Folders ↩ — Edit Fuzzy Folder settings ⌘+↩ — Start a Fuzzy Folder search with the associated keyword ⌥+↩ — Delete the keyword–Fuzzy Folder combination fzyup — Recreate the Script Filters from your saved configuration (useful after an update) fzyhelp — Open the help file in your browser Settings

    You can specify these settings globally as defaults for all Fuzzy Folders or on a per-folder basis. For ad-hoc searches via the Fuzzy Search Here file action, the default settings always apply.

    Use keyword fuzzy to view and edit settings.
    Minimum query length — The last "word" of a query must be this long to trigger a search. Default is 1, but increase this number if the search is too slow. This is very often the case if you're searching a large subtree and/or also choose to search files. Search scope — Choose to search only for folders, files or both. Note: In most cases, searches including files are significantly slower. Consider increasing the minimum query length to speed up slow searches. File Actions
    Fuzzy Search Here — Fuzzy search this folder Add Fuzzy Folder — Set a keyword for this folder for faster fuzzy searching Search result actions
    ↩ — Open folder in Finder ⌘+↩ — Browse folder in Alfred Bugs, questions, feedback

    You can open an issue on GitHub, or post in this thread.

    Licensing, other stuff

    This Workflow is made available under the MIT Licence.

    The icon was made by Jono Hunt.

    It uses docopt and Alfred-Workflow.
  7. Like
    ClintonStrong reacted to deanishe in Debugger should show (live) workflow stderr output even when workflow exits cleanly   
    The new debugger is an extremely welcome addition, as Alfred's previous utter silence in the face of errors was very frustrating when trying to debug errors not obviously located within the workflow itself.
     
    However, I'd love to see its scope expanded somewhat to make it a useful workflow debugger as well as an Alfred one, so it's no longer necessary to also implement logging/debugging within workflows themselves (which is busywork that distracts from the important, fun and value-adding business of creating workflow functionality).
     
    Because Alfred currently only displays the workflow output if the workflow exits improperly, it's no help debugging non-fatal errors (mistakes in logic; exceptions logged but caught; incorrect, but still well-formed XML), so workflow authors will still need to bake their own logging solution to track down and squash such errors.
     
    If Alfred always displayed workflow output to stderr, regardless of exit status, this would save workflow developers a fair bit of coding busywork and/or time hand-holding less technically-inclined users through the somewhat arcane process of digging a log file out of ~/Library or running the workflow from Terminal.
     
    Showing the received XML in the case of an XML Parse Error would also be very helpful: the row and col numbers aren't particularly helpful without it.
     
  8. Like
    ClintonStrong reacted to Ritashugisha in OmniTube - Alfred ⇄ YouTube account automation   
    OmniTube(v4.3)
    Alfred ⇄ YouTube account automation

     
    Description

    SCRIPT FILTERS
    The script filters in OmniTube include:
    YouFeed lists all of your subscription's recent uploads. YouProfile shows basic information about your account and gives you access to your playlists. YouPopular lists the most popular videos of today. YouHistory shows your recent video views. YouVideo, YouChannel, an YouPlaylist allows you to search all of YouTube. By using the keyword you in Alfred the following results appear.

     
    When you use YouFeed OmniTube will quickly download the required user thumbnails and display your subscription's most recent uploads.


    The YouProfile command will give you a general overview of your YouTube account as well as allow you to view and edit any of your playlists.


    YouPopular will list out the most interesting videos posted that day.


    By using the YouHistory option, you can either view your recent video views or clear your history completely.

     

    ACTION MODIFIERS

    There are many default action modifiers within OmniTube.
     
    CTRL will usually allow you to add or remove a video to or from your Watch Later playlist. ALT will usually allow you to add or remove a video to or from your Favorites playlist. CMD will give you downloading options according to the highlighted selection. FN will copy the URL of the highlighted selection. SHIFT will allow you to save the video to a specific playlist on your account.  
    OmniTube v4.3 [Download]
    – Introduction –
  9. Like
    ClintonStrong got a reaction from DJay in QuickCalc [Updated Apr 17]   
    An alternative calculator for Alfred 2, supporting custom functions and variables, automatic parentheses matching, and percentages. It also supports k, m, and b (or thousand, million, and billion) as suffixes on a number.

    It's essentially a wrapper around bc with a few extras added in.

    Installation

    Simply download the workflow and open the file. You'll need to have the Powerpack to install workflows.
    Default functions

    I've tried to add support for most of the functions from Alfred's advanced calculator.

    Supported functions: sin, cos, tan, log, log2, ln, exp, abs, sqrt, asin, acos, atan, sinh, cosh,tanh, asinh, acosh, atanh, ceil, floor, round, trunc, rint, near, dtor, rtod, pow, logx, mod, min, max.

    Most of these should be similar to the implementation of Alfred's advanced calculator, but there are a few additions:
    pow(x, y) can be used to raise x to the power of y, without the integer limitations of the ^ operator in bc. logx(base, x) lets you get the log of a number with a defined base (log calculates with a base of 10 and log2 with a base of 2). mod(x, y) performs the modulo operation. dtor(d) and rtod® converts between degrees and radians (this is part of Alfred's calculator, but I'm documenting them here since googling them doesn't turn up useful results). Defining custom functions and variables

    After using the workflow at least once, you can find the custom functions/variables file at "~/Library/Application Support/Alfred 2/Workflow Data/com.clintonstrong.QuickCalc/custom.txt"

    Here's an example custom.txt file:
    define f2c(q) { return (q - 32) / 1.8}define c2f(q) { return 1.8 * q + 32}tax = 8.25%vat = 20% In this case, I just defined some functions to convert between celsius and fahrenheit, and set up some variables to use in calculations. It uses the syntax of GNU bc.

    Known bugs and limitations

    When using functions that take multiple arguments, use both a comma and a space to separate the arugments. This is necessary since commas and spaces can be used as thousands separators. For example, use min(5, 10) instead of min(5,10).

    Because percent signs % are used for percentages, you'll need to use the mod function for modulo. For example: mod(10, 3)evaluates to 1.

    Due to limitations with bc, the exponentiation operator (^ or **) doesn't allow numbers to be raised to the power of a float (a number with digits after the decimal place). To get around this, you can use the pow function. For example, pow(2, 2.5) evaluates to 5.6568.

    Percentages don't work as expected within functions. They still get converted (by dividing by 100), but it doesn't work correctly with addition and subtraction (100 + 10% evaluates to 100.10 rather than 110). Percentages should still work fine outside of functions.

    The workflow currently doesn't have support for detecting locales. It expects a period . to be used as a decimal point, with commas, underscores, or spaces as optional thousands separators.

    More info
    bc OS X Manual Page bc programming language on Wikipedia phodd's collection of functions, some of which are used here.  
    Changelog
     
    Apr 17, 2013: Added 'x' for multiplication. Bugfixes. Fix for Ruby 2.0.0/Mavericks.
  10. Like
    ClintonStrong got a reaction from DJay in Google Calculator Percentage xxx% of xxx   
    Hey there. I created a workflow that does this (and a few other things), called QuickCalc. It still needs some work (there are a few bugs lingering around), but it should be able to accomplish what you're asking for.   It doesn't automatically detect locales, so you'll need to manually set the thousands/decimal separators. In Alfred's preferences, find QuickCalc, double click the "qc" script filter, and set the script to the following:   export THOUSANDS_SEPARATOR='.' export DECIMAL_SEPARATOR=',' /usr/bin/ruby main.rb "{query}" I just added support for those separators today, so let me know if you find any issues with it.
     
    Oh, and one downside to setting the separators like this is that you'll have to re-enter them when you update the workflow. I'll try to find a better solution for that.
  11. Like
    ClintonStrong reacted to Tyler Eich in Faves - Formerly Favorite Folders   
    I took another stab at this deletion issue. Since David said the problem was related to the workflows.php class, I ported his code to Python (and added a few features).
     
    Download
     
    The workflow should 'just work'. If it doesn't let me know
     
    Changes:
    'Remove from Favorites' file action added More flexible filtering using 'fuzzy' search 'Reveal in Finder' action Automatic removal of items that no longer exist on your system Automatic removal of duplicate items New icons
  12. Like
    ClintonStrong got a reaction from thec13 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.
  13. Like
    ClintonStrong reacted to rice.shawn in Packal: Workflow and Theme Repository   
    I'm happy to announce that after months of development, I'm ready to make a new workflow and theme repository available to the public as an open beta: Packal. Workflows and themes are taggable and searchable. You can add in the icons, screenshots, long descriptions, and brief ones. There are many different ways to find whatever you need there. Since this is an initial announcement, there isn't much content there yet, except for the workflows and themes that a few kind testers uploaded.
     
    Themes are stored as a simple application URL, which means there are no files to download, but, instead, they import directly into Alfred2. Workflows are scanned for viruses after they are submitted but before they are made available publicly. Workflow authors can easily update their workflows just by editing the page and replacing the workflow file there.
     
    What is even better is that Packal has its own updater for workflows. So, you have the option to update any workflows that you have downloaded from Packal.
     
    I think that these are exciting developments for Alfred, and this sort of repository is what many people have been waiting for since these forums were created.
     
    One great advantage for distributing your workflows via Packal is that you do not need to maintain your own download links for your workflows anymore, so you won't need to worry about download limits on sharing services. Another advantage is that it will receive more visibility as it is a place where people can look for workflows and themes without having to page through the impressive number of posts in these forums.
     
    So, please, head over to Packal, browse what's there, and, very importantly, submit your own workflows and themes.
     
    --Shawn
  14. Like
    ClintonStrong reacted to MaximiliumM in Pokédex ( Look up Pokémon info, moves, abilities and items )   
    Pokédex
    Look up Pokémon info, moves, abilities and items. (v 2.4)
     
    Maybe many of you haven't seen my Pokédex Workflow yet, because I posted it as an improvement of withanx's Pokemondb Pokedex in that same topic. That's why I decided to start a new one.
     
     
    Requirements:
     
    - The complete experience requires the Super Effective! workflow. Please, check it out here.
     
     
    Features:   - Works offline.   - Pokémon Info:  + Types and Forms Example: "dex bulbasaur" Pro tip: Press Enter on the Pokémon type to use Super Effective! workflow and check the effectiveness of your attacks.   + Moves learnt by Level up Example: "dex bulbasaur lvl" Filter by Move type: "dex bulbasaur lvl grass"   + Moves learnt by TM Example: "dex bulbasaur tm" Filter by Move type: "dex bulbasaur tm grass"   + Moves learnt by HM Example: "dex bulbasaur hm" Filter by Move type: "dex bulbasaur hm normal"   + Egg Moves Example: "dex bulbasaur egg" Filter by Move type: "dex bulbasaur egg grass"   + How to evolve Example: "dex bulbasaur evo"   + Location Example: "dex pidgey location" Filter for more info: "dex pidgey location route"   + Base Stats: Example: "dex bulbasaur stats"   + Mega Stats: Example:  "dex mewtwo stats mega" "dex mewtwo stats mega y"   + Forms Stats: Example: "dex deoxys stats attack" "dex aegislash stats blade"   + Abilities: Example: "dex bulbasaur ability"   + Name in Other Languages: Example: "dex bulbasaur langs"   + Shiny: Example: "dex bulbasaur shiny"   - Moves Info: + Type, Category, Description, Power, Accuracy, PP, Probability Example: "move psychic" or "move tm10" or "move hm02"   + Filter Moves learnt by Level Up, Machine, Breeding or Tutor. Example:    "move false swipe tm" lists all Pokémon which learns False Swipe by Machine.    "move false swipe lvl" lists all Pokémon which learns False Swipe by Level Up.    "move false swipe egg" lists all Pokémon which learns False Swipe by Breeding.    "move false swipe tutor" lists all Pokémon which learns False Swipe by Tutor.   - Items Info: + Description Example: "item plate"   - Abilities Info: + Description Example: "ability pressure"   + Abilities by Pokémon: Example: "ability pressure pkm" lists all Pokémon with Pressure. Filter by Pokémon: "ability pressure pkm mewtwo"   - Conditions to Evolve: Example:  "evo leaf stone" lists all Pokémon that evolves using the Leaf Stone. "evo trade" lists all Pokémon that evolves when traded with someone. Hold CTRL to see more Pokémon Info Hold Option to see more Item Info   - Location's Pokémon list: Example: "location route 2" lists all Pokémon you can find in Route 2, plus method and rarity.   - Serebii, Pokemondb and Bulbapedia easy access: Open Serebii, Pokemondb or Bulbapedia for more info about Pokémon, Moves, Items and Abilities. Hold Option key: Pokemondb Hold CTRL key: Serebii Hold Function key: Bulbapedia Protip: You can set your favourite website as default using "set dex" keyword.   - Use Large Type to read full information or description: If the Move description or Pokémon description isn't being fully displayed, hold CMD and press Enter to see in Large Type.   - Use /help to check keyword options for each feature: Example: “dex /help” “move /help”   You can look up Pokémon by name (English, Japanese, German, French or Korean) or by national number.     Screenshots:                               Download Link: https://db.tt/a6bhugxY     Contact: @MaximiliumM   Any feedback is welcome.
  15. Like
    ClintonStrong reacted to Tyler Eich in Colors—convert color formats & access the OS X color panel   
    Update (v2.0.0):
    Much faster Added support for UIColor and NSColor Removed Alleyoop support in favor of Packal Download from Packal
  16. Like
    ClintonStrong got a reaction from xilopaint 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.
  17. Like
    ClintonStrong reacted to withanx in Alfred Pokédex   
    Thought I'd hop in and see if there are any pokémon fans lurking around in here.
     
    I made a Pokédex workflow for anyone interested.  It can look up pokémon by name, number, and even multiple at once.
     
    It opens tab(s) in your default browser to the pokemondb.net pokedex page.
     
    source:
    https://github.com/xac/alfredex
     
    or download workflow file:
    https://github.com/.../raw/master/pokedex.alfredworkflow
     
    Enjoy!
  18. Like
    ClintonStrong reacted to deanishe in SmartFolders: Browse and search the contents of your Saved Searches   
    SmartFolders: Browse and search the contents of your Saved Searches
     
    List all the Smart Folders/Saved Searches (same thing) on your system and drill down into their contents. Works in much the same way as Alfred's File Filter, but Smart Folders are also available outside Alfred and are a bit more flexible.
     
    For example, you can configure a Smart Folder to show all video/audio/image files without having to specify each different filetype individually. If you already use Smart Folders, this workflow can save you the work of re-implementing them as File Filters.
     
    What's more, you can exclude specific filetypes with a Smart Folder, which Alfred cannot do.
     

     
    Features
    View and search a list of all Saved Searches on your system View and search the contents of the Smart Folders Add your own searches to go straight to a specific Smart Folder with a custom keyword Download/Installation
     
    Grab your copy from here. Install in the usual fashion.
     
    Usage
    .sf — List all your Smart Folders .sf [part of name] — Search for a specific Smart Folder TAB — Browse/search within Smart Folder ENTER — Open Smart Folder ⌘+ENTER — Reveal Smart Folder in Finder (same effect as opening it) .sf FOLDER 〉 [part of name] — Search contents of Smart Folder FOLDER ENTER — Open selected file/folder in default application ⌘+ENTER — Reveal file/folder in Finder smartfolders-help — Open included help file You can also set up your own Script Filters with a custom keyword that go straight to the contents of a specific Saved Search. For example, I have a Saved Search called "TODO" which contains all files/folders tagged "todo". I have linked this Smart Folder to the keyword .todo in Alfred.
     
    See the included example and the help file for more details.
     
    More info
     
    There's a bit more info on the GitHub page and in the included help file (smartfolders-help).
     
    This workflow uses alfred.py by nikipore and docopt.
     
    All comments and feedback welcome.
     
    Changelog
     
    2013-11-04
    Now works on non-English Macs. Thanks to kopischke for finding the problem and the solution.
  19. Like
    ClintonStrong got a reaction from asendra 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.
  20. Like
    ClintonStrong got a reaction from David 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.
  21. Like
    ClintonStrong got a reaction from greenblue 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.
  22. Like
    ClintonStrong got a reaction from Carlos-Sz in QuickCalc [Updated Apr 17]   
    An alternative calculator for Alfred 2, supporting custom functions and variables, automatic parentheses matching, and percentages. It also supports k, m, and b (or thousand, million, and billion) as suffixes on a number.

    It's essentially a wrapper around bc with a few extras added in.

    Installation

    Simply download the workflow and open the file. You'll need to have the Powerpack to install workflows.
    Default functions

    I've tried to add support for most of the functions from Alfred's advanced calculator.

    Supported functions: sin, cos, tan, log, log2, ln, exp, abs, sqrt, asin, acos, atan, sinh, cosh,tanh, asinh, acosh, atanh, ceil, floor, round, trunc, rint, near, dtor, rtod, pow, logx, mod, min, max.

    Most of these should be similar to the implementation of Alfred's advanced calculator, but there are a few additions:
    pow(x, y) can be used to raise x to the power of y, without the integer limitations of the ^ operator in bc. logx(base, x) lets you get the log of a number with a defined base (log calculates with a base of 10 and log2 with a base of 2). mod(x, y) performs the modulo operation. dtor(d) and rtod® converts between degrees and radians (this is part of Alfred's calculator, but I'm documenting them here since googling them doesn't turn up useful results). Defining custom functions and variables

    After using the workflow at least once, you can find the custom functions/variables file at "~/Library/Application Support/Alfred 2/Workflow Data/com.clintonstrong.QuickCalc/custom.txt"

    Here's an example custom.txt file:
    define f2c(q) { return (q - 32) / 1.8}define c2f(q) { return 1.8 * q + 32}tax = 8.25%vat = 20% In this case, I just defined some functions to convert between celsius and fahrenheit, and set up some variables to use in calculations. It uses the syntax of GNU bc.

    Known bugs and limitations

    When using functions that take multiple arguments, use both a comma and a space to separate the arugments. This is necessary since commas and spaces can be used as thousands separators. For example, use min(5, 10) instead of min(5,10).

    Because percent signs % are used for percentages, you'll need to use the mod function for modulo. For example: mod(10, 3)evaluates to 1.

    Due to limitations with bc, the exponentiation operator (^ or **) doesn't allow numbers to be raised to the power of a float (a number with digits after the decimal place). To get around this, you can use the pow function. For example, pow(2, 2.5) evaluates to 5.6568.

    Percentages don't work as expected within functions. They still get converted (by dividing by 100), but it doesn't work correctly with addition and subtraction (100 + 10% evaluates to 100.10 rather than 110). Percentages should still work fine outside of functions.

    The workflow currently doesn't have support for detecting locales. It expects a period . to be used as a decimal point, with commas, underscores, or spaces as optional thousands separators.

    More info
    bc OS X Manual Page bc programming language on Wikipedia phodd's collection of functions, some of which are used here.  
    Changelog
     
    Apr 17, 2013: Added 'x' for multiplication. Bugfixes. Fix for Ruby 2.0.0/Mavericks.
  23. Like
    ClintonStrong got a reaction from JMoVS in Copy Files to Clipboard   
    This is a file action to copy one or more files to the clipboard, so you can paste them into another app. Sphardy requested this in the Beta Discussion forum, and I was also wanting a similar feature, so I went ahead and put this together.
     
    Updated Oct 26, 2013: Fix for Mavericks.
     
    Download
  24. Like
    ClintonStrong got a reaction from bevesce in Copy Files to Clipboard   
    This is a file action to copy one or more files to the clipboard, so you can paste them into another app. Sphardy requested this in the Beta Discussion forum, and I was also wanting a similar feature, so I went ahead and put this together.
     
    Updated Oct 26, 2013: Fix for Mavericks.
     
    Download
  25. Like
    ClintonStrong got a reaction from zhaowu 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.
×
×
  • Create New...