mccamel reacted to jaspalx in Thesaurus
Please don't laugh at the code, I write applescript by copy-tweaking!
Uses thesauras.altervista.org and ursanrazvan's applescript library.
I'll aim to post any updates on my tumblr http://jaspalsahota.tumblr.com/post/48358079872/thesaurus-workflow-for-alfredapp-2
Here's a screenshot
If anyone makes this nicer/cleaner etc. please let me know.
mccamel reacted to phyllisstein in OpenMeta Tags: Search, tag, open tagged files
Hello, fellow workers of flow! I've just thrown together a new workflow that searches and sets OpenMeta tags and opens files that have already been tagged. You can download it here! Just install it, then enter "tags" to display—after about a second—a list of all the tags currently set on your system. Select a tag and press Return to add it to the Finder selection's current tags, or keep typing. In which case the workflow will search through the tags on your system for tags containing and related to your query. (Note that "related to" really means "related to": if a document is tagged "alice" and "bob," searching for "bob" will turn up "alice" as related.) It'll also list documents tagged with your query. Select a tag and hit Return to tag the Finder selection (again), or choose a document and hit Return to open it. Hitting Tab while a tag is selected will autocomplete to that tag, making it a cinch to search for tagged documents.
In the updated version, also at the link above, holding down Ctrl while pressing Return will remove the chosen tag from the Finder selection or, if a file is highlighted in Alfred, clear all tags from that file. The updated version is also a bit greedier with the metadata attributes it sets, so that stale data won't be left behind for other apps to potentially use by mistake.
So, have fun, tag away, and enjoy using OpenMeta without paying $29 for Tags.app!
mccamel reacted to phyllisstein in Things: Search, Show, and Add Tasks
Another quickie from my own personal self, a Things workflow for adding tasks that also, thanks to Alfred's feedback system, searches them. I've been pestering Cultured Code to add this to the Quick Entry panel for ages, since I have a tendency to add one task five times (the number of incomplete "Watch and return Netflix DVDs" tasks I have floating around at any given time is absurd), but now Alfred will handle it for you! Just enter "things" to see a list of all projects, areas, and tasks; keep typing to start entering a task using the plug-in syntax (see below) while searching through pre-existing tasks. Select any item to show it in Things. You can also skip searching new items by adding a plus sign to your input (e.g., "things +Get this done").
The format for new tasks is as follows:
#tag1 #tag2 name [project/area] ::note >duedate …with duedate specified in the format MM/DD/YYYY.
Give it a try and let me know if anything else breaks!
mccamel reacted to zhaowu in Top Processes Based Memory or CPU Usage Workflow
Alfred 2 Top Process Workflow
The initial motive of this workflow is to avoid frequent visits to the Activity Monitor when the fan goes loud. Now it has been evolved with two major features: Suggestions are welcome. And Please go to http://zhaocai.github.com/alfred2-top-workflow/ for better view of the installation instruction. - 1) List/Kill Top Processes by Memory/CPU/IO Usage - 2) (working in progress) Get a glance of system status including internal battery, fan speed, CPU/GPU Temperature, bluetooth battery, disk capacity, etc. Usage 0. Show Help Just type -?, -h, or --help after the keyword to show help. 1. Top Processes A. Keywords: 1.) top: Show a mixed processes list based on top cpu/memory usage. 1. top -m, top --memory to show processes ranked by memory usage 2. top -c, top --cpu, to show processes ranked by cpu usage 3. top -i, top --io, to show processes ranked by io usage with callback from top io trace collector. Top IO requires [DTrace][Dtrace] and it would take a while to finish. The new callback design is to run the job in he background and post a notification (OSX 10.8+) using notification center. Click on the notification to show the result in alfred. Modifier Key - none : The default action is to list files opened by process ID - control : Kill the selected process - command : kill forcefully (kill -9) - alt : Nice (lower) the selected process's cpu priority - shift : Search web for process information 2.) kill: Filter process to kill. Modifier Key - none: The default action is to kill by process ID - command : kill forcefully (kill -9) 3.) lsof: List files opened by process id Modifier Key - none: The default action is to reveal file in Finder B. Filter by Query 1.) To search for process state, use :idle, :sleep, :stopped, :zombie, :uninterruptible, :runnable, etc. 2. Glance an Eye on your system #### A. Keywords: glance: Show system information including internal battery, bluetooth battery, disk capacity, etc. B. Change Display Order Activate Alfred Preferences → Advanced → Top Result Keyword Latching Hit Enter for the feedback item you wish to show up on the top. Installation Two ways are provided:
You can download the Top Processes.alfredworkflow and import to Alfred 2. This method is suitable forregular users.
You can git clone or fork this repository and use rake install and rake uninstall to install. Check rake -T for available tasks. This method create a symlink to the alfred workflow directory: "~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows". This method is suitable fordevelopers.
Troubleshooting 1. Does not work in Mac OSX 10.9 (Maverick) In OSX 10.9, the system ruby is upgraded to 2.0.0. You need to download the new version of this workflow which packs the ruby gems for 2.0.0 inside. If the downloaded version does not work, try 1.) open Terminal.app. If you use rvm or rbenv, switch to the system ruby. run cd "$HOME/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/me.zhaowu.top" && rake bundle:update 2. iotop causes mouse lagging This issue is not caused by this workflow but by [DTrace][DTrace]. The related system log message is IOHIDSystem cursor update overdue. Resending.. In my Macbook Pro, any [DTrace][DTrace] based program will introduce this issue including the mac built-in /usr/bin/iotop, and /Applications/Xcode.app/Contents/Applications/Instruments.app . I upgrade to OS X 10.9 and this issue is resolved. 3. Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8 Add the following contents to /etc/launchd.conf. Restart is required. setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8
mccamel reacted to xhinking in Github Alfred Worklfow
Github with Alfred
Search Github Repos Search Your Gists Search Your Starred Repos Get All Your Starred Repos Get All Your Gists Create A Gist Get API Requests Limit
Don't Forget set your github username by:
Github API limited 60 times per hour.
Feel free to fix the bug and improve this workflow!
mccamel reacted to Northdude in Add tasks to Things
Added a second keyword. So there are 2 possibilities now:
<the task itself> [project name/area name] ::<notes> >+<due date as days left>
If you use >x instead of >+x it will set the x of the next month as due date, e.g. >2 is 2 of April.
After pressing enter the quick entry panel pops up:
with the task and note filled in.
mccamel reacted to ClintonStrong in Search Safari and Chrome Tabs [Updated Feb 8, 2014]
Updated. You can download it here or in my original post.
Fixed an issue with tabs not showing up for Safari. Improved performance. You may still get some slowdown if you're running multiple browsers at the same time, but that'll be fixed in the next update. I'm working on a rewrite to further improve performance and add a few new features. It's not quite ready yet, but I'll try to get it out soon.
mccamel got a reaction from untidey in Add /usr/bin/zsh to "Language" options for workflows
Couldn't there also be an option to simply add your own entry to "Languages"? This would avoid cluttering the list with all of those different shells while allowing anyone who wanted to use one to do so.