CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 04:15:26 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=93b26ad9676d45c0e9bed3bdcefdb953398e43a7163382b3ec97637084df4a5aa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22zyjnpINxbtOBN0vXY2LFwNeuZOiC2kIV%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d3c6ade8dec151-BLR
Renumber cues with prefix - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Shft+Ctrl+R Prepend Q# of selected cue(s) [BROKEN]
- (*
- Tested with QLab v3.2.14 Oct 2018
- Please report any issues to [email protected] with subject "QLAB 3 template issues"
- Original from Rich Walsh template.*)
- set userIncrement to 1 -- Use this to specify the increment between numbers
- -- Declarations
- global dialogTitle
- set dialogTitle to "Renumber with a prefix"
- -- Main routine
- set startingNumber to text returned of (display dialog "WARNING: This script will renumber cues incremented by 1.
- Enter the Cue Number for the first selected cue:" with title dialogTitle with icon 1 ¬
- default answer "" buttons {"Cancel", "OK"} default button "OK" cancel button "Cancel")
- set thePrefix to startingNumber
- set theSuffix to ""
- set nonNumberFound to false
- repeat with i from (count characters of startingNumber) to 1 by -1
- if character i of startingNumber is not in characters of "0123456789" then
- set nonNumberFound to true
- set thePrefix to (characters 1 thru i of startingNumber) as text
- try -- If the last character is not a number then theSuffix remains as ""
- set theSuffix to (characters (i + 1) thru end of startingNumber) as text
- end try
- exit repeat
- end if
- end repeat
- if nonNumberFound is false then -- Edge case where the text entered is a number with no prefix
- set thePrefix to ""
- set theSuffix to startingNumber
- end if
- set theSuffix to theSuffix as integer
- tell application id "com.figure53.QLab.4" to tell front workspace
- set selectedCues to (selected as list)
- -- Clear existing Cue Numbers
- repeat with eachCue in selectedCues
- set q number of eachCue to ""
- end repeat
- -- Get a list of numbers that can't be used
- set allNumbers to q number of cues
- set allNumbersRef to a reference to allNumbers
- -- Renumber the cues
- repeat with eachCue in selectedCues
- set newNumber to (thePrefix & theSuffix) as text
- repeat until newNumber is not in allNumbersRef -- If the number is in use, then skip it
- set theSuffix to theSuffix + userIncrement
- set newNumber to (thePrefix & theSuffix) as text
- end repeat
- set q number of eachCue to newNumber
- set theSuffix to theSuffix + userIncrement
- end repeat
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 8 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 12 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 17 sec ago | 0.25 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 23 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 26 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 31 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 34 sec ago | 0.10 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ S
JavaScript | 35 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand