\AlphredAppleScript

Provides limited functionality to AppleScript

Think of this as a wrapper for some AppleScript

Summary

Methods
Properties
Constants
get_front()
activate()
bring_to_front()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
exec()
No private properties found
N/A

Methods

get_front()

get_front() : array

Gets the frontmost window name and application

Returns

array —

an array with the front application name and window name

activate()

activate(string  $application) 

Brings an application to the front, opening it if necessary

Parameters

string $application

the name of the application

bring_to_front()

bring_to_front(string  $process) 

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

Parameters

string $process

name of application

exec()

exec(string  $script) : mixed

Executes some AppleScript code

Parameters

string $script

the script to execute

Returns

mixed —

whatever the script returns