QuickTime Module Reference
New in version 0.0.6.
Control the macOS QuickTime application using JXA-like syntax.
Classes:
|
A class for managing and interacting with QuickTime.app. |
|
A class for managing and interacting with audio compression presets in QuickTime.app. |
|
A wrapper around lists of audio compression presets that employs fast enumeration techniques. |
|
A class for managing and interacting with microphones in QuickTime.app. |
|
A wrapper around lists of audio recording devices that employs fast enumeration techniques. |
|
A class for managing and interacting with documents in QuickTime.app. |
|
A wrapper around lists of themes that employs fast enumeration techniques. |
|
A class for managing and interacting with movie compression presets in QuickTime.app. |
|
A wrapper around lists of movie compression presets that employs fast enumeration techniques. |
|
A class for managing and interacting with screen compression presets in QuickTime.app. |
A wrapper around lists of screen compression presets that employs fast enumeration techniques. |
|
|
A class for managing and interacting with cameras in QuickTime.app. |
|
A wrapper around lists of video recording devices that employs fast enumeration techniques. |
|
A QuickTime window. |
- class PyXA.apps.QuickTimePlayer.XAQuickTimeApplication(properties)[source]
Bases:
XASBApplication
,XACanOpenPath
A class for managing and interacting with QuickTime.app.
See also
XAQuickTimeWindow
,XAQuickTimeDocument
,XAQuickTimeAudioRecordingDevice
,XAQuickTimeVideoRecordingDevice
,XAQuickTimeAudioCompressionPreset
,XAQuickTimeMovieCompressionPreset
,XAQuickTimeScreenCompressionPreset
New in version 0.0.6.
Methods:
audio_compression_presets
([filter])Returns a list of audio compression presets, as PyXA objects, matching the given filter.
audio_recording_devices
([filter])Returns a list of audio recording devices, as PyXA objects, matching the given filter.
documents
([filter])Returns a list of documents, as PyXA objects, matching the given filter.
movie_compression_presets
([filter])Returns a list of movie compression presets, as PyXA objects, matching the given filter.
Starts a new audio recording.
Starts a new movie recording.
Starts a new screen recording.
open
(path)Opens the file at the given filepath.
open_url
(url)Opens the file at the given (remote) URL.
screen_compression_presets
([filter])Returns a list of screen compression presets, as PyXA objects, matching the given filter.
video_recording_devices
([filter])Returns a list of video recording devices, as PyXA objects, matching the given filter.
Attributes:
The document currently open in the front window of QuickTime.
Whether QuickTime is the frontmost application.
The name of the application.
Every property of the QuickTime application.
The version of QuickTime.app.
- audio_compression_presets(filter: dict | None = None) XAQuickTimeAudioCompressionPresetList [source]
Returns a list of audio compression presets, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned p[resets] will have, or None
- Returns:
The list of audio compression presets
- Return type:
New in version 0.0.6.
- audio_recording_devices(filter: dict | None = None) XAQuickTimeAudioRecordingDeviceList [source]
Returns a list of audio recording devices, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned audio recording devices will have, or None
- Returns:
The list of audio recording devices
- Return type:
New in version 0.0.6.
- property current_document: XAQuickTimeDocument
The document currently open in the front window of QuickTime.
- documents(filter: dict | None = None) XAQuickTimeDocumentList [source]
Returns a list of documents, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned documents will have, or None
- Returns:
The list of documents
- Return type:
New in version 0.0.6.
- property frontmost: bool
Whether QuickTime is the frontmost application.
- movie_compression_presets(filter: dict | None = None) XAQuickTimeMovieCompressionPresetList [source]
Returns a list of movie compression presets, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned presets will have, or None
- Returns:
The list of movie compression presets
- Return type:
New in version 0.0.6.
- property name: str
The name of the application.
- new_audio_recording() XAQuickTimeDocument [source]
Starts a new audio recording.
- Returns:
The newly created audio recording document.
- Return type:
New in version 0.0.6.
- new_movie_recording() XAQuickTimeDocument [source]
Starts a new movie recording.
- Returns:
The newly created movie recording document.
- Return type:
New in version 0.0.6.
- new_screen_recording() XAQuickTimeApplication [source]
Starts a new screen recording.
- Returns:
A reference to the application object.
- Return type:
New in version 0.0.6.
- open(path: str | NSURL) XAQuickTimeDocument [source]
Opens the file at the given filepath.
- Parameters:
target (Union[str, AppKit.NSURL]) – The path of a file to open.
- Returns:
A reference to the newly opened document.
- Return type:
New in version 0.0.6.
- open_url(url: str | NSURL) XAQuickTimeDocument [source]
Opens the file at the given (remote) URL.
- Parameters:
target (Union[str, NSURL]) – The path of a file to stream.
- Returns:
A reference to the newly opened document.
- Return type:
New in version 0.0.6.
- property properties: dict
Every property of the QuickTime application.
- screen_compression_presets(filter: dict | None = None) XAQuickTimeScreenCompressionPresetList [source]
Returns a list of screen compression presets, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned presets will have, or None
- Returns:
The list of screen compression presets
- Return type:
New in version 0.0.6.
- property version: str
The version of QuickTime.app.
- video_recording_devices(filter: dict | None = None) XAQuickTimeVideoRecordingDeviceList [source]
Returns a list of video recording devices, as PyXA objects, matching the given filter.
- Parameters:
filter (Union[dict, None]) – A dictionary specifying property-value pairs that all returned video recording devices will have, or None
- Returns:
The list of video recording devices
- Return type:
New in version 0.0.6.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeAudioCompressionPreset(properties)[source]
Bases:
XAObject
A class for managing and interacting with audio compression presets in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The unique identifier for the preset.
The name of the preset.
All properties of the preset.
- property id: str
The unique identifier for the preset.
- property name: str
The name of the preset.
- property properties: dict
All properties of the preset.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeAudioCompressionPresetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of audio compression presets that employs fast enumeration techniques.
All properties of audio compression presets can be called as methods on the wrapped list, returning a list containing each presets’s value for the property.
New in version 0.0.6.
Methods:
id
()name
()
- class PyXA.apps.QuickTimePlayer.XAQuickTimeAudioRecordingDevice(properties)[source]
Bases:
XAObject
A class for managing and interacting with microphones in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The unique identifier for the device.
The name of the device.
All properties of the device.
- property id: str
The unique identifier for the device.
- property name: str
The name of the device.
- property properties: dict
All properties of the device.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeAudioRecordingDeviceList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of audio recording devices that employs fast enumeration techniques.
All properties of audio recording devices can be called as methods on the wrapped list, returning a list containing each devices’s value for the property.
New in version 0.0.6.
Methods:
id
()name
()
- class PyXA.apps.QuickTimePlayer.XAQuickTimeDocument(properties)[source]
Bases:
XAObject
A class for managing and interacting with documents in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The volume of the movie from 0 to 1 (0 to 100%).
The current audio compression preset.
The currently previewing video device.
The currently previewing audio device.
The current movie compression preset.
The current screen compression preset.
The current time of the movie in seconds.
The data rate of the movie in bytes per second.
The data size of the movie in bytes.
The duration of the movie in seconds.
Whether the movie plays in a loop.
Whether the movie is muted.
The national dimensions of the movie.
Whether the movie is currently playing.
Whether the movie is presented in full screen.
All properties of the document.
The current rate of the movie.
Methods:
pause
()play
()present
()resume
()start
()step_backward
(num_steps)step_forward
(num_steps)stop
()trim
(start_time, end_time)- property audio_volume: float
The volume of the movie from 0 to 1 (0 to 100%).
- property current_audio_compression: XAQuickTimeAudioCompressionPreset
The current audio compression preset.
- property current_camera: XAQuickTimeVideoRecordingDevice
The currently previewing video device.
- property current_microphone: XAQuickTimeAudioRecordingDevice
The currently previewing audio device.
- property current_movie_compression: XAQuickTimeMovieCompressionPreset
The current movie compression preset.
- property current_screen_compression: XAQuickTimeScreenCompressionPreset
The current screen compression preset.
- property current_time: float
The current time of the movie in seconds.
- property data_rate: int
The data rate of the movie in bytes per second.
- property data_size: int
The data size of the movie in bytes.
- property duration: float
The duration of the movie in seconds.
- property looping: bool
Whether the movie plays in a loop.
- property muted: bool
Whether the movie is muted.
- property natural_dimensions: tuple[int, int]
The national dimensions of the movie.
- pause() XAQuickTimeDocument [source]
- play() XAQuickTimeDocument [source]
- property playing: bool
Whether the movie is currently playing.
- present() XAQuickTimeDocument [source]
- property presenting: bool
Whether the movie is presented in full screen.
- property properties: dict
All properties of the document.
- property rate: float
The current rate of the movie.
- resume() XAQuickTimeDocument [source]
- start() XAQuickTimeDocument [source]
- step_backward(num_steps: int) XAQuickTimeDocument [source]
- step_forward(num_steps: int) XAQuickTimeDocument [source]
- stop() XAQuickTimeDocument [source]
- trim(start_time: float, end_time: float) XAQuickTimeDocument [source]
- class PyXA.apps.QuickTimePlayer.XAQuickTimeDocumentList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of themes that employs fast enumeration techniques.
All properties of themes can be called as methods on the wrapped list, returning a list containing each theme’s value for the property.
New in version 0.0.6.
Methods:
by_audio_volume
(audio_volume)by_current_camera
(current_camera)by_current_microphone
(current_microphone)by_current_time
(current_time)by_data_rate
(data_rate)by_data_size
(data_size)by_duration
(duration)by_looping
(looping)by_muted
(muted)by_natural_dimensions
(natural_dimensions)by_playing
(playing)by_presenting
(presenting)by_properties
(properties)by_rate
(rate)duration
()looping
()muted
()playing
()rate
()- by_audio_volume(audio_volume: float) XAQuickTimeDocument [source]
- by_current_audio_compression(current_audio_compression: float) XAQuickTimeDocument [source]
- by_current_camera(current_camera: float) XAQuickTimeDocument [source]
- by_current_microphone(current_microphone: float) XAQuickTimeDocument [source]
- by_current_movie_compression(current_movie_compression: float) XAQuickTimeDocument [source]
- by_current_screen_compression(current_screen_compression: float) XAQuickTimeDocument [source]
- by_current_time(current_time: float) XAQuickTimeDocument [source]
- by_data_rate(data_rate: int) XAQuickTimeDocument [source]
- by_data_size(data_size: int) XAQuickTimeDocument [source]
- by_duration(duration: float) XAQuickTimeDocument [source]
- by_looping(looping: bool) XAQuickTimeDocument [source]
- by_muted(muted: bool) XAQuickTimeDocument [source]
- by_natural_dimensions(natural_dimensions: tuple[int, int]) XAQuickTimeDocument [source]
- by_playing(playing: bool) XAQuickTimeDocument [source]
- by_presenting(presenting: bool) XAQuickTimeDocument [source]
- by_properties(properties: dict) XAQuickTimeDocument [source]
- by_rate(rate: float) XAQuickTimeDocument [source]
- current_audio_compression() XAQuickTimeAudioCompressionPresetList [source]
- current_camera() XAQuickTimeVideoRecordingDeviceList [source]
- current_microphone() XAQuickTimeAudioRecordingDeviceList [source]
- current_movie_compression() XAQuickTimeMovieCompressionPresetList [source]
- current_screen_compression() XAQuickTimeScreenCompressionPresetList [source]
- class PyXA.apps.QuickTimePlayer.XAQuickTimeMovieCompressionPreset(properties)[source]
Bases:
XAObject
A class for managing and interacting with movie compression presets in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The unique identifier for the preset.
The name of the preset.
All properties of the preset.
- property id: str
The unique identifier for the preset.
- property name: str
The name of the preset.
- property properties: dict
All properties of the preset.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeMovieCompressionPresetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of movie compression presets that employs fast enumeration techniques.
All properties of movie compression presets can be called as methods on the wrapped list, returning a list containing each presets’s value for the property.
New in version 0.0.6.
Methods:
id
()name
()
- class PyXA.apps.QuickTimePlayer.XAQuickTimeScreenCompressionPreset(properties)[source]
Bases:
XAObject
A class for managing and interacting with screen compression presets in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The unique identifier for the preset.
The name of the preset.
All properties of the preset.
- property id: str
The unique identifier for the preset.
- property name: str
The name of the preset.
- property properties: dict
All properties of the preset.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeScreenCompressionPresetList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of screen compression presets that employs fast enumeration techniques.
All properties of screen compression presets can be called as methods on the wrapped list, returning a list containing each presets’s value for the property.
New in version 0.0.6.
Methods:
id
()name
()
- class PyXA.apps.QuickTimePlayer.XAQuickTimeVideoRecordingDevice(properties)[source]
Bases:
XAObject
A class for managing and interacting with cameras in QuickTime.app.
See also
New in version 0.0.6.
Attributes:
The unique identifier for the device.
The name of the device.
All properties of the device.
- property id: str
The unique identifier for the device.
- property name: str
The name of the device.
- property properties: dict
All properties of the device.
- class PyXA.apps.QuickTimePlayer.XAQuickTimeVideoRecordingDeviceList(properties: dict, filter: dict | None = None)[source]
Bases:
XAList
A wrapper around lists of video recording devices that employs fast enumeration techniques.
All properties of video recording devices can be called as methods on the wrapped list, returning a list containing each devices’s value for the property.
New in version 0.0.6.
Methods:
id
()name
()
- class PyXA.apps.QuickTimePlayer.XAQuickTimeWindow(properties)[source]
Bases:
XASBWindow
A QuickTime window.
See also
New in version 0.0.6.
Attributes:
The document currently displayed in the front window of QuickTime.
Every property of a QuickTime window.
- property document: XAQuickTimeDocument
The document currently displayed in the front window of QuickTime.
- property properties: dict
Every property of a QuickTime window.