Advertisement
Tools & Tips

How Web Developers Can Use Alfred

by

In this screencast, we'll use Alfred to write an extension that assists us when creating new projects. As you'll find, Alfred makes the process of executing predefined shell scripts a cinch.

Choose 720p for the clearest picture.

Final Bash Script

# Create our new project directory
cd ~/Desktop && mkdir {query} && cd {query}

# Begin by copying our BB template to the new folder
cp -R ~/Templates/Backbone/ .

# Pull in Backbone
curl http://backbonejs.org/backbone-min.js > assets/js/libs/backbone.js

# Pull in Underscore
curl http://underscorejs.org/underscore-min.js > assets/js/libs/underscore.js

# Pull in jQuery
curl http://code.jquery.com/jquery.js > assets/js/libs/jquery.js

# Open our new project in Sublime Text
/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl .
Final Script
Related Posts