Alphred
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Alphred
  • None

Classes

  • Alfred
  • AppleScript
  • Choose
  • Config
  • Date
  • Dialog
  • Filter
  • Globals
  • i18n
  • Ini
  • Keychain
  • Log
  • Notification
  • Request
  • Result
  • ScriptFilter
  • Text

Interfaces

  • ConfigKeyNotSet
  • Exception
  • FileDoesNotExist
  • InvalidKeychainAccount
  • InvalidScriptFilterArgument
  • InvalidSecurityAction
  • InvalidXMLProperty
  • PasswordExists
  • PasswordNotFound
  • PluginFunctionNotFound
  • RunningOutsideOfAlfred
  • ShouldBeBool
  • TooManyArguments
  • UnknownSecurityException
  • UseOnlyAsStatic

Class Alfred

Basic interaction with Alfred

Namespace: Alphred
Located at Alfred.php

Methods summary

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

Calls an Alfred External Trigger

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

$bundle
the bundle id of the workflow to trigger
$trigger
the name of the trigger
$argument
an argument to pass

Since

1.0.0

Used by

Alphred::call_external_trigger()
public static string
# light_or_dark( )

Tells you if the current theme is light or dark

Tells you if the current theme is light or dark

Returns

string
either 'light' or 'dark'

Uses

Alphred\Globals::get()

Used by

Alphred::theme_background()

Magic methods summary

Alphred API documentation generated by ApiGen