tell application id "com.figure53.QLab.4" to tell front workspace
(*
set theBaseRecord to {audio:character id 127925 , video:character id 128250 , midi:character id 127929}
*)
I show the expected result above.
But the real result is, which is text. Wrong!
{"audio:character id 127925 as Unicode text", "video:character id 128250 as Unicode text", "midi:character id 127929 as Unicode text"}
set theRecordtemp to (paragraphs of (get notes of cue "chrUni")) as list
set therecords to {}
set my text item delimiters to ":"
repeat with i from 1 to count of theRecordtemp
set end of therecords to (first text item of (item (i) of theRecordtemp)) & ":" & (second text item of (item (i) of theRecordtemp)) as WHAT
end repeat
display dialog therecords as text with title (count of therecords) as text
end tell
I suppose the solution more complicated I thought.
(* notes of cue "chrUni"
audio:character id 127925
video:character id 128250
midi:character id 127929
*)
'as What' colored red represents the Question itself.
Hopefully the question is understandable.
Thanks in advance,
Best,
Kalman
tell application id "com.figure53.QLab.4" to tell front workspace
set currentTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":", linefeed, return}
set theNotes to notes of cue "chrUni"
set theRecord to {audio:text item 2 of theNotes, video:text item 4 of theNotes, midi:text item 6 of theNotes}
display dialog audio of theRecord -- etc…
set AppleScript's text item delimiters to currentTIDs
end tell
tell application id "com.figure53.QLab.4" to tell front workspace
set currentTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":", linefeed, return}
set theNotes to notes of cue "chrUni"
set notRecord to text items of theNotes
set reportList to {}
repeat with i from 1 to count notRecord by 2
set end of reportList to item i of notRecord & ":" & item (i + 1) of notRecord
end repeat
set AppleScript's text item delimiters to return
display dialog reportList as text
set AppleScript's text item delimiters to currentTIDs
end tell
tell application id "com.figure53.QLab.4" to tell front workspace
set currentTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":", linefeed, return}
set theNotes to notes of cue "chrUni"
set notRecord to text items of theNotes
set theKeys to {}
set theValues to {}
repeat with i from 1 to count notRecord by 2
set end of theKeys to item i of notRecord
set end of theValues to item (i + 1) of notRecord
end repeat
set reportList to {}
repeat with i from 1 to count theKeys
set end of reportList to item i of theKeys & ":" & item i of theValues
end repeat
set AppleScript's text item delimiters to return
display dialog reportList as text
set AppleScript's text item delimiters to currentTIDs
end tell
display dialog myRecord's wait (e.g.)
set myData to (get notes of cue "chrUni")
set myRecord to run script "{" & myData & "}"
display dialog myRecord's theGroup
I have to say, I don't understand how it acually works. But it doing its job.
The checkmark represent if it is armed and 'x' if not.
These are all unicode characters. Don't ask why.
The workspace has several unicode char not just three.
This is the real list. Maybe it will even expand
{audio:character id 128266, video:character id 128250, photo:character id 128247, midi:character id 127925, theTrue:character id 10004,
theFalse:character id 10006, memo:character id 9729, wait:character id 9203, theStart:character id 9654, thepause:character id 9208,
theStop:character id 9673, theGroup:character id 128194}
Thanks your great solution Rich.
Sincerely,
Kalman
set myRecord to {audio:character id 128266, video:character id 128250, photo:character id 128247, midi:character id 127925, theTrue:character id 10004, theFalse:character id 10006, memo:character id 9729, wait:character id 9203, theStart:character id 9654, thepause:character id 9208, theStop:character id 9673, theGroup:character id 128194}
display dialog myRecord's theGroup
set myRecord to run script "{" & myData & "}"
On 29 Mar 2023, at 13:15, Kalman Tarr <tarr....@gmail.com> wrote:
Hi Rich,I've created a workspace that collects the cues depending what 'q type' they are.
And I would like to place the result in a text file showing in which attached image shown. That's all.
I thought I can get the character id easily I store them in record.
It is eassy to refer to. (Audio, video, etc)display dialog myRecord's wait (e.g.)I browsed the net for solutions. I found of varying complexity.
In my opinion the simplest the next one. I really like it.
set myData to (get notes of cue "chrUni")set myRecord to run script "{" & myData & "}"display dialog myRecord's theGroupI have to say, I don't understand how it acually works. But it doing its job.The checkmark represent if it is armed and 'x' if not.These are all unicode characters. Don't ask why.The workspace has several unicode char not just three.This is the real list. Maybe it will even expand{audio:character id 128266, video:character id 128250, photo:character id 128247, midi:character id 127925, theTrue:character id 10004,theFalse:character id 10006, memo:character id 9729, wait:character id 9203, theStart:character id 9654, thepause:character id 9208,theStop:character id 9673, theGroup:character id 128194}