Path Finder Module Reference
New in version 0.3.0.
Control OmniWeb using JXA-like syntax.
Classes:
|
A class for interacting with active targets in Path Finder. |
|
A wrapper around lists of Path Finder active targets that employs fast enumeration techniques. |
|
A class for managing and interacting with Path Finder.app. |
|
A class for interacting with containers in Path Finder. |
|
A wrapper around lists of Path Finder containers that employs fast enumeration techniques. |
|
A class for interacting with disks in Path Finder. |
|
A wrapper around lists of Path Finder disks that employs fast enumeration techniques. |
|
A class for interacting with documents in Path Finder. |
|
A wrapper around lists of Path Finder documents that employs fast enumeration techniques. |
|
A class for interacting with files in Path Finder. |
|
A wrapper around lists of Path Finder files that employs fast enumeration techniques. |
|
A class for interacting with finder windows in Path Finder. |
|
A wrapper around lists of Path Finder finder windows that employs fast enumeration techniques. |
|
A class for interacting with Path Finder folders and their contents. |
|
A wrapper around lists of Path Finder folders that employs fast enumeration techniques. |
|
A class for interacting with info windows in Path Finder. |
|
A wrapper around lists of Path Finder info windows that employs fast enumeration techniques. |
|
A class for interacting with items in Path Finder. |
|
A wrapper around lists of Path Finder items that employs fast enumeration techniques. |
|
A class for interacting with left targets in Path Finder. |
|
A wrapper around lists of Path Finder left targets that employs fast enumeration techniques. |
|
A class for interacting with right targets in Path Finder. |
|
A wrapper around lists of Path Finder right targets that employs fast enumeration techniques. |
|
A window of Path Finder.app. |
- class PyXA.apps.PathFinder.XAPathFinderActiveTarget(properties)[source]
Bases:
XAPathFinderContainerA class for interacting with active targets in Path Finder.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderActiveTargetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderContainerA wrapper around lists of Path Finder active targets that employs fast enumeration techniques.
All properties of active targets can be called as methods on the wrapped list, returning a list containing each active target’s value for the property.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderApplication(properties)[source]
Bases:
XASBApplication,XACanOpenPath,XACanPrintPathA class for managing and interacting with Path Finder.app.
New in version 0.3.0.
Methods:
add_toolbar_item(item[, position])Adds an item to the toolbar.
disks()Returns a list of the disks in Path Finder.
empty()Empties the trash.
Returns a list of the finder windows in Path Finder.
Returns a list of the info windows in Path Finder.
remove_toolbar_item(item)Removes an item from the toolbar.
Attributes:
Whether Path Finder is the frontmost application.
The name of the application.
The version of Path Finder.app.
- add_toolbar_item(item: str | XAPathFinderItem | XAPath, position: int = 0) int[source]
Adds an item to the toolbar.
- Parameters:
item (Union[str, XAPathFinderItem]) – The item to add.
position (int, optional) – The target position to add the item at, defaults to 0.
- Returns:
The actual position of the item.
- property desktop: XAPathFinderFolder
- disks() XAPathFinderDiskList[source]
Returns a list of the disks in Path Finder.
- finder_windows() XAPathFinderFinderWindowList[source]
Returns a list of the finder windows in Path Finder.
- property frontmost: bool
Whether Path Finder is the frontmost application.
- property home: XAPathFinderFolder
- info_windows() XAPathFinderInfoWindowList[source]
Returns a list of the info windows in Path Finder.
- property name: str
The name of the application.
- remove_toolbar_item(item: str | XAPathFinderItem | XAPath) int[source]
Removes an item from the toolbar.
- Parameters:
item (Union[str, XAPathFinderItem]) – The item to remove.
- Returns:
The position of the item prior to removal.
- property selection: XAPathFinderItemList
- property startup_disk: XAPathFinderDisk
- property trash: XAPathFinderFolder
- property version: str
The version of Path Finder.app.
- class PyXA.apps.PathFinder.XAPathFinderContainer(properties)[source]
Bases:
XAPathFinderItemA class for interacting with containers in Path Finder.
New in version 0.3.0.
Methods:
files()Returns a list of the files in the container.
folders()Returns a list of the folders in the container.
- files() XAPathFinderFileList[source]
Returns a list of the files in the container.
- folders() XAPathFinderFolderList[source]
Returns a list of the folders in the container.
- class PyXA.apps.PathFinder.XAPathFinderContainerList(properties: dict, filter: dict | None = None, obj_class=None)[source]
Bases:
XAPathFinderItemListA wrapper around lists of Path Finder containers that employs fast enumeration techniques.
All properties of containers can be called as methods on the wrapped list, returning a list containing each container’s value for the property.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderDisk(properties)[source]
Bases:
XAPathFinderContainerA class for interacting with disks in Path Finder.
New in version 0.3.0.
Attributes:
- property capacity: int
- property ejectable: bool
- property free_space: int
- property local_volume: bool
- property startup: bool
- class PyXA.apps.PathFinder.XAPathFinderDiskList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderContainerListA wrapper around lists of Path Finder disks that employs fast enumeration techniques.
All properties of disks can be called as methods on the wrapped list, returning a list containing each disk’s value for the property.
New in version 0.3.0.
Methods:
by_capacity(capacity)by_ejectable(ejectable)by_free_space(free_space)by_local_volume(local_volume)by_startup(startup)capacity()startup()- by_capacity(capacity: int) XAPathFinderDisk | None[source]
- by_ejectable(ejectable: bool) XAPathFinderDisk | None[source]
- by_free_space(free_space: int) XAPathFinderDisk | None[source]
- by_local_volume(local_volume: bool) XAPathFinderDisk | None[source]
- by_startup(startup: bool) XAPathFinderDisk | None[source]
- class PyXA.apps.PathFinder.XAPathFinderDocument(properties)[source]
Bases:
XAObjectA class for interacting with documents in Path Finder.
New in version 0.3.0.
Attributes:
- property modified: bool
- property name: str
- class PyXA.apps.PathFinder.XAPathFinderDocumentList(properties: dict, filter: dict | None = None)[source]
Bases:
XAListA wrapper around lists of Path Finder documents that employs fast enumeration techniques.
All properties of documents can be called as methods on the wrapped list, returning a list containing each document’s value for the property.
New in version 0.3.0.
Methods:
by_file(file)by_modified(modified)by_name(name)file()modified()name()- by_file(file: str | XAPath) XAPathFinderDocument | None[source]
- by_modified(modified: bool) XAPathFinderDocument | None[source]
- by_name(name: str) XAPathFinderDocument | None[source]
- file() list[XABase.XAPath][source]
- class PyXA.apps.PathFinder.XAPathFinderFile(properties)[source]
Bases:
XAPathFinderItemA class for interacting with files in Path Finder.
New in version 0.3.0.
Attributes:
- property creator_type: str
- property file_type: str
- class PyXA.apps.PathFinder.XAPathFinderFileList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderItemListA wrapper around lists of Path Finder files that employs fast enumeration techniques.
All properties of files can be called as methods on the wrapped list, returning a list containing each file’s value for the property.
New in version 0.3.0.
Methods:
by_creator_type(creator_type)by_file_type(file_type)- by_creator_type(creator_type: str) XAPathFinderFile | None[source]
- by_file_type(file_type: str) XAPathFinderFile | None[source]
- class PyXA.apps.PathFinder.XAPathFinderFinderWindow(properties)[source]
Bases:
XAPathFinderWindowA class for interacting with finder windows in Path Finder.
New in version 0.3.0.
Attributes:
The current view.
The active target.
Methods:
open()Opens the window.
- property current_view: str
The current view.
- property target: XAPathFinderContainer
The active target.
- class PyXA.apps.PathFinder.XAPathFinderFinderWindowList(properties: dict, filter: dict | None = None)[source]
Bases:
XASBWindowListA wrapper around lists of Path Finder finder windows that employs fast enumeration techniques.
All properties of windows can be called as methods on the wrapped list, returning a list containing each window’s value for the property.
New in version 0.3.0.
Methods:
by_current_view(current_view)by_target(target)The current view.
target()The active target.
- by_current_view(current_view: str) XAPathFinderFinderWindow | None[source]
- by_target(target: XAPathFinderContainer) XAPathFinderFinderWindow | None[source]
- target() XAPathFinderContainerList[source]
The active target.
- class PyXA.apps.PathFinder.XAPathFinderFolder(properties)[source]
Bases:
XAPathFinderContainerA class for interacting with Path Finder folders and their contents.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderFolderList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderContainerListA wrapper around lists of Path Finder folders that employs fast enumeration techniques.
All properties of folders can be called as methods on the wrapped list, returning a list containing each folder’s value for the property.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderInfoWindow(properties)[source]
Bases:
XAPathFinderWindowA class for interacting with info windows in Path Finder.
New in version 0.3.0.
Attributes:
The active item.
- property item: XAPathFinderItem
The active item.
- class PyXA.apps.PathFinder.XAPathFinderInfoWindowList(properties: dict, filter: dict | None = None)[source]
Bases:
XASBWindowListA wrapper around lists of Path Finder info windows that employs fast enumeration techniques.
All properties of windows can be called as methods on the wrapped list, returning a list containing each window’s value for the property.
New in version 0.3.0.
Methods:
by_item(item)item()The active item.
- by_item(item: XAPathFinderItem) XAPathFinderInfoWindow | None[source]
- item() XAPathFinderItemList[source]
The active item.
- class PyXA.apps.PathFinder.XAPathFinderItem(properties)[source]
Bases:
XAObjectA class for interacting with items in Path Finder.
New in version 0.3.0.
Attributes:
Methods:
delete()Deletes the item.
eject()Ejects the item.
exists()Returns whether the item exists.
open([application])Opens the item.
reveal()Reveals the item in Path Finder.
select()Selects the item in Path Finder.
Opens the item's info window.
- property container: XAPathFinderContainer
- property creation_date: datetime
- property disk: XAPathFinderDisk
- property displayed_name: str
- property everyones_privileges: str
- property group: str
- property group_privileges: str
- property information_window: XAPathFinderInfoWindow
- property kind: str
- property label_index: int
- property locked: bool
- property modification_date: datetime
- property name: str
- property name_extension: str
- open(application: str | XAApplication = 'Path Finder') None[source]
Opens the item.
- property owner: str
- property owner_privileges: str
- property physical_size: int
- property size: int
- class PyXA.apps.PathFinder.XAPathFinderItemList(properties: dict, filter: dict | None = None, obj_class=None)[source]
Bases:
XAListA wrapper around lists of Path Finder items that employs fast enumeration techniques.
All properties of items can be called as methods on the wrapped list, returning a list containing each item’s value for the property.
New in version 0.3.0.
Methods:
by_name(name)name()- by_name(name: str) XAPathFinderItem | None[source]
- class PyXA.apps.PathFinder.XAPathFinderLeftTarget(properties)[source]
Bases:
XAPathFinderContainerA class for interacting with left targets in Path Finder.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderLeftTargetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderContainerA wrapper around lists of Path Finder left targets that employs fast enumeration techniques.
All properties of left targets can be called as methods on the wrapped list, returning a list containing each left target’s value for the property.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderRightTarget(properties)[source]
Bases:
XAPathFinderContainerA class for interacting with right targets in Path Finder.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderRightTargetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAPathFinderContainerA wrapper around lists of Path Finder right targets that employs fast enumeration techniques.
All properties of right targets can be called as methods on the wrapped list, returning a list containing each right target’s value for the property.
New in version 0.3.0.
- class PyXA.apps.PathFinder.XAPathFinderWindow(properties: dict)[source]
Bases:
XASBWindowA window of Path Finder.app.
New in version 0.3.0.
Attributes:
The active document.
- property document: XAPathFinderDocument
The active document.