1. Download the bundlet, and place it in your workflow's root directory.
2. Include the bundlet
require_relative 'alfred.bundler.php'
3. Instantiate a Bundler object.
b = Alfred::Bundler.new
The Alfred Bundler is implemented, in Ruby, as a class.
tn = b.utility('Terminal-Notifier')
icon = b.icon('elusive', 'fire', '000000')
b.gems(['plist', '~>3.1.0'])
bundler.gems( ['oauth'], ['plist', '~>3.1.0'])
cd = b.wrapper('cocoadialog');
b.notify('Message', 'Title', '/path/to/icon')
icon.png
if it is available.
For general information on logging with the Bundler, read the log page.
In order to use the logs, you need to initialize the bundler differently:
require_relative 'alfred.bundler.php'
b = Alfred::Bundler.new({'wf_log' => true}
wf_log
key will give you access to console logs as well as a default file log located in the workflow’s data directory named {workflow-bundle-id}.log
. So, if your workflow’s bundle id is com.spr.bundler.example
. The log will be located at ~/Library/Application Support/Alfred 2/Workflow Data/com.spr.bundler.example/com.spr.bundler.example.log
.
Post on the Alfred Forum thread.
Open an issue in the Github queue.