text alignment prop

57 views
Skip to first unread message

Kalman Tarr

unread,
Nov 9, 2025, 4:19:34 AMNov 9
to QLab
Hi pros,

Remembering an old question. Resizing and coloring the 'notes' field of a cue.

When copying the text field style in the scroll area of ​​an existing text cue text tab, the text alignment property will not be included in the package. ("Copy Style" of menu 1)

set text format of dummyCue to notesFormatRecord

set text alignment of dummyCue to "left"


I mean when I paste this into a notes field, for example, it will not set the 'text alignment' property. ("Paste Style" of menu 1).
Am I doing something wrong or is this the case? The entire text must be copied and transferred to the notes field of another cue.
I hope my problem is understandable.

Best,
Good Sunday
Kalman

Rich Walsh

unread,
Nov 9, 2025, 11:44:30 AMNov 9
to ql...@googlegroups.com
Start with the AppleScript dictionary…

The “cue" class contains a property “notes” of class “text”; it does not contain any properties that mention “alignment” or “text format record”: https://qlab.app/docs/v5/scripting/applescript-dictionary-v5/#cue:~:text=is “any channel”.-,notes,-get/set. You can not set the formatting of the notes field in any direct way using AppleScript – if you could, there would be an entry for how to do it in the properties of the cue class.

The “text cue” class , however, does contain a property “text format”: https://qlab.app/docs/v5/scripting/applescript-dictionary-v5/#text-cue:~:text=right%E2%80%9D%2C%20and%20%E2%80%9Cjustify%E2%80%9D.-,text%20format,-get/set. This returns a “text format record”: https://qlab.app/docs/v5/scripting/applescript-dictionary-v5/#text-format-record. This record does not include a key for alignment as the “text cue” class handles this separately in the “text alignment" property: https://qlab.app/docs/v5/scripting/applescript-dictionary-v5/#text-format-record:~:text=of%20this%20cue.-,text%20alignment,-get/set.

If you want to programatically format the notes field you will probably have to create a dummy text cue, format that and then copy and paste the text using UI scripting.

Rich

Kalman Tarr

unread,
Nov 11, 2025, 10:18:39 AM (12 days ago) Nov 11
to QLab
Thank you Rich,
I understood.
Kalman

Reply all
Reply to author
Forward
0 new messages