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 AppleScript

Provides limited functionality to AppleScript

Think of this as a wrapper for some AppleScript

Namespace: Alphred
Located at AppleScript.php

Methods summary

public array
# get_front( )

Gets the frontmost window name and application

Gets the frontmost window name and application

Returns

array
an array with the front application name and window name
public
# activate( string $application )

Brings an application to the front, opening it if necessary

Brings an application to the front, opening it if necessary

Parameters

$application
the name of the application
public
# bring_to_front( string $process )

Brings an application to the front, but only if it is open

Brings an application to the front, but only if it is open

Parameters

$process
name of application
private mixed
# exec( string $script )

Executes some AppleScript code

Executes some AppleScript code

Parameters

$script
the script to execute

Returns

mixed
whatever the script returns

Magic methods summary

Alphred API documentation generated by ApiGen