beautypg.com

Apple AppleScript Finder Guide User Manual

Page 54

background image

C H A P T E R 2

Finder Objects

42

Object Class Definitions

ELEMENT CLASSES

None

COMMANDS HANDLED

Count, Data Size, Exists, Get, Sort

DEFAULT VALUE CLASS RETURNED

A reference or, if you use the plural form application processes, a list of

references of the form

application "

ApplicationProcessName"

where ApplicationProcessName is the name of an application process as it appears

in the Applications menu.

EXAMPLES

You can use a script like this to get a list of all the application processes that are

currently running:

tell application "Finder"

application processes

end

--result: {application "HyperCard", application "Script
Editor", application "Scriptable Text Editor"}

The following script hides the TeachText application process:

tell application "Finder"

set visible of application process "TeachText" to false

end tell