JohnFraney.ca

Alfred Extensions

Or, how to add some awesome features to Alfred.app*

* Alfred Powerpack required

Download

Right-click (or Control-click) the 'Download now!' button, and save the .alfredextension file to your computer.

Installation

To install any of these extensions, just double-click them! If they download in .zip instead of .alfredextension format, drag and drop them onto Alfred's extensions window. For more information, check out Alfred's extensions page.

Appendertext

Action: Append the specified line of text to the end of the selected file in Finder

Keyword: append

Parameter: Text to be appended (e.g. I'm the last line!)

fromclip - Appends the specified line of text to the end of the selected file in Finder Download now!

bzipperarchive

Action: bzip the selected Finder file(s) (and tar if necessary)

Keyword: bzip

bzipper - bzips the selected Finder file(s) (and tars if necessary) Download now!

CharPalettechar

Action: Show the OS X character palette

Keyword: chars

chars - Shows the OS X character palette Download now!

CopyPathcopy

Action: Copies the path(s) of the selected finder item(s) to the clipboard (each item on its own line)

Keyword: copypath

copypath - Copies the selected Finder item's POSIX path

Updated October 14, 2011:

Download now!

Decoyduck

Action: Move the selected Finder item(s) to the chosen folder, leaving symlinks behind

Keyword: decoy

decoy - Moves the selected Finder item(s) to the chosen folder, leaving symlinks behind Download now!

FileFromClippaste

Action: Create a text file in the active Finder window and write the clipboard contents to that file. If there is no active Finder window, the file is created on the Desktop.

Keyword: fromclip

Parameter: Name of the file to be created, e.g. New File.txt

fromclip - Uses clipboard text to create the specified file in the active Finder window (or Desktop) Download now!

FileRenamernametag

Action: Uses regex find & replace in the name(s) of the selected Finder item(s).

Keyword: rename

Parameter: Regular expression to use on the file name(s), e.g. / /-/

filerenamer - Uses regex find & replace in the name(s) of the selected Finder item(s). Download now!

ReplaceInFilereplace

Action: Find and replace the specified text in the selected file. Also creates a backup of the original file (e.g., File.txt.old)

Keyword: replace

Parameter: The old text and the new text, separated by a "/" (e.g. apple pie/peach cobbler).

replaceinfile - Replaces given text in the selected file (old text/newtext) Download now!

Symlinkerterminal

Action: Create symbolic link(s) to the selected Finder items in the chosen folder

Keyword: symlink

symlinker - Creates symbolic link(s) to the selected Finder items in the chosen folder Download now!

TerminalHereterminal

Action: Open a Terminal with the frontmost Finder window as the working directory

Keyword: .

terminalhere - Opens a Terminal cd'd to the active Finder window Download now!

TerminalHere&&terminal

Action: Open a Terminal with the frontmost Finder window as the working directory and run the specified shell command

Keyword: &&

Parameter: The shell command to run (e.g., ls -a)

terminalhere&& - Opens a Terminal cd'd to the active Finder window and runs a command Download now!

Touchtouch - Creates a file in the active Finder window

Action: Create a blank file in the active Finder window

Keyword: touch

Parameter: Name of the file to be created (e.g. New File.txt)

touch Download now!

Updated October 14, 2011:

Uploaderftp

Action: Upload the selected Finder items to the specified folder in your webspace

Keyword: upload

Parameter: Folder where file(s) will be uploaded (e.g. css). To upload to your base directory, type ./

Configuration: Once you've installed the extension, you need to do a few quick things to get it working

  1. Get the FTP details for your webspace
  2. Replace [server], [username], and [password] with your FTP server, username, and password in the extension code (Alfred Preferences -> Extensions -> AppleScripts -> Uploader)
uploader - Upload the selected Finder items to the specified folder in your webspace Download now!