diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 10:30:51 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 10:30:51 +0200 |
| commit | 377442f2f1f0f08bc525393c9bd1c84f159c5159 (patch) | |
| tree | ab7f62cda14f1d85a30e65b130cf289f3a04947b /Captura/Scripting/Captura.sdef | |
| parent | 8e9321304ca80e9ada7ac01058a5f4603cb37fab (diff) | |
Add AppleScript support
Diffstat (limited to 'Captura/Scripting/Captura.sdef')
| -rw-r--r-- | Captura/Scripting/Captura.sdef | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Captura/Scripting/Captura.sdef b/Captura/Scripting/Captura.sdef new file mode 100644 index 0000000..82cf06f --- /dev/null +++ b/Captura/Scripting/Captura.sdef @@ -0,0 +1,40 @@ +<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd"> +<dictionary title="CapturaScripting"> + <suite name="Captura Suite" code="CAPT" description="Controls Captura"> + <class name="application" code="Capp" description="The application's top-level scripting object."> + <cocoa class="NSApplication"/> + <property name="preferences" code="Cprp" type="preferences" access="r"> + <cocoa key="scriptedPreferences"/> + </property> + </class> + <class name="preferences" code="Cprf" description="The application preferences"> + <cocoa class="ScriptedPreferences"/> + <property name="fps" code="Cpfp" type="integer" description="Sets the FPS of the recording" access="rw" /> + <property name="outputs" code="Cpou" type="text" description="Which outputs get generated locally" access="rw" /> + <property name="backend" code="Cpbk" type="file url" description="Updates the backend URL that will be used" access="rw" /> + <property name="backend_output" code="Cpbo" type="text" description="Which output should be sent to the backend" access="rw" /> + <property name="keep_local_files" code="Cplf" type="boolean" description="Whether to keep local files after a successful backend upload." access="rw"/> + </class> + <record-type code="CCRr" name="recording_configuration"> + <property name="x" code="CCrx" type="integer" description="Sets the starting horizontal position of the recording frame from the left of the screen. Defaults to the center of the screen." /> + <property name="y" code="CCry" type="integer" description="Sets the starting vertical position of the recording frame from the bottom of the screen. Defaults to the center of the screen." /> + <property name="width" code="CCrw" type="integer" description="Sets the width of the recording frame. Defaults to 400" /> + <property name="height" code="CCrh" type="integer" description="Sets the height of the recording frame. Defaults to 400" /> + <property name="prevent_resize" code="CCRz" type="boolean" description="Prevents the recording frame from being resized. Defaults to false." /> + <property name="prevent_move" code="CCRm" type="boolean" description="Prevents the recording frame from being moved. Defaults to false." /> + <property name="fps" code="CCrf" type="integer" description="Sets the FPS of the recording" /> + <property name="outputs" code="CCRo" type="text" description="Which outputs get generated locally" /> + <property name="backend" code="CCRb" type="file url" description="Updates the backend URL that will be used" /> + <property name="backend_output" code="CCRp" type="text" description="Which output should be sent to the backend" /> + <property name="keep_local_files" code="CCRk" type="boolean" description="Whether to keep local files after a successful backend upload." /> + <property name="auto_start" code="CCRa" type="boolean" description="Whether the recording session should start automatically or not. It takes 3 seconds to start." /> + <property name="max_length" code="CCrl" type="integer" description="The max length for the recording in seconds, default and max is 300." /> + </record-type> + <command name="start_recording" code="CCCMStRc"> + <cocoa class="RecordCommand" /> + <direct-parameter description="The settings to be configured"> + <type type="recording_configuration" /> + </direct-parameter> + </command> + </suite> +</dictionary> |