+
kudusch.deRSSContact

Kudusch’s Trash

A blog about Life, the Universe and Everything…


Minifer for Alfred

minify

If you are a web developer, chances are, you stumbled over this piece of software. This minifier removes all unnecessary line breaks, comments and whitespace in your CSS or JS code.

To make it even simpler to use, I wrote an Alfred Workflow that minifies any CSS or JavaScript code in your clipboard.

Kudos to Matthias Mullie for creating Minify!

To use Minifer for Alfred, just download and install the Workflow.


Version 1.0:
-initial release

Tags: alfredalfred2cssjavascriptjsminifierminifyworkflow
February 28, 2016


Sass Helper for Alfred

Sass Alfred

I just discovered the truly awesome css language extension Sass and as usual I wanted to use it via Alfred App. So I glued together this little workflow:

Sass Helper

You can either convert the currently selected file in the Finder or paste Sass code to the workflow. Of cause you’ll have to install Sass on your machine to make this work. But that’s super easy.

So, have fun and take care.


Version 1.0:

-initial release

Tags: alfredalfred2csssassworkflow
November 26, 2014


Video Downloader for Alfred

This workflow lets you download videos or just the audio track of a video from YouTube, Vimeo, Vine and many more [1] to your computer.

The workflow uses youtube-dl to download the videos and ffmpeg to extract the audio. Both come bundled with the workflow so there’s no need to install anything else.

You just open Alfred, type…

video-dl (optional: video url)

… to download the video from the currently opened Safari tab or paste the URL to the video. Choose whether you want to download the video or just the audio from the URL and wait for your download to finish.

 

To install the workflow click the download link and add it to your existing workflows by double clicking the file. After that you’re ready to go, no extra configuration required.

Changelog:

Version 1.1
-bug fixes and new updated version of youtube-dl

Version 1.0
-initial release

Notes:

1: Full list of supported sites ()

September 22, 2014


Control Notification Center and Growl.app from Alfred.app

An Alfred v2 workflow to control Growl.app and Mountain Lion’s Notification Center.
You’ll need version +1.3 of Growl.

You can use the following keywords:

Show the current status of Growl and NotificationCenter : stat
Pause Growl and Notification Center : pause
Resume Growl and Notification Center : resume
Pause or resume Growl : growl
Pause or resume Notification Center : notificationcenter
Close all Growl notifications : close_growl
Close all NotificationCenter notifications : close_nc
Show Growl’s rollup : show
Hide Growl’s rollup : hide
Enable Growl’s incoming network : enable
Disable Growl’s incoming network : disable/
Restart Growl : restart

Just download this extension, install it and it’s ready to use.

If you don’t have Growl installed, you can just download the NotificationCenter only version of the workflow.

Download!
(Growl and NotificationCenter)

 

Download!
(NotificationCenter only)

This extension is written in AppleScript and uses the Shell.

If you experience any troubles with this, hit me on twitter.
Enjoy.

Changelog:
v.2.3:
-support for Mac OS X 10.10 Yosemite
-you can now download this workflow in two versions (one with growl, one without)
v.2.2:
-added support for Mac OS X 10.9 Mavericks’ new security features
v.2.1:
-added support for Mac OS X 10.9 Mavericks
v.2.0.0:
-now rewritten as an Alfred 2 workflow
-added option to close all pending NotificationCenter items

If you don’t have the Alfred Powerpack or you don’t want to use Alfred for this task, you can either extract the code from the workflow file or just ask me for the source.

March 16, 2013


Alfred.app ASCII converter

Update: This extension is also available as an Alfred 2 workflow.
You can download it here: ASCII Converter for Alfred 2


This is another little extension for the Alfred Powerpack

image
With this AppleScript extension you can convert a string of characters into their ASCII code values and vice versa.
You can convert from and to hexadecimal, binary and decimal.
The results will be displayed via Growl and copied to your clipboard.

image

ASCII converter

Download!

This extension is written in AppleScript and does not require an internet connection to work; the conversion is done inside the script and does not rely on an extern service.
It also uses Growl.app to notify you, when the script is done.

Enjoy.

If you experience any problem with this extension, found a bug or have feature request, hit me on twitter.

Changelog:
v.1
-new icon
-new keywords
-new features

June 11, 2012


Generate a random number with Alfred.app

This is a very simple extension for Alfred that generates a random number in a certain range and copies it to the clipboard.


Just download this extension, install it and it’s ready to use.

This extension is written in AppleScript and UNIX.

If you experience any troubles with this, hit me on twitter.
Enjoy.

November 14, 2011


Control Growl and Notification Center via Alfred.app

Update:
This extension is also available for Alfred 2.
http://blog.kudusch.de/post/45504491057

image

Just a small extension to control Growl.app and Mountain Lions Notification Center within
Alfred.
You’ll need version +1.3 of Growl.

You can use the following keywords:

Pause Growl + Notification Center : p/pause
Resume Growl + Notification Center : resume/r
Pause Growl : gr/growl
Pause or resume Notification Center : nc
Close all growl notifications : c/close
Shows the rollup : show/s
Hides the rollup : hide/h
Enables the incoming network : enable/e
Disables the incoming network : disable/d
Shows the current status of Growl : status/stat
Restarts Growl : restart/res
Settings : settings
Lists these commands : help/?

Or change them in the settings dialog:
image
Just download this extension, install it and it’s ready to use.

 

Download!

 
This extension is written in AppleScript.

If you experience any troubles with this, hit me on twitter.
Enjoy.

Changelog:
v1.3.1
-New icon, keyword and name
-The status dialog now shows Notification Center’s
-Resolved a bug where Notification Center wouldn’t react properly to the “pause” or “resume” keywords
-Moved the location for the settings plist (resolves issues with Alfred Sync)

v1.3
-Added Notifications Center support
-Settings

v1.2.2
-Added notification after commands

v1.2.1
-Minor bugfixes
-Changed help text

v1.2
-Added command to restart Growl

v1.1
-Added shorter keywords
-Added „status“-keyword
-Added an icon to the help and status windows

If you don’t have the Alfred Powerpack or you don’t want to use Alfred for this task, you can find the source code of the extension here: https://snipt.net/Kudusch/control-notification-center-and-growlapp/

November 7, 2011


Change the default language of an application with Alfred


I just finished my work on a new extension for the Alfred Powerpack.
This extension detects all available localizations for a specific application and let’s you choose one of them.


Then it changes the language of the application and restarts it.
It’s easy to use and could come in handy if you want to see another localizations of an application or if you don’t like the localizations in your language without changing your system’s default language.

Just download this extension, install it and it’s ready to use.

Download!

This extension is written in AppleScript and Unix.

If you experience any troubles with this, hit me on twitter.
Enjoy.

EDIT:
If you don’t have the Alfred Powerpack or you don’t want to use Alfred for this task, here is the source code of the extension.
http://snipt.net/Kudusch/change-language-for-specific-application-on-mac-osx

October 17, 2011


Convert ASCII-text to binary and vice versa via Alfred

Update:
I wrote a new and better version of this extension. You can find it here.

Here’s another fun thing to do with the Alfred Powerpack.

With this extension you are able to convert regular text to binary code. Or decode binary ASCII to human-readable text.

Just type “bin con ” into Alfred followed by either ” en” and the text you want to encode or ” de” and the text you want to decode.
This extension will do the conversion for you and copies the result to your clipboard.

BinToASCII

This extension is written in AppleScript and does not require an internet connection to work; the conversion is done inside the script and does not rely on an extern service.
It also uses growl to notify you, when the script is done.

Enjoy.

UPDATE:
The extension uses Growl v1.3.
If you use a earlier version of growl, change
“tell application “Growl”” to
“tell application “GrowlHelperApp”“

Tags: alfredapplescriptasciiBinaryconversiondevextensionPowerPack
September 14, 2011


Share current song on Twitter via Alfred


This extension is no longer supported.
I recommend this extension by David Ferguson.



With this extension you’ll be able to share the song you are currently listening to on Twitter via Alfred.

What you’ll need:

The Alfred Powerpack to install the extension.

console_tweet, a pretty useful ruby gem.

To install console_tweet:
Open Terminal and type:

$ gem install console_tweet

(You need Xcode or GCC to execute the gem install command.)
After installing type:

$ twitter setup

…and follow the instructions.

After the gem is ready, download the extension.

The extension is written in AppleScript and is localized in Englisch and German.
It uses growl to notify you about the tweet.

If you experience any issues with the extension, contact me via twitter.

Enjoy.

 

Tags: alfredapplescriptdevextensioniTunesTwitter
September 14, 2011