David Ferguson

RSS

Posts tagged with "alfredapp"

Quick start a new iMessage from Alfred using the new Messages app

I was looking around at the new Messages (beta) this morning and just because I’m curious, got to looking through the Info.plist. Yes, I’m that kind of nerd. :) Guess what I found… an iMessage URL scheme. I don’t know if this has been mentioned elsewhere yet..

So what does that mean? As of Alfred 1.1 you can set specific actions when selecting data in the Alfred contact viewer. So, if you want to quickly create an iMessage to a contact from Alfred, go to Preferences->Features->Address Book and on the Phone option, select Pass to URL Scheme, then set the scheme to “imessage:{query}”

Once you have that set, press your hotkey to bring up Alfred (mine is Cmd+Space), search for a contact, select one, press Enter, select the phone number that they can receive iMessages on, and press Enter.

If you use things like Google Talk, you can do the same thing with Google contacts. Go to Preferences->Features->Address Book and go to the Messaging tab. Find the Google Talk option, set the action to Pass to URL Scheme and set the URL to im:{query}.

There are also URLs for aim:, ichat:, and xmpp:.

EDIT:

This post is still valid for information purposes but it has come to my attention and been brought up by other users that the setup mentioned above doesn’t work for all phone numbers. I believe its numbers that have been added since the introduction of iCloud are formatted differently where the area code is in ()’s and there is a space between the area code and the prefix. When using the method described above on a phone number formatted that way, it doesn’t work because iMessage doesn’t remove all the escape characters. The easiest way to get around this was to simply make an extension that strips out the slashes used for escaping and to remove the space in the number.

The extension is available here. So, instead of setting the Address Book area to ‘Pass to URL Scheme’, import this extension and tell it to run this extension instead. The extension could also be used to allow you to quick enter a number if you chose. It currently doesn’t have a keyword set to it, but i believe if you just add a keyword (‘im’ for example) then you could enter into Alfred: ‘im 555-555-0123’ and it should create a new iMessage to that number. You don’t have to include the hyphens, I just added those to make it easier to read.

Jan 4

QuickSnip for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

QuickSnip for Alfred is a simple little extension that allows you to quickly create new snippets for Alfred using the main input window. The first word entered beyond the extension keyword, is the word that will be used for the Name and Keyword values for the snippet. Anything beyond that is the snippet.

The script attempts to find you sync folder if it exists and finds the snippets database there. If not sync folder is set (using local settings) then the script will fall back to using the local snippets database.

Example

With the extension command set to qs (for QuickSnip), type:

qs alfred alfredapp.com
qs df David Ferguson
qs diap Don is a punk - Where @binaryghost is the Don being referenced

These obviously add new snippets where the first word is the keyword, anything beyond is the snippet text. 

Download

Download QuickSnip for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Grazing Push for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

Grazing Push for Alfred will allow you to push a URL to any iDevice associated with your Grazing Push account. No more having to rely on bookmarklets and the site to push data to your iDevice. Just open up Alfred and send away.

Saving authentication credentials is accomplished by using @binaryghost's Authenticate app. I modified it to allow easy changing of the title, field labels, etc. I will probably drop a link to it soon as well. All credentials are stored in the keychain rather than in plaintext in the extension.

Authenticate.app may eventually makes its way to AlfredTweet as well so that I won’t have to redirect users to the Twitter web site to grab a pin number.

Download

Download Grazing Push for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Dec 6

Wolfram Alpha for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

The Wolfram Alpha for Alfred is an older extension that hasn’t really gotten a lot of attention but I think that is more because not everyone is aware of what all it can do. The Wolfram Alpha extension allows you to query Wolfram Alpha and will show the text result in Growl. It will also copy the text result to the clipboard for quick and easy use.

What all can Wolfram do?

  • Perform math (square root of 9)
  • General queries (What is the capital of Alabama)
  • Conversions (9 inches in cm)
  • Currency conversion (45 USD in GBP)
  • Food info (How many calories in one m&m)
  • Check the time (What time is it in Paris)
  • Weather (Whats the weather like in London)
  • Stock data (stock AAPL)
  • Education (Whats the population of New York City)
  • and so much more.. see more examples here

Download

IMPORTANT: The version of this extension available for download doesn’t work properly until you create a personal API key for Wolfram. When I published this, I passed it out with my own key, and Wolfram later killed it because of excessive use. Instructions on how to create your own AppID can be found here

Download Wolfram Alpha for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Dec 6

Adding support for Extension Updater to your extensions

So you want to add Extension Updater for Alfred support to your extension? Don’t worry, it’s easy.

Below is a sample update XML. Create an update.xml file in your extension folder. The VERSION value is the value of the current extension. The URL value should be a url to another xml file on a remote server. I suggest using Github for storing the remote XML and extension download, but it doesn’t have to be there.

update.xml example
<?xml version=”1.0” encoding=”ISO-8859-1”?>
<update>
<version>1.0</version>
<url>https://example.com/extensions/appcast.xml</url>
</update>

After you have the update.xml file created and available, use the same format to create the appcast.xml. This file name can be changed to whatever you would like, as long as the update.xml file has the correct url. The VERSION value will be the version number of the updated extension. Please only use x.x versioning numbers since values are converted to float for comparison. The URL value in the remote xml file will be a url that links directly to the .alfredextension file on the remote server. This is the url used to download the extension. There is one more optional value you can add to the remote xml and that is a ‘COMMENTS’. When using the Extension Updater, if using the ‘check’ command, users are displayed a list of all extensions that have updates, and the comment if it is available.

appcast.xml example
<?xml version=”1.0” encoding=”ISO-8859-1”?>
<update>
<version>1.0</version>
<url>https://example.com/extensions/extension.alfredextension</url>
<comments>This update contains many fixes!</comments>
</update>

Once you have your extension uploaded remotely and have the xml files in place, users should be able to query the remote site for the current version and download the extension via the url provided. I would recommend not including files that store settings and such in the new extensions, as they would overwrite previous ones when installed. 

Github Hosting

If using Github to host your extensions and xml files, make sure you use the raw urls. If you do not, the updater will not work properly.

More examples?

Download and install some of my extensions and look at the update.xml file included. Look at the content, the link to the remote version, check out the content of that file, etc. Several of my extensions support the Extension Updater already including AlfredTweet, Wunderlist for Alfred, and my Weather extension.

Dec 6

Extension Updater for Alfred

Extension Updater for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

Extension Updater for Alfred is a simple extension that does what the name implies, it allows you to easily update your Alfred extensions. The extensions you have installed must be compatible with this extension to work properly. I will be adding another post on my tumblr soon on details of how to add support into your extensions. Currently, this extension will only update shell script extensions. Maybe I’ll add support for Applescripts later. This extension also, cannot currently update itself because the script can’t download and overwrite itself while its running. I’m looking into a workaround for that.

I have tested this extension, but there still may be a few bugs (none that I know of), so if you find something, please report it.

How to use

Extension Updater for Alfred’s commands are pretty simple and self explanatory. Here they are:

  • update check - Check for new updates
  • update - Check for updates, download and install updates found
  • update help - Display the help menu
  • update version - Display the current version of this extension
  • update changelog - View extension changelog
  • update about - View about info for this extension

Download

Download Extension Updater for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Dec 2

Install jQuery for Alfred

Install jQuery for Alfred 

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

This is a basic extension (result action) that will allow you to select a folder (using file navigation in Alfred, or via search) and then download and install the latest version of jQuery from Google CDN.

Download

Download Install jQuery for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Dec 1

Install CodeIgniter action for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

This is a basic extension that will allow you to select a folder (using file navigation in Alfred, or via search) and then download and install the latest version of CodeIgniter.

Download

Download Install CodeIgniter action for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Dec 1

Install Wordpress action for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

This is a basic extension that will allow you to select a folder (using file navigation in Alfred, or via search) and then download and install the latest version of Wordpress.

Download

Download Install Wordpress action for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Weather for Alfred - Updated

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

Description

Weather for Alfred was completely rewritten. The primary source for gathering weather data before was through Gtwthr.com, another project of mine. Weather.com decided they would start charging a few hundred dollars a month for the kind of access to their API that I needed and I wasn’t going to pay that, so Gtwthr got scrapped (for now?). So, I rewrote the weather extension using Yahoo as the weather data source. I added a few new little data elements into it. The icon is still dynamic. I added a few new little things though. You can new search for your weather location id in the extension. This makes it really easy to find your location id for Yahoo. Also, you can set a default location, but then you can also specify a location as well. Let’s check out the commands.

UPDATED Nov 23:

In the previous release I completely forgot about having the ability to set a temperature unit. My bad guys. The extension has been updated to version 1.5 now and has the ability to set a default location and temp unit. Check the changelog for other stuff.

How to use

Weather for Alfred’s commands are pretty simple and self explanatory. Here they are:

  • weather <location id> - Displays weather data for the provided location
  • weather search <location> - Search for your location id
  • weather location <location id> - Set the default location
  • weather unit <unit> - Set default temp unit (f or c)
  • weather - (Req. Alfred 1.0 or newer), Displays weather for the default location
  • weather about - About the extension
  • weather help - Display the help menu
  • weather version - Display the current version of the extension
  • weather changelog - Display the changelog

Download

Download Weather for Alfred

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Color Converter for Alfred

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

What is Color Converter?

I could be going crazy but I think a week or two ago a user had asked for an extension to convert hex color codes to rgb. I got a wild hair today and decided to make it. After getting input from a few other guys on Twitter, I decided to make the extension do the reverse as well (rgb to hex) and provide customization on the output format of the rgb values. So here we go..

How to use Color Converter

  • cc [hex] - returns the value in rgb
  • cc [rgb] - returns the value in hex
  • cc format [text format] - sets the rgb output format
  • cc help - displays the help menu
  • cc about - displays info about the extension
  • cc version - displays the current version of the extension
  • cc changelog - displays the changelog for the extension

When setting the rgb output format, just use a simple sting and place %r, %g, %b in the position you would like to have the values placed. So, for instance, if you wanted to set the output format to be a css rgb value, you would use “cc format rgb(%r,%g,%b)”. This would result in an output from “cc #ecff8a” to be “rgb(236,255,138);”. These results are shown in Growl and are automatically copied to the clipboard as well.

Download

Download Color Converter

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Upcoming Extension for Alfred (hint)

This is more of a giveaway than it is a hint. It’s another extension (really kind of a framework) I’m working on though that will help all extension developers.

Updated Screenshot Extension

Several users requested a timestamp in the filename when grabbing screenshots so older screenshots wouldn’t be overwritten. Well, here it is. Filenames are formatted exactly the same as OS X screenshots. “Screenshot <date> at <time>”

Download

Here’s a little teaser of the upcoming Wunderlist extension I’ve been messing around with. The guys over at Wunderkinder are awesome and gave me a little direction on getting a few things going. I know a lot of users have been looking for an extension for this for a while… well, it’s coming.

Enjoy :)

AlfredTweet

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

What is AlfredTweet?

AlfredTweet is a new way to interact with Twitter via Alfred. The previous method of using console_tweet, while sufficient for some, proved to be a little daunting for some users, especially if you didn’t already have the developer tools installed that were required to build it. AlfredTweet provides a simple extension to interact with Twitter including: 

  • Sending tweets
  • Sending direct messages
  • Following/unfollowing
  • Blocking/unblocking
  • View timeline, mentions.
  • and more …

Setting Up AlfredTweet

This was the most important area. If I couldn’t make this dead simple, it might as well have not been done at all. I made setup a two step process. Step one, authenticate to Twitter. Step two, enter your pin number. Setup is done this way so that you are assured I’m not doing anything tricky with your username and password. You are authenticating to Twitter, not me/the extension. This extension requires Growl for all functions to work properly. Growl is required for using a lot of this extensions functionality.

To setup AlfredTweet, install the extension (of course), and then in Alfred, type ‘tw setup’ and press Enter. A browser window will open and you will authenticate to Twitter. After authentication, Twitter will give you a pin number. Copy this pin number. Then in Alfred, type ‘tw pin <your pin number>’. Do not include the <>’s around the pin number. You will see a message that the extension is authenticating to Twitter, and then a confirmation message informing you when the extension is ready.

Whats new in 1.4:

  • #NowPlaying! - Tweet your current playing song from Rdio, iTunes, Ecoute, or Spotify
  • Rename commands.
  • Improved reset command
  • Added follower account to user info
  • Show tweeted message on success

How to use

AlfredTweet’s commands are pretty simple and self explanatory. Here they are:

  • tw setup - Initiate setup
  • tw pin <pin number> - Save pin number
  • tw <tweet> - Send new tweet
  • tw tweets - List the last 5 tweets in your home timeline
  • tw mentions - List your last 5 mentions
  • tw dm <user> <text> - Send a direct message to the specified user
  • tw info <user> - Look up user info
  • tw follow <user> - Follow specified user
  • tw unfollow <user> - Unfollow specified user
  • tw create <name> - Create a new list
  • tw delete <name> - Delete the specified list
  • tw lists - Display all lists
  • tw add <user> <list> - Add user to list
  • tw remove <user> <list> - Remove user from list
  • tw block <user> - Block the specified user
  • tw unblock <user> - Unblock the specified user
  • tw search <term> - Search Twitter for the specified term (results in Growl)
  • tw split <on/off> - Turn off tweet splitting
  • tw playing - Tweet current song
  • tw set <command> <new> - Change command keyword. See below for command list
  • tw reset - Reset all authentication info

Download

Download AlfredTweet 1.4

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Command List:

Use these keywords to set the corresponding command keyword.

  • tweets_command
  • mentions_command
  • dm_command
  • info_command
  • follow_command
  • unfollow_command
  • create_command
  • delete_command
  • lists_command
  • add_command
  • remove_command
  • block_command
  • unblock_command
  • search_command
  • playing_command

Use these command names with the “set” command to change the keyword for that command. For instance, to change the keyword for the “Now Playing” function to play, you wold type “tw set playing_command play”.

Setting a hotkey to Now Playing:

To set a hotkey to the Now Playing feature, go to Alfred’s Hotkey tab, create a new hotkey, type will be Extension->Shell Script. Then on the right side, choose the AlfredTweet extension, and set the Argument value to the keyword for the Now Playing feature. If you haven’t changed this keyword with the set command, it will be “playing” as shown in the preview below.