Hi Pros,
I met the following problem. I have a Q5 project that has 4 text cues. I call three cues to “source” (myF1, myF2, myF3). And the 4th one is the target text cue.
I’d like to copy, in order, the origin cue text to the target cue text. It is not a big challenge. In the origin text has formatting infos. The size and color of text lines are not the same. Well, I also want to include the formatting informations as well.
I wrote a script but it didn’t meet of my expectations. You know I am not pro scripter.
I show my code lines:
tell application id "com.figure53.QLab.5" to tell front workspace
-- oigin cues in order
set textOrder to {"myF1", "myF2", "myF3"}
-- the destination cue is mytext
log textOrder's item 1
set theCue to cue (textOrder's item 1)
tell application "System Events" to keystroke "c" using command down
set myText to text of theCue
log myText
set selected to the cue "myTxt"
set text of last item of (selected as list) to myText
tell application "System Events"
click menu item "Paste and Match Style" of menu 1 of menu bar item "Edit" of menu bar 1 of application process "QLab"
end tell
end tell
where is the error, please help me to correct the script.
Thank you in advance!
Best,
Kalman