Hafixie93

Prewait adjust

Dec 10th, 2020
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (*
  2. Tested with QLab v3.2.14 Oct 2018
  3. Please report any issues to robotlightsyou@gmail.com with subject "QLAB 3 template issues"
  4.  
  5. Original from Rich Walsh template.*)
  6.  
  7. tell application id "com.figure53.qlab.3" to tell front workspace
  8.    
  9.     -- Declarations
  10.    
  11.     global dialogTitle
  12.     set dialogTitle to "Batch adjust Pre Wait"
  13.    
  14.     -- Get the continue mode required  
  15.     set theText to {text returned} of (display dialog ¬
  16.         "Set pre wait of selected cues to (return an empty string to cancel):" with title dialogTitle with icon 1 ¬
  17.         default answer "")
  18.    
  19.     -- Check for cancel
  20.     if theText is "" then
  21.         error number -128
  22.     end if
  23.    
  24.     -- Adjust the cues 
  25.     repeat with eachCue in (selected as list)
  26.         set pre wait of eachCue to theText
  27.     end repeat
  28.    
  29. end tell
Add Comment
Please, Sign In to add comment