--import timecoded multilingual titles from an open excel Spreadsheet
--timecodes in spreadsheet must be entered with ' before timecode to force text
set theCount to 10 --Number of titles to Generate
set theLanguageList to {"English", "French", "German", "Spanish"}
set theColumnList to {"C", "D", "E", "F"}
tell application id "com.figure53.QLab.5" to tell front workspace
repeat with i from 1 to 4
make type "group"
set theGroup to last item of (selected as list)
set the mode of theGroup to playlist
--assumes all other playlist parameters set in cue Template
set the q name of theGroup to item i of theLanguageList
set the q number of theGroup to ((first character of item i of theLanguageList) & "0")
set firstFlag to 1
repeat with x from 1 to theCount
make type "Text"
set theCue to last item of (selected as list)
--assumes all font and color details set in template
set the q number of theCue to ((first character of item i of theLanguageList) as text) & x as text
tell application "Microsoft Excel" to tell active sheet to set theValue to (value of cell ((item i of theColumnList) & x + 1 as text))
set the text of theCue to theValue
tell application "Microsoft Excel" to tell active sheet to set theTC to value of cell ("B" & (x + 1 as text))
set the timecode text of theCue to theTC
set the timecode trigger of theCue to enabled
if firstFlag is 1 then
set theID to uniqueID of theCue
move cue id theID of parent of theCue to end of theGroup
set the selected to theCue
set firstFlag to 0
end if
end repeat
set the selected to theGroup
end repeat
end tell
--
Contact support anytime: sup...@figure53.com
Follow QLab on Threads: https://threads.net/@QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/c102b61a-5f2e-4928-909e-8c0d11820377n%40googlegroups.com.