\AlphredAlfred

Basic interaction with Alfred

Summary

Methods
Properties
Constants
call_external_trigger()
light_or_dark()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

call_external_trigger()

call_external_trigger(string  $bundle, string  $trigger, string|boolean  $argument = false) 

Calls an Alfred External Trigger

Single and double-quotes in the argument might break this method, so make sure that you escape them appropriately.

Parameters

string $bundle

the bundle id of the workflow to trigger

string $trigger

the name of the trigger

string|boolean $argument

an argument to pass

light_or_dark()

light_or_dark() : string

Tells you if the current theme is `light` or `dark`

Returns

string —

either 'light' or 'dark'