text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
if timeToSetOffset = 0 then | Defer 1 week.scpt |
return (theDateToSet + (time of originalDate)) | Defer 1 week.scpt |
if originalDate > theDateToSet then | Defer 1 week.scpt |
return (originalDate + timeToSetOffset) | Defer 1 week.scpt |
end getDateToSetBasedOnOriginalDate | Defer 1 week.scpt |
on getCurrentDatePlusOffset() | Defer 1 week.scpt |
return (current date) - (time of (current date)) + timeToSetOffset | Defer 1 week.scpt |
end getCurrentDatePlusOffset | Defer 1 week.scpt |
on fixDueDateIfBeforeDeferDate(theTask) | Defer 1 week.scpt |
if due date of theTask is not missing value then | Defer 1 week.scpt |
if defer date of theTask is not missing value then | Defer 1 week.scpt |
if due date of theTask < defer date of theTask then | Defer 1 week.scpt |
set due date of theTask to defer date of theTask | Defer 1 week.scpt |
end fixDueDateIfBeforeDeferDate | Defer 1 week.scpt |
on isIntervalOfAWeek(date1, date2) | Defer 1 week.scpt |
isIntervalOfXDays(date1, date2, 7) | Defer 1 week.scpt |
end isIntervalOfAWeek | Defer 1 week.scpt |
on isIntervalOfXDays(date1, date2, daysInterval) | Defer 1 week.scpt |
set daysApart to getDayNumber(date1) - getDayNumber(date2) | Defer 1 week.scpt |
if (daysApart mod daysInterval) is 0 then | Defer 1 week.scpt |
end isIntervalOfXDays | Defer 1 week.scpt |
on getDayNumber(theDate) | Defer 1 week.scpt |
set currentYear to date ("1/1/" & (year of (current date))) | Defer 1 week.scpt |
return (theDate - currentYear) div days | Defer 1 week.scpt |
end getDayNumber | Defer 1 week.scpt |
global delay1 | getPageTitleAndURLFromFirefox.scpt |
global delay2 | getPageTitleAndURLFromFirefox.scpt |
set delay1 to 0.1 | getPageTitleAndURLFromFirefox.scpt |
set delay2 to 0.5 | getPageTitleAndURLFromFirefox.scpt |
set isRunning to my isRunning("firefox-bin") | getPageTitleAndURLFromFirefox.scpt |
tell application "Firefox" | getPageTitleAndURLFromFirefox.scpt |
if ((count of windows) is greater than 1) then | getPageTitleAndURLFromFirefox.scpt |
set t to name of window 1 | getPageTitleAndURLFromFirefox.scpt |
set oldclp to (the clipboard) | getPageTitleAndURLFromFirefox.scpt |
repeat 20 times | getPageTitleAndURLFromFirefox.scpt |
set fm to frontmost | getPageTitleAndURLFromFirefox.scpt |
if (fm) then | getPageTitleAndURLFromFirefox.scpt |
my copyUrl() | getPageTitleAndURLFromFirefox.scpt |
delay delay1 | getPageTitleAndURLFromFirefox.scpt |
delay delay2 | getPageTitleAndURLFromFirefox.scpt |
set tmp to my replace(tmp, "$url$", (the clipboard)) | getPageTitleAndURLFromFirefox.scpt |
set the clipboard to tmp | getPageTitleAndURLFromFirefox.scpt |
my paste() | getPageTitleAndURLFromFirefox.scpt |
set the clipboard to oldclp | getPageTitleAndURLFromFirefox.scpt |
on paste() | getPageTitleAndURLFromFirefox.scpt |
key down command | getPageTitleAndURLFromFirefox.scpt |
key up command | getPageTitleAndURLFromFirefox.scpt |
keystroke "v" | getPageTitleAndURLFromFirefox.scpt |
end paste | getPageTitleAndURLFromFirefox.scpt |
on copyUrl() | getPageTitleAndURLFromFirefox.scpt |
tell process "firefox-bin" | getPageTitleAndURLFromFirefox.scpt |
keystroke "l" | getPageTitleAndURLFromFirefox.scpt |
keystroke "c" | getPageTitleAndURLFromFirefox.scpt |
end copyUrl | getPageTitleAndURLFromFirefox.scpt |
property author : "Tadeas Uhlir" | nexttofront.applescript |
property version : "1.0" | nexttofront.applescript |
property name : "Next to Front" | nexttofront.applescript |
use omniLib : script "omnifocuslib" | nexttofront.applescript |
set nextName to "🗄Next" | nexttofront.applescript |
set nextTag to (first item of (get flattened tags of front document whose name is nextName)) | nexttofront.applescript |
set validSelectedItemsList to omniLib's getSelectedActions() | nexttofront.applescript |
repeat with taskOne in validSelectedItemsList | nexttofront.applescript |
if name of tags of taskOne contains nextName then | nexttofront.applescript |
remove nextTag from tags of taskOne | nexttofront.applescript |
add nextTag to front of tag of taskOne | nexttofront.applescript |
variableCueListName | Route Soundcheck tracks to template.applescript |
set variableCueListName to "Other scripts & utilities" -- cue list containing Script Variables | Route Soundcheck tracks to template.applescript |
templateCueListName | Route Soundcheck tracks to template.applescript |
set templateCueListName to "Other scripts & utilities" -- cue list containing template cues | Route Soundcheck tracks to template.applescript |
templateGroupCueName | Route Soundcheck tracks to template.applescript |
set templateGroupCueName to "Soundcheck routing templates" -- group cue containing all template cues | Route Soundcheck tracks to template.applescript |
cueListToRoute | Route Soundcheck tracks to template.applescript |
set cueListToRoute to "Soundcheck" -- the name of the soundcheck cue list. If this is blank, it will use selected cues | Route Soundcheck tracks to template.applescript |
displayCurrentStateCueNumber | Route Soundcheck tracks to template.applescript |
set displayCurrentStateCueNumber to "Route S-Check" -- the number of the cue which runs or triggers this script | Route Soundcheck tracks to template.applescript |
set audioChannelCount to notes of (first cue of (first cue list whose q name is variableCueListName) whose q name is "Output channel count") -- total number of Qlab output | Route Soundcheck tracks to template.applescript |
property util : script "Applescript Utilities" | Route Soundcheck tracks to template.applescript |
set containerList to (first cue list whose q name is templateCueListName) | Route Soundcheck tracks to template.applescript |
set containerCue to first cue in containerList whose q name is templateGroupCueName | Route Soundcheck tracks to template.applescript |
set routingTemplates to (cues in containerCue) | Route Soundcheck tracks to template.applescript |
set routingNames to {} | Route Soundcheck tracks to template.applescript |
repeat with eachCue in routingTemplates | Route Soundcheck tracks to template.applescript |
set end of routingNames to (q name of eachCue) | Route Soundcheck tracks to template.applescript |
set whatTemplate to choose from list routingNames | Route Soundcheck tracks to template.applescript |
if whatTemplate is false then | Route Soundcheck tracks to template.applescript |
set whatTemplateCue to first cue in containerCue whose q name is whatTemplate | Route Soundcheck tracks to template.applescript |
if cueListToRoute is not "" then | Route Soundcheck tracks to template.applescript |
set selectedCues to (cues in (first cue list whose q name is cueListToRoute) as list) | Route Soundcheck tracks to template.applescript |
set selectedCues to (selected as list) | Route Soundcheck tracks to template.applescript |
if (whatTemplate as string) starts with "+" or (whatTemplate as string) starts with "-" then -- for additional routing e.g. add +Subs, +Front Fills. | Route Soundcheck tracks to template.applescript |
repeat with eachCue in selectedCues | Route Soundcheck tracks to template.applescript |
set cueType to q type of eachCue | Route Soundcheck tracks to template.applescript |
if cueType is "Audio" then | Route Soundcheck tracks to template.applescript |
repeat with eachChannel from 1 to audioChannelCount | Route Soundcheck tracks to template.applescript |
set theLevel to getLevel whatTemplateCue row 0 column eachChannel | Route Soundcheck tracks to template.applescript |
if theLevel is greater than -60 then -- checks this is a channel to be affected | Route Soundcheck tracks to template.applescript |
if (getLevel eachCue row 0 column eachChannel) is not theLevel then -- toggles | Route Soundcheck tracks to template.applescript |
setLevel eachCue row 0 column eachChannel db theLevel | Route Soundcheck tracks to template.applescript |
my renameAdditionalTemplate(whatTemplateCue, "-") | Route Soundcheck tracks to template.applescript |
set additional to "add" | Route Soundcheck tracks to template.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.