Class AppleScript
Provides limited functionality to AppleScript
Think of this as a wrapper for some AppleScript
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