Quick Start: Download Here
An Alfred workflow for generating simple Amazon Affiliate links with your own tag. Designed for anyone who generates a lot of custom links from URLs. This workflow will clean up all the parameters from an amazon.com URL, and then append the configured tag to it.
Setting Your Affiliate Code
The keyword trigger alink code <your-affiliate-tag> will set a new affiliate code, which all subsequent calls to alink will use.
Generating Links
The keyword trigger alink <an-amazon-product-url> will strip extra junk from the URL (all the query params, which aren't necessary for Amazon product links), and append "tag=your-affiliate-tag" to it, copying the result to the clipboard.
You will get an error message if you haven't set an affiliate code yet (see above), or if the target link is not a valid Amazon link.
Install Notes
Download the compiled workflow directly, or visit the repository for the full source code
I'm happy to take feedback on the installation process. In theory, I've bundled all the necessary ruby gems in the workflow package proper, so it should be a simple double-click install. If you do need to install manually, please let me know. To install manual dependencies, you would run just "sudo gem install addressable", and that should suffice.
This has been tested on OS X 10.13 High Sierra and above, and may work on earlier versions of macOS. It requires Alfred 3+
Credits
Thanks to Bryan McKelvey for the simple Alfredo Ruby Gem (no longer used directly, but code inspired by)
Thanks to phyllisstein for Alleyoop
Release Notes
v1.0 (Feb 24, 2014) - Initial release
v1.1 (Mar 24, 2018) - Alfred 3 and High Sierra 10.13 support
v1.2 (Oct 27, 2019) - Update for Alfred preferred JSON format, support for macOS 10.15 Catalina
Feedback Wanted: I'd love to hear feedback. Are you using this workflow? How? What improvements would you like?
Robert, I just published a new workflow that might be what you are after.
http://www.alfredforum.com/topic/3955-workflow-amazon-affiliate-link-generator/
Quick Start: Download Here (Alfred 2 users, the last compatible version was Terminal Control 2.2, still available here)
An Alfred workflow for controlling aspects of Apple's Terminal Utility and iTerm2. Designed specifically for developers and admins who spend a lot of time in terminals at the command line. Particularly useful for those who manage multiple tabs and use varied Profiles (color themes) for Terminal/iTerm2 windows.
New Terminals
The keyword trigger term (or iterm) will bring up a list of Profiles (themes/skins) based on Terminal preferences. Continue typing to select one.
Modifier keys:
Shift: launch this Profile in a new tab
Command: change the active Terminal tab to this Profile
Merge and Split
Terminal only: Keyword trigger term move will separate the current tab into its own window.
Terminal only: Keyword trigger term merge will merge all open Terminal windows into one tabbed set.
iTerm Only: Keyword trigger *iterm arrange* will call iTerm's "arrange all windows horizontally" window helper.
Terminal to a Directory
Keyword trigger term dir (or iterm dir), followed by a directory search phrase will launch the default Terminal profile, and automatically change to the selected directory.
Why Do I Want This?
I spend a lot of time connected to various processes, machines, networks, running screen/tmux sessions, etc. From my personal experience (read: typing the wrong command into an ssh session of a production machine and taking down large consumer web properties in the process), I've built a habit of always color-coding my terminal windows. White on black for local OSX terminal. Green on black for local virtual machines, green background for testing networks, and RED background for production machines (a constant reminder to be careful what I type). This alfred workflow allows me to launch terminal themes, and also change a terminal tab quickly to a new theme if I repurpose it for a new task.
Install Notes
Download the compiled workflow directly, or visit the repository for the full source code
This is my very first workflow, so I'd appreciated feedback on the installation process. In theory, I've bundled all the necessary ruby gems in the workflow package proper, so it should be a simple double-click install. If you do need to install manually, please let me know. Hints are in the developer notes.
You will need to allow accessibility support for Alfred. This should be prompted automatically. But since Mavericks, this happens in a new place, in the security and privacy system preferences area. Enable it as shown here if you get stuck:
Thanks to Bryan McKelvey for the simple Alfredo Ruby Gem
Thanks to phyllisstein for Alleyoop
Thanks to Quentin Stafford-Fraser for inspiration and approach in his dedicated iTerm2 Profiles workflow
Release Notes
v1.0 (May 6, 2013) - Initial release
v1.1 (May 10, 2013) - Support for Alleyoop workflow updater
v2.0 (May 12, 2013) - Added control for popular alternative iTerm2 terminal emulator
v2.1 (Nov 7, 2013) - Included bundled gems for ruby 2.0.0 for Mavericks OS X 10.9 Support
v2.2 (Nov 21, 2014) - Improved UI scripting dialog to conform with 10.9+ privacy behaviors
v2.3 (Jun 23, 2016) - Support for iTerm2 version 3.0.0+ to accommodate their new AppleScript dictionaries, dropped support for Alfred 2.x
v2.4 (Oct 15, 2017) - Included bundled gems for ruby 2.3.0 for macOS High Sierra 10.13 Support
v2.5 (Sep 29, 2018) - Support for macOS Mojave 10.14
v2.6 (Oct 27, 2019) - Removed alfredo and nokogiri dependencies, moved to Alfred JSON format, macOS Catalina 10.15 Support. Requires Alfred 3+
Feedback Wanted: I'd love to hear feedback. Are you using this workflow? How? What improvements would you like?