ass_select
Update the active selection of Aegisub/ASS subtitle event lines using ranges, indices, styles, or text matches. Apply set, add, remove, or toggle modes to target lines for editing or QC.
Instructions
Update the session selection used by "selection".
Args:
spec: any selection spelling accepted by base.resolve_indices —
"all"/None, "0-4,7", 5, [0, 2],
{"style": "Default"}, {"text_contains": "hi"}, ...
mode: "set" (replace), "add", "remove" or "toggle".
Returns {"doc_id", "mode", "selection": [<0-based indices>], "count"}.
Line indices are 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | set | |
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||