ApplicationProcess
, DeskAccessoryProcess
@Plural("processes") @Code("prcs") @Name("process") @Inherits("UI element") public interface Process extends Reference, UiElement
Modifier and Type | Method | Description |
---|---|---|
default int |
countMenuBars() |
|
int |
countMenuBars(String filter) |
|
default int |
countWindows() |
|
int |
countWindows(String filter) |
|
String |
getArchitecture() |
The architecture in which the process is running.
|
String |
getBundleIdentifier() |
The bundle identifier of the process' application file.
|
String |
getCreatorType() |
The OSType of the creator of the process (the signature).
|
String |
getDisplayedName() |
The name of the file from which the process was launched, as displayed in the User Interface.
|
Reference |
getFile() |
The file from which the process was launched.
|
String |
getFileType() |
The OSType of the file type of the process.
|
int |
getId() |
The unique identifier of the process.
|
MenuBar |
getMenuBar(int index) |
|
MenuBar |
getMenuBar(Id id) |
|
default MenuBar[] |
getMenuBars() |
|
MenuBar[] |
getMenuBars(String filter) |
|
String |
getName() |
The name of the process.
|
int |
getPartitionSpaceUsed() |
The number of bytes currently used in the process' partition.
|
Map<String,Object> |
getProperties() |
Returns all properties for an instance of this class.
|
String |
getShortName() |
The short name of the file from which the process was launched.
|
int |
getTotalPartitionSize() |
The size of the partition with which the process was launched.
|
int |
getUnixId() |
The Unix process identifier of a process running in the native environment, or -1 for a process running in the Classic environment.
|
Window |
getWindow(int index) |
|
Window |
getWindow(Id id) |
|
default Window[] |
getWindows() |
|
Window[] |
getWindows(String filter) |
|
boolean |
isAcceptsHighLevelEvents() |
Is the process high-level event aware (accepts open application, open document, print document, and quit)?
|
boolean |
isAcceptsRemoteEvents() |
Does the process accept remote events?
|
boolean |
isBackgroundOnly() |
Does the process run exclusively in the background?
|
boolean |
isClassic() |
Is the process running in the Classic environment?
|
boolean |
isFrontmost() |
Is the process the frontmost process.
|
boolean |
isHasScriptingTerminology() |
Does the process have a scripting terminology, i.e., can it be scripted?
|
boolean |
isVisible() |
Is the process' layer visible?
|
void |
setFrontmost(boolean frontmost) |
Is the process the frontmost process.
|
void |
setVisible(boolean visible) |
Is the process' layer visible?
|
cast, getApplicationReference, getObjectReference, getTypeClass, isInstanceOf
countActions, countActions, countAttributes, countAttributes, countBrowsers, countBrowsers, countBusyIndicators, countBusyIndicators, countButtons, countButtons, countCheckboxs, countCheckboxs, countColorWells, countColorWells, countColumns, countColumns, countComboBoxs, countComboBoxs, countDrawers, countDrawers, countGroups, countGroups, countGrowAreas, countGrowAreas, countImages, countImages, countIncrementors, countIncrementors, countLists, countLists, countMenuBarItems, countMenuBarItems, countMenuButtons, countMenuButtons, countMenuItems, countMenuItems, countMenus, countMenus, countOutlines, countOutlines, countPopOvers, countPopOvers, countPopUpButtons, countPopUpButtons, countProgressIndicators, countProgressIndicators, countRadioButtons, countRadioButtons, countRadioGroups, countRadioGroups, countRelevanceIndicators, countRelevanceIndicators, countRows, countRows, countScrollAreas, countScrollAreas, countScrollBars, countScrollBars, countSheets, countSheets, countSliders, countSliders, countSplitterGroups, countSplitterGroups, countSplitters, countSplitters, countStaticTexts, countStaticTexts, countTabGroups, countTabGroups, countTables, countTables, countTextAreas, countTextAreas, countTextFields, countTextFields, countToolbars, countToolbars, countUiElements, countUiElements, countValueIndicators, countValueIndicators, getAccessibilityDescription, getAction, getAction, getActions, getActions, getAttribute, getAttribute, getAttributes, getAttributes, getBrowser, getBrowser, getBrowsers, getBrowsers, getBusyIndicator, getBusyIndicator, getBusyIndicators, getBusyIndicators, getButton, getButton, getButtons, getButtons, getCheckbox, getCheckbox, getCheckboxs, getCheckboxs, getColorWell, getColorWell, getColorWells, getColorWells, getColumn, getColumn, getColumns, getColumns, getComboBox, getComboBox, getComboBoxs, getComboBoxs, getDescription, getDrawer, getDrawer, getDrawers, getDrawers, getEntireContents, getGroup, getGroup, getGroups, getGroups, getGrowArea, getGrowArea, getGrowAreas, getGrowAreas, getHelp, getImage, getImage, getImages, getImages, getIncrementor, getIncrementor, getIncrementors, getIncrementors, getKlass, getList, getList, getLists, getLists, getMaximumValue, getMenu, getMenu, getMenuBarItem, getMenuBarItem, getMenuBarItems, getMenuBarItems, getMenuButton, getMenuButton, getMenuButtons, getMenuButtons, getMenuItem, getMenuItem, getMenuItems, getMenuItems, getMenus, getMenus, getMinimumValue, getOrientation, getOutline, getOutline, getOutlines, getOutlines, getPopOver, getPopOver, getPopOvers, getPopOvers, getPopUpButton, getPopUpButton, getPopUpButtons, getPopUpButtons, getPosition, getProgressIndicator, getProgressIndicator, getProgressIndicators, getProgressIndicators, getRadioButton, getRadioButton, getRadioButtons, getRadioButtons, getRadioGroup, getRadioGroup, getRadioGroups, getRadioGroups, getRelevanceIndicator, getRelevanceIndicator, getRelevanceIndicators, getRelevanceIndicators, getRole, getRoleDescription, getRow, getRow, getRows, getRows, getScrollArea, getScrollArea, getScrollAreas, getScrollAreas, getScrollBar, getScrollBar, getScrollBars, getScrollBars, getSheet, getSheet, getSheets, getSheets, getSize, getSlider, getSlider, getSliders, getSliders, getSplitter, getSplitter, getSplitterGroup, getSplitterGroup, getSplitterGroups, getSplitterGroups, getSplitters, getSplitters, getStaticText, getStaticText, getStaticTexts, getStaticTexts, getSubrole, getTabGroup, getTabGroup, getTabGroups, getTabGroups, getTable, getTable, getTables, getTables, getTextArea, getTextArea, getTextAreas, getTextAreas, getTextField, getTextField, getTextFields, getTextFields, getTitle, getToolbar, getToolbar, getToolbars, getToolbars, getUiElement, getUiElement, getUiElements, getUiElements, getValue, getValueIndicator, getValueIndicator, getValueIndicators, getValueIndicators, isEnabled, isFocused, isSelected, setFocused, setPosition, setSelected, setSize, setValue
static final TypeClass CLASS
@Kind("element") @Type("menu bar") default MenuBar[] getMenuBars()
getMenuBars
in interface UiElement
MenuBar
s@Kind("element") @Type("menu bar") MenuBar[] getMenuBars(String filter)
getMenuBars
in interface UiElement
filter
- AppleScript filter clause without the leading "whose" or "where"MenuBar
s@Kind("element") @Type("menu bar") MenuBar getMenuBar(int index)
getMenuBar
in interface UiElement
index
- index into the element list (zero-based)MenuBar
at the requested index@Kind("element") @Type("menu bar") MenuBar getMenuBar(Id id)
getMenuBar
in interface UiElement
id
- id of the itemMenuBar
with the requested id@Kind("element") @Type("menu bar") default int countMenuBars()
countMenuBars
in interface UiElement
MenuBar
s@Kind("element") @Type("menu bar") int countMenuBars(String filter)
countMenuBars
in interface UiElement
filter
- AppleScript filter clause without the leading "whose" or "where"@Kind("element") @Type("window") default Window[] getWindows()
getWindows
in interface UiElement
Window
s@Kind("element") @Type("window") Window[] getWindows(String filter)
getWindows
in interface UiElement
filter
- AppleScript filter clause without the leading "whose" or "where"Window
s@Kind("element") @Type("window") default int countWindows()
countWindows
in interface UiElement
Window
s@Kind("element") @Type("window") int countWindows(String filter)
countWindows
in interface UiElement
filter
- AppleScript filter clause without the leading "whose" or "where"@Code("isab") @Kind("property") @Name("accepts high level events") @Type("boolean") boolean isAcceptsHighLevelEvents()
@Code("revt") @Kind("property") @Name("accepts remote events") @Type("boolean") boolean isAcceptsRemoteEvents()
@Code("arch") @Kind("property") @Name("architecture") @Type("text") String getArchitecture()
@Code("bkgo") @Kind("property") @Name("background only") @Type("boolean") boolean isBackgroundOnly()
@Code("bnid") @Kind("property") @Name("bundle identifier") @Type("text") String getBundleIdentifier()
@Code("clsc") @Kind("property") @Name("Classic") @Type("boolean") boolean isClassic()
@Code("fcrt") @Kind("property") @Name("creator type") @Type("text") String getCreatorType()
@Code("dnam") @Kind("property") @Name("displayed name") @Type("text") String getDisplayedName()
@Code("file") @Kind("property") @Name("file") @Type("any") Reference getFile()
@Code("asty") @Kind("property") @Name("file type") @Type("text") String getFileType()
@Code("pisf") @Kind("property") @Name("frontmost") @Type("boolean") boolean isFrontmost()
@Code("pisf") @Kind("property") @Name("frontmost") @Type("boolean") void setFrontmost(boolean frontmost)
frontmost
- new property value@Code("hscr") @Kind("property") @Name("has scripting terminology") @Type("boolean") boolean isHasScriptingTerminology()
@Code("ID ") @Kind("property") @Name("id") @Type("integer") int getId()
@Code("pnam") @Kind("property") @Name("name") @Type("text") String getName()
@Code("pusd") @Kind("property") @Name("partition space used") @Type("integer") int getPartitionSpaceUsed()
@Code("cfbn") @Kind("property") @Name("short name") @Type("text") String getShortName()
@Code("appt") @Kind("property") @Name("total partition size") @Type("integer") int getTotalPartitionSize()
@Code("idux") @Kind("property") @Name("unix id") @Type("integer") int getUnixId()
@Code("pvis") @Kind("property") @Name("visible") @Type("boolean") boolean isVisible()
@Code("pvis") @Kind("property") @Name("visible") @Type("boolean") void setVisible(boolean visible)
visible
- new property valueMap<String,Object> getProperties()
getProperties
in interface UiElement