text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
setLevel eachCue row 0 column eachChannel db -120
|
Route Soundcheck tracks to template.applescript
|
my renameAdditionalTemplate(whatTemplateCue, "+")
|
Route Soundcheck tracks to template.applescript
|
set additional to "remove"
|
Route Soundcheck tracks to template.applescript
|
log whatTemplate & " absolute"
|
Route Soundcheck tracks to template.applescript
|
set scriptCue to cue displayCurrentStateCueNumber
|
Route Soundcheck tracks to template.applescript
|
set scriptCueOldName to q name of scriptCue
|
Route Soundcheck tracks to template.applescript
|
if additional is "add" then
|
Route Soundcheck tracks to template.applescript
|
set q name of scriptCue to scriptCueOldName & " " & whatTemplate
|
Route Soundcheck tracks to template.applescript
|
else if additional is "remove" then
|
Route Soundcheck tracks to template.applescript
|
set newTemplateName to q name of whatTemplateCue
|
Route Soundcheck tracks to template.applescript
|
set q name of scriptCue to util's findAndReplaceInText(scriptCueOldName, " " & newTemplateName, "")
|
Route Soundcheck tracks to template.applescript
|
else -- for absolute routing, e.g. pros, a Soundcheck channel
|
Route Soundcheck tracks to template.applescript
|
my renameAbsoluteTemplate(whatTemplateCue, routingTemplates, displayCurrentStateCueNumber)
|
Route Soundcheck tracks to template.applescript
|
log whatTemplate & " not absolute"
|
Route Soundcheck tracks to template.applescript
|
on renameAdditionalTemplate(theTemplate, prefix)
|
Route Soundcheck tracks to template.applescript
|
set oldTemplateName to q name of theTemplate
|
Route Soundcheck tracks to template.applescript
|
set newTemplateName to items 2 thru -1 of (oldTemplateName as string)
|
Route Soundcheck tracks to template.applescript
|
set newTemplateName to prefix & newTemplateName
|
Route Soundcheck tracks to template.applescript
|
set q name of theTemplate to newTemplateName
|
Route Soundcheck tracks to template.applescript
|
end renameAdditionalTemplate
|
Route Soundcheck tracks to template.applescript
|
on renameAbsoluteTemplate(theTemplate, allTemplates, updateCueNumber)
|
Route Soundcheck tracks to template.applescript
|
repeat with eachTemplate in allTemplates
|
Route Soundcheck tracks to template.applescript
|
if q name of eachTemplate ends with " <-" then
|
Route Soundcheck tracks to template.applescript
|
set eachOldName to q name of eachTemplate
|
Route Soundcheck tracks to template.applescript
|
set q name of eachTemplate to (items 1 thru -4 of eachOldName) as string
|
Route Soundcheck tracks to template.applescript
|
else if q name of eachTemplate starts with "+" or q name of eachTemplate starts with "-" then
|
Route Soundcheck tracks to template.applescript
|
my renameAdditionalTemplate(eachTemplate, "+")
|
Route Soundcheck tracks to template.applescript
|
set newTemplateName to oldTemplateName as string
|
Route Soundcheck tracks to template.applescript
|
set newTemplateName to newTemplateName & " <-"
|
Route Soundcheck tracks to template.applescript
|
set scriptCue to cue updateCueNumber
|
Route Soundcheck tracks to template.applescript
|
set q name of scriptCue to oldTemplateName
|
Route Soundcheck tracks to template.applescript
|
end renameAbsoluteTemplate
|
Route Soundcheck tracks to template.applescript
|
on split_str(str, delimiter)
|
month2mm.applescript
|
set oldDelimiter to AppleScript's text item delimiters
|
month2mm.applescript
|
set ary to every text item of str
|
month2mm.applescript
|
set AppleScript's text item delimiters to oldDelimiter
|
month2mm.applescript
|
return ary
|
month2mm.applescript
|
end split_str
|
month2mm.applescript
|
if script = (class of argv) then
|
month2mm.applescript
|
set _month to current date
|
month2mm.applescript
|
set _month to (item 1 of argv)
|
month2mm.applescript
|
if date = (class of _month) then
|
month2mm.applescript
|
set _month to (item 2 of split_str((short date string of _month), "/")) as integer
|
month2mm.applescript
|
else if string = (class of _month) then
|
month2mm.applescript
|
set _months_en to {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
|
month2mm.applescript
|
if _months_en contains _month then
|
month2mm.applescript
|
repeat with i from 1 to 12
|
month2mm.applescript
|
if (item i of _months_en) = _month then set _month to i
|
month2mm.applescript
|
set _month to _month as integer
|
month2mm.applescript
|
else if integer = (class of _month) then
|
month2mm.applescript
|
set _month_results to {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}
|
month2mm.applescript
|
return item _month of _month_results
|
month2mm.applescript
|
set file_extension to ".cbz"
|
make_comic_book_archive.applescript
|
set theList to selection
|
make_comic_book_archive.applescript
|
repeat with i from 1 to (count of theList)
|
make_comic_book_archive.applescript
|
set theItem to (item i of theList) as alias
|
make_comic_book_archive.applescript
|
set itemPath to quoted form of POSIX path of theItem
|
make_comic_book_archive.applescript
|
set fileName to name of theItem
|
make_comic_book_archive.applescript
|
set theFolder to POSIX path of (container of theItem as alias)
|
make_comic_book_archive.applescript
|
set zipFile to quoted form of (theFolder & fileName & file_extension)
|
make_comic_book_archive.applescript
|
do shell script "zip -jr " & zipFile & " " & itemPath
|
make_comic_book_archive.applescript
|
on get_volume()
|
get-volume.applescript
|
tell application "iTunes" to return sound volume
|
get-volume.applescript
|
end get_volume
|
get-volume.applescript
|
get_volume()
|
get-volume.applescript
|
repeat with m in theMessages
|
Show-Message.applescript
|
tell m
|
Show-Message.applescript
|
if read status is false then
|
Show-Message.applescript
|
open
|
Show-Message.applescript
|
tell process "Mail" to set frontmost to true
|
Show-Message.applescript
|
display dialog errMsg & return & return & "Error Number: " & errNum buttons {"Cancel", "OK"} default button "OK"
|
Show-Message.applescript
|
on triggered(the_group)
|
set-group-label-1-triggered.scpt
|
set group_records to children of the_group
|
set-group-label-1-triggered.scpt
|
repeat with r in group_records
|
set-group-label-1-triggered.scpt
|
set the label of r to 1
|
set-group-label-1-triggered.scpt
|
end triggered
|
set-group-label-1-triggered.scpt
|
tell application "Preview" to set p to path of document 1
|
Open in Adobe Reader.applescript
|
tell application "Adobe Acrobat Reader DC"
|
Open in Adobe Reader.applescript
|
open p
|
Open in Adobe Reader.applescript
|
on splitPath(path)
|
OpenInTerminal copy.applescript
|
set _delimiters to AppleScript's text item delimiters
|
OpenInTerminal copy.applescript
|
set _array to every text item of path
|
OpenInTerminal copy.applescript
|
set AppleScript's text item delimiters to _delimiters
|
OpenInTerminal copy.applescript
|
return _array
|
OpenInTerminal copy.applescript
|
end splitPath
|
OpenInTerminal copy.applescript
|
set _array to my splitPath("_forklift_path_placeholder_")
|
OpenInTerminal copy.applescript
|
set _nr to the count of _array
|
OpenInTerminal copy.applescript
|
set _lastButOne to _nr - 1
|
OpenInTerminal copy.applescript
|
set _child to the item _lastButOne of _array
|
OpenInTerminal copy.applescript
|
select first window
|
OpenInTerminal copy.applescript
|
set newTab to (create tab with default profile)
|
OpenInTerminal copy.applescript
|
set name to _child
|
OpenInTerminal copy.applescript
|
write text "cd _forklift_path_placeholder_"
|
OpenInTerminal copy.applescript
|
weekNumberForDate(current date)
|
weekNumberForDate.applescript
|
on weekNumberForDate(aDate)
|
weekNumberForDate.applescript
|
script weekNumberForDateHelper
|
weekNumberForDate.applescript
|
property targetDate : aDate
|
weekNumberForDate.applescript
|
copy targetDate to d
|
weekNumberForDate.applescript
|
set time of d to 0
|
weekNumberForDate.applescript
|
repeat until weekday of d is Monday
|
weekNumberForDate.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.