_mk_
-
Posts
163 -
Joined
-
Last visited
-
Days Won
5
Reputation Activity
-
_mk_ reacted to hzlzh in [Workflow Searcher] v1.2 released, search all the workflows from API
Workflow Searcher (v1.2 Released 2013.04.25)
[Download Link]
Tips: You can Submit & Share your workflows on the list -> [submit Workflows]
Github repo: https://github.com/hzlzh/Alfred-Workflows/
Search workflows from AlfredWorkflow.com List API
Get the download & released link of the workflow you search. API file Cache 6 minutes(360s) Offical API on JSON API Examples:
-
_mk_ reacted to trenchers1 in NEW: Spotlight Revamped
Spotlight Revamped
** Click LIKE (please!) and DOWNLOAD below **
Download HERE: http://tinyurl.com/nhsqfwj
-
_mk_ reacted to dfay in Case Converter (including Title Case) - now working on MacOS 12.3
Updated March 26, 2022 to use Python 3 for MacOS 12.3
Now featuring Universal Action triggers and hotkeys for the following five actions:
Uppercase
Lowercase
Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
All of these are set to Copy to Clipboard and Paste by default.
There's also a script filter cc which lets you view the query converted and select your choice (like the Code Case workflow).
You can also connect a hot key directly to the cc script filter directly to view the output options without typing the cc command and pasting your text.
Download:
https://www.dropbox.com/s/8fydkkef1t699et/Case Converter 3.alfredworkflow?dl=0
NB This is a new link and will download as a new workflow - you'll need to migrate any hotkeys and delete or disable the older version.
Here's the old Python 2 version in case anyone wants it:
https://www.dropbox.com/s/3k2lh21g5wnqrkp/Case Converter 2.alfredworkflow?dl=0
The original version is described below and still available, if anyone prefers it.
Workflow Version:
This workflow converts the case of the text on the clipboard.
http://dfay.fastmail.fm/alfred/Case%20Converter.alfredworkflow
There are two workflows which display the following five options:
Uppercase
Lowercase
Capitalize - capitalizes all words (e.g. Posting A New Topic In Share Your Workflows)
Title Case - capitalizes word except for "the", "in", "of" etc. according to American English title conventions (e.g. Posting a New Topic in Share Your Workflows)
Sentence Case - capitalizes only the first letter of the first word & converts the rest to lower case
The keyword case will transform the text on the clipboard without pasting the result.
The keyword casep will transform the text on the clipboard and paste (using Applescript System Events)
Hotkey Version:
Here is a version for use with hotkeys which will operate on the active selection in OS X and paste it with the converted text. These all have a half second delay prior to pasting, which is necessary for Applescript to be able to paste.
http://dfay.fastmail.fm/alfred/Case%20Hotkeys.alfredworkflow
Notes and Revision History:
These use the Title Case perl script found at https://raw.github.com/ap/titlecase/master/titlecase .
If you manage academic citations with BibDesk, Zotero, Papers, Mendeley, etc., Title Case conversion is especially useful for cleaning up downloaded citations.
Updated May 3, 2013 with nicer colored icon thanks to mjv ( http://www.alfredforum.com/user/4384-mjv/ )
Updated February 5, 2014 to handle Sentence Case and to add a second keyword to paste after conversion.
Updated May 20, 2014 with hotkeys
-
_mk_ reacted to mklement0 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!
-
_mk_ reacted to bpinto in Hatmaker: Workflows Installer & Updater
Hatmaker for Alfred - Alfred V2 Workflow
https://github.com/bpinto/hatmaker
Install & update alfred workflows straight from Alfred. Currently only alfredworkflow.com workflows are supported.
Download the workflow
Download the workflow below and open in Alfred.
Features
Currently only supports installing and updating. The rest will be added soon.
Install a workflow
install [workflow name]
List outdated workflows
outdated
Update a workflow
outdated > Select the outdated workflow
Open workflow homepage
Hold option key when installing or listing outdated workflows.
Credits
Everyone at this community.
-
_mk_ reacted to paultreny in Minimal Transparent Black and White
2013-04-24
Mirrored them on Droplr for you!
I'd suggest creating a free account to share them if you further modify the themes, as I will probably not be aware enough to keep them up-to-date!
_mk_ Minimal Black Transparent.alfredappearance
http://d.pr/f/QorX
_mk_ Minimal White Transparent.alfredappearance
http://d.pr/f/DCwz
-
_mk_ got a reaction from paultreny in Minimal Transparent Black and White
Minimal Black Transparent
Download
Minimal White Transparent
Download
-
_mk_ reacted to trenchers1 in NEW: Minimalist Efficiency v2
Minimalist Efficiency 2
Download HERE: http://tinyurl.com/ns3prou
** I appreciate feedback! Let me know what you think **
You can also check out: Minimalist Efficiency v1
-
_mk_ reacted to kerrydawson in OmniFocus Task Actions [Updated to 3.1]
I can’t get this to work except in a couple of things. It keeps switching to wanting to do a web search.
-
_mk_ got a reaction from hubertcampan in Bash script in workflow. Language of locals ? Accented characters ?
I am having a similar issue with german umlauts.
I was able so solve the issue with the normalise command line tool posted by Andrew in another topic.
You could add Andrews tool to your workflow and try to do the following:
QUERY=$(./normalise "{query}") DATE=$(echo "${QUERY}" | sed -e's/HAEC/CEST/g' -e's/HNEC/CET/g'); export LC_TIME="fr_FR.UTF-8"; date -jf "%d %B %Y %T %Z" "$DATE" "+%Y%m%d%H%M%S" -
_mk_ got a reaction from drking in OmniFocus Task Actions [Updated to 3.1]
Thanks to CrashPlan I was able to recover the essential parts of my profile very quickly. So I can release version 2.2 of the workflow with the new features that did not make it into 2.1.
Version 2.2
new task actionsadd/append note (thanks to uscmeche) change project change context hotkey supportSHIFT+CTRL+I - Show tasks in Inbox SHIFT+CTRL+D - Show tasks done today SHIFT+CTRL+P - Search for project SHIFT+CTRL+C - Search for context SHIFT+CTRL+V - Search for perspective Bugfixes
Download
-
_mk_ got a reaction from uscmeche in OmniFocus Task Actions [Updated to 3.1]
The clip.png was in there for that purpose. I'll include your addition in the next release.
I am still trying to display the note in the task details but that's giving me a hard time as the note is in rich text format.
-
_mk_ reacted to rwt in Set as icon to self
Although this seems like a complicated workflow, it isnt.
This is mainly for icon designers. When you create an ".icns" file for the mac (which contains 1024px, 512px, 256px, 32px and 16px versions) and save the file (with icon composer for instance), the file's icon stays on the normal ".icns" file. This means you can't copy the icon and paste it in another file/folder.
Some website tell you to open the .icns in preview, select and copy from there… THIS IS WRONG! it only copies the current resolution in preview, but not all versions. If you look at your finder icons, you will see they aren't the same when in list view or icon view! That's because in list view, icons are tiny and thus would not look great with a big resolution icon
File action on ".icns" files Keyword "selficon" for currently select file in finder
Download: http://d.pr/f/mPRy
-
_mk_ reacted to uscmeche in OmniFocus Task Actions [Updated to 3.1]
Absolutely love this! I expanded a use case as well (possibly it is only a feature I would request), but the ability to append notes. I am not a great coder, so it is cobbled together on your front end (I am sure someone could optimize my code). Below is the look (used your clip.png) and then added a line calling the applescript.
on run argv try my addNoteTask(item 1 of argv) on error errmsg return errmsg end try end run on addNoteTask(theTaskId) tell application "OmniFocus" tell default document set taskList to flattened tasks where id = theTaskId set theTask to item 1 of taskList set theNote to note of theTask --add in updated date set theUpdateDate to (current date) tell application "System Events" display dialog "What's Happening?" default answer "" set theNewText to (text returned of result) end tell set theText to return & "_______________________________________________________________________________________________________________________ #" & theUpdateDate & return & theNewText --append note to selection set theNote to theNote & theText set note of theTask to theNote set thisName to name of theTask end tell end tell --notify on success set successNotify to "You Added the text " & theNewText & " to the project " & thisName return successNotify end addNoteTask -
_mk_ reacted to RodgerWW in About This Mac
The most current version can now be found on GitHub with very special thanks to xilopaint for continuing and modernizing the original workflow.
GitHub Download.
Below are my older versions which I will now leave AS-IS for reference:
DOWNLOAD (For Alfred 2)
DOWNLOAD (For Alfred 3)
For those that need to see/copy info from the system.
Just open Alfred and type "about"
To RESET the workflow type "xabout"
FN+ENTER will copy the selected entry to the clipboard.
SHIFT+ENTER will paste selected entry to front most app.
CTRL+ENTER will take you to Apple's support website (based on your hardware).
OPT+ENTER will take you to Apple's hardware specifications website (based on your hardware).
January 11, 2018:
Updated the 'HardwareIcons.xml' to include all new hardware found/referenced for icons of machines. This brings the hardware list up to date as of macOS 10.13.2 (17C205)
This is just for Alfred 3 and the new filename is "AboutThisMac_2018.alfredworkflow", so make sure you are running the latest. This is a rather big update in terms of hardware icon support and I apologize for not doing it sooner folks!
September 26, 2017:
Added icon and updated script for macOS High Sierra.
February 1, 2017:
Added Macmini7,1 to xml for icon support.
August 15, 2016:
Added icon and updated script for macOS Sierra.
Made a new version for Alfred 3 removing older Operating Systems to fall in line with what Alfred 3 supports.
I am leaving the Alfred 2 version alone for those who still want to use it, but, it does not support macOS Sierra.
June 3, 2014:
Added Yosemite Icon (also updated script) for those using the Developer Previews so the System Version line shows the correct image.
July 23, 2013:
Added Mavericks Icon (also updated script) for those using the Developer Previews so the System Version line shows the correct image.
July 9, 2013:
I found an error in a line of my workflow which on most systems is a lenient one, but on some results in the Human Readable Machine in line 1 of the results to simply not show up. The error also made the links to the support site and hardware specs site not function correctly. I have corrected this line in the workflow.
PLEASE NOTE: On SOME systems, and even on the current build of Mavericks, the plist file the workflow reads from is protected in a slightly different way. This means the permissions need to be changed on the plist. I have included the Terminal instructions in the 'readme' tab of the Workflow. To access this, load Alfred Preferences, Double Click on the Workflow in the left sidebar "About This Mac", and in the window that pops up, click the Readme tab ... and read!
May 16, 2013:
Added Model Identifier beside system name in top row. SO for MY system it now shows "iMac 27-inch, Mid 2011 (iMac12,2)"
April 17, 2013 :
Fixed a couple minor issues with incorrect selectors in the script. Serial number should show now, and 'GB' after memory size will show again.
Added a system check for those that have multiple computers accessing one workflow folder (thanks DJay for pointing out that not everyone has only one computer).
Removed randomUID generator for items, as the latest version of Alfred2 makes it possible to NOT have to specify unique IDs. SO, if you want an ordered list, please update Alfred to 2.0.3+
-
_mk_ reacted to bevesce in Find and paste unicode symbols - arrow, triangles, greek and more
Find and paste unicode symbols. I included a lot of them, like really a lot, over 20k I think, but for me workflow works pretty fast.
Symbol can be pasted as symbol (mh...), in html encoding, as python string and as unicode code point.
Download:
https://github.com/bevesce/unicode-symbols-search/raw/master/Symbols.alfredworkflow
Source:
https://github.com/bevesce/unicode-symbols-search
-
_mk_ reacted to JinnLynn in Another python module for alfred workflow
simple, easy, effective
Source at Github.com
Features:
Core: some functions to make building alfred workflow easier Feedback system: generate alfred feedback XML Config management: save and retrieve settings Cache management: save and retrieve cache data Storage: download file
Code Example:
>>> import alfred >>> alfred.bundleID() 'net.jeeker.awf.AppDig' >>> alfred.log('log message') # save log message to 'log.txt' in workflow's folder >>> alfred.exit('exit-message') exit-message >>> alfred.exitWithFeedback(title='exitWithFeedback') <items><item uid="net.jeeker.awf.AppDig.29008681"><icon>icon.png</icon><subtitle /><title>exitWithFeedback</title></item></items> >>> feedback = alfred.Feedback() >>> feedback.addItem(title='Feedback Title', subtitle='subtitle', autocomplete='subcmd', valid=False) >>> feedback.addItem(title='Feedback Title 2', subtitle='subtitle 2', arg='arg') >>> feedback.addItem(title='Feedback Title 3', subtitle='subtitle 3') >>> feedback.output() <items><item autocomplete="subcmd" uid="net.jeeker.awf.AppDig.11134445" valid="no"><icon>icon.png</icon><subtitle>subtitle</subtitle><title>Feedback Title</title></item><item arg="arg" uid="net.jeeker.awf.AppDig.20583908"><icon>icon.png</icon><subtitle>subtitle 2</subtitle><title>Feedback Title 2</title></item><item uid="net.jeeker.awf.AppDig.31032116"><icon>icon.png</icon><subtitle>subtitle 3</subtitle><title>Feedback Title 3</title></item></items> >>> alfred.config.set(username='JinnLynn', testkey='testvalue') >>> alfred.config.getAll() {u'username': u'JinnLynn', u'testkey': u'testvalue'} >>> alfred.config.get('username') u'JinnLynn' >>> alfred.config.delete('username') >>> alfred.config.getAll() {u'testkey': u'testvalue'} >>> alfred.cache.set('test-cache', {'cache-data':'test-data'}, expire=10) >>> alfred.cache.get('test-cache') {u'cache-data': u'test-data'} >>> alfred.cache.timeout('test-cache') 2.6863911151885986 >>> alfred.cache.get('test-cache') # expired return None >>> alfred.cache.timeout('test-cache') -1 >>> alfred.storage.getLocalIfExists('http://i.imgur.com/17lNrSX.png') # Non-existent >>> alfred.storage.getLocalIfExists('http://i.imgur.com/17lNrSX.png', download=True) '/tmp/net.jeeker.awf.AppDig/0fef92118c683242f9b6e2a40e1a54f5.png' >>> alfred.storage.batchDownload(['http://i.imgur.com/8pa4x95.png','http://i.imgur.com/PX03uFm.png']) >>> alfred.storage.getLocalIfExists('http://i.imgur.com/8pa4x95.png') '/tmp/net.jeeker.awf.AppDig/dc119234ccb1f8fea4064b9a83a2dd6b.png'
all my workflows are based on this module.
-
_mk_ got a reaction from drking in App Dig - track apps price
Great workflow. I used the iOS app until now and did not even notice that AppShopper also supports the Mac App Store. I think this will become on of my most used workflows.
-
_mk_ reacted to JinnLynn in App Dig - track apps price
A simple way for you to track all apps price, work with AppShopper.
Download & Source Instructions
2013-04-18 Update:
Now you can change Country/Currency, includes all 91 countries. keyword: 'app change-country' More search type 2013-04-28 Update:
Fixed `Search app for iphone` error. Open iTunes Store link or AppShopper link
-
_mk_ reacted to obstschale in NSC - Number System Converter
NSC
Workflow to convert numbers into other based systems.
As a computer scientist student I deal everyday with binary, octal, hex and decimal numbers. Therefore I built this workflow with PHP for Alfred 1 and now I rebuilt it with Python for Alfred 2.
Usage:
5 different keywords are used:
decimal binary octal hex convert The first 4 act similar. You type the keyword (base of your number) and the number you want to convert. Alfred will show you the same number in the other 3 systems. You can select one of them and copied to your clipboard.
To convert from or into another system beside these four, you use the keyword convert. Then you type your number, the base of your number and the base of the destination. NSC will display the decimal notation and the new number.
To simplify this use the simple frase: "convert number 42 from with base 6 into base 4"
Changelog
can be found on GitHub: Changelog
Download
latest build: NSC Alfred Extension
Requires: non
Supports Alleyoop 2
Download | GitHub | README
_mk_ made a bash version of NSC. It can be found at GitHub.
-
_mk_ got a reaction from stouty in Bash workflow handler
Bash Workflow Handler
As my OmniFocus workflow does most of its work in the shell, I created a bash workflow handler to reduce the overhead when creating feedback xml and dealing with preferences.
Download
Download it from GitHub and put it into your workflow directory.
Usage
Import handler into your script
. workflowHandler.sh
Create feedback XML
# create feedback entries addResult "uid" "arg" "title" "subtitle" "icon" "valid" "autocomplete" # get feedback xml getXMLResults
Get BundleID
BUNDLEID="$(getBundeId)"
Get data dir
DATADIR=$(getDataDir)
Get cache dir
CACHEDIR=$(CACHEDIR)
Store preferences
# store volatile setPref "key" "value" 0 # store non-volatile setPref "key" "value" 1
Read preferences
# read volatile pref MYVAR=$(getPref "key" 0) # read non-volatike pref MYVAR=$(getPref "key" 1) -
-
_mk_ got a reaction from vdesabou in Bash workflow handler
Bash Workflow Handler
As my OmniFocus workflow does most of its work in the shell, I created a bash workflow handler to reduce the overhead when creating feedback xml and dealing with preferences.
Download
Download it from GitHub and put it into your workflow directory.
Usage
Import handler into your script
. workflowHandler.sh
Create feedback XML
# create feedback entries addResult "uid" "arg" "title" "subtitle" "icon" "valid" "autocomplete" # get feedback xml getXMLResults
Get BundleID
BUNDLEID="$(getBundeId)"
Get data dir
DATADIR=$(getDataDir)
Get cache dir
CACHEDIR=$(CACHEDIR)
Store preferences
# store volatile setPref "key" "value" 0 # store non-volatile setPref "key" "value" 1
Read preferences
# read volatile pref MYVAR=$(getPref "key" 0) # read non-volatike pref MYVAR=$(getPref "key" 1) -
_mk_ reacted to jmjeong in Browse and Manage alfred extension (alf)
Version 2.6 handles sub-directory correctly now and adds export.json file to ignore list.
-
_mk_ reacted to ClintonStrong in Debugging your workflows
Just wanted to share a few quick tips for debugging. If you're using /bin/bash to run a script, you can add "2> error.log" to output errors to a file. Example:
ruby script.rb "{query}" 2> error.log
All errors will then be logged to error.log in your workflow's folder.
Or if you want all output logged (perhaps so you can view the xml from a script filter), you could use tee:
ruby script.rb "{query}" 2>&1 | tee output.log
That'll log errors from stderr in addition to standard output. Note that PHP doesn't output to stderr, so if you're using PHP you'll have to check PHP's error log instead.
Also, if you have any formatting errors in a script filters' XML, Alfred will log it to Console.app.
Hope this helps, and feel free to share your own tips.