Tools & Tips

How Web Developers Can Use Alfred


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 > assets/js/libs/backbone.js

# Pull in Underscore
curl > assets/js/libs/underscore.js

# Pull in jQuery
curl > assets/js/libs/jquery.js

# Open our new project in Sublime Text
/Applications/Sublime\ Text\ .
Final Script
Related Posts