text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
else if item_class is not in {word, line, paragraph, text column, text style range, text} then
|
Script 26-8.applescript
|
set find text preferences to nothing
|
Script 26-8.applescript
|
set change text preferences to nothing
|
Script 26-8.applescript
|
set properties of find change object options to {case sensitive:true, include footnotes:false, include hidden layers:false, include master pages:true, whole word:false}
|
Script 26-8.applescript
|
repeat with i from 1 to count the_finds
|
Script 26-8.applescript
|
set find what of find text preferences to (item i of the_finds)
|
Script 26-8.applescript
|
set change to of change text preferences to (item i of the_changes)
|
Script 26-8.applescript
|
change text the_selection
|
Script 26-8.applescript
|
tell application "Microsoft Word"
|
cur doc RTF link copy.scpt
|
set link to my getDocHTMLLink(active document)
|
cur doc RTF link copy.scpt
|
my copyHTMLasRTFtoClipboard(link)
|
cur doc RTF link copy.scpt
|
on getDocHTMLLink(d)
|
cur doc RTF link copy.scpt
|
set activeDocName to name of d
|
cur doc RTF link copy.scpt
|
set activeDocPath to path of d
|
cur doc RTF link copy.scpt
|
set fullURL to full name of d
|
cur doc RTF link copy.scpt
|
if fullURL does not start with "http" then
|
cur doc RTF link copy.scpt
|
set appURL to "file://" & POSIX path of fullURL
|
cur doc RTF link copy.scpt
|
set appURL to "ms-word:ofe|u|" & fullURL
|
cur doc RTF link copy.scpt
|
set link to "<a href=\"" & appURL & "\">" & activeDocName & "<a>"
|
cur doc RTF link copy.scpt
|
return link
|
cur doc RTF link copy.scpt
|
end getDocHTMLLink
|
cur doc RTF link copy.scpt
|
on copyHTMLasRTFtoClipboard(pstrHTML)
|
cur doc RTF link copy.scpt
|
set lstrCMD to "echo " & quoted form of pstrHTML & " | textutil -format html -convert rtf -stdin -stdout | pbcopy -Prefer rtf"
|
cur doc RTF link copy.scpt
|
do shell script lstrCMD
|
cur doc RTF link copy.scpt
|
end copyHTMLasRTFtoClipboard
|
cur doc RTF link copy.scpt
|
tell first document window of front document
|
Copy Task Outline.scpt
|
set selectedItems to selected trees of content
|
Copy Task Outline.scpt
|
if ((count of selectedItems) < 1) then
|
Copy Task Outline.scpt
|
error "Please first select a task"
|
Copy Task Outline.scpt
|
set output to ""
|
Copy Task Outline.scpt
|
repeat with itemItr in selectedItems
|
Copy Task Outline.scpt
|
set output to output & my printTree(itemItr, 0)
|
Copy Task Outline.scpt
|
set the clipboard to output
|
Copy Task Outline.scpt
|
on printTree(node, indent)
|
Copy Task Outline.scpt
|
repeat indent times
|
Copy Task Outline.scpt
|
set output to output & " "
|
Copy Task Outline.scpt
|
set output to output & name of node & (ASCII character 13)
|
Copy Task Outline.scpt
|
repeat with treeItr in trees of node
|
Copy Task Outline.scpt
|
set treeItr to treeItr as any
|
Copy Task Outline.scpt
|
set output to output & my printTree(treeItr, indent + 1)
|
Copy Task Outline.scpt
|
return output
|
Copy Task Outline.scpt
|
end printTree
|
Copy Task Outline.scpt
|
try -- if global variables are given when this script is called by another, use those variables
|
Preset To Before Next Cue.applescript
|
cueListName
|
Preset To Before Next Cue.applescript
|
on error
|
Preset To Before Next Cue.applescript
|
set cueListName to "Main Cue List"
|
Preset To Before Next Cue.applescript
|
set loopCues to {} -- adds cues that infinite loop, and removes them as they stop
|
Preset To Before Next Cue.applescript
|
set fadeCues to {} -- adds cues that fade levels of loopCues, but do not stop them
|
Preset To Before Next Cue.applescript
|
set groupLoops to {} -- adds group cues that contain loopCues (used within handler)
|
Preset To Before Next Cue.applescript
|
tell application id "com.figure53.Qlab.4" to tell front workspace
|
Preset To Before Next Cue.applescript
|
set theCue to playback position of (first cue list whose q name is cueListName)
|
Preset To Before Next Cue.applescript
|
set theCueID to uniqueID of theCue
|
Preset To Before Next Cue.applescript
|
set allCues to every cue of (first cue list whose q name is cueListName)
|
Preset To Before Next Cue.applescript
|
set {loopCues, fadeCues} to my checkForCues(allCues, loopCues, fadeCues, groupLoops, theCueID, cueListName)
|
Preset To Before Next Cue.applescript
|
repeat with eachCue in loopCues
|
Preset To Before Next Cue.applescript
|
set eachCue to cue id eachCue
|
Preset To Before Next Cue.applescript
|
set cuePreWait to pre wait of eachCue
|
Preset To Before Next Cue.applescript
|
set cueDuration to duration of eachCue
|
Preset To Before Next Cue.applescript
|
set cuePostWait to post wait of eachCue
|
Preset To Before Next Cue.applescript
|
load eachCue time (cuePreWait + cueDuration + cuePostWait)
|
Preset To Before Next Cue.applescript
|
start eachCue
|
Preset To Before Next Cue.applescript
|
repeat with eachCue in fadeCues
|
Preset To Before Next Cue.applescript
|
on checkForCues(theCues, loopCues, fadeCues, groupLoops, theCueID, cueListName)
|
Preset To Before Next Cue.applescript
|
repeat with eachCue in theCues
|
Preset To Before Next Cue.applescript
|
set eachCueID to uniqueID of eachCue
|
Preset To Before Next Cue.applescript
|
if eachCueID is theCueID then exit repeat
|
Preset To Before Next Cue.applescript
|
set eachCueType to q type of eachCue
|
Preset To Before Next Cue.applescript
|
if eachCueType is "Audio" then
|
Preset To Before Next Cue.applescript
|
if my checkForLoop(eachCue) is true then
|
Preset To Before Next Cue.applescript
|
set end of loopCues to (uniqueID of eachCue)
|
Preset To Before Next Cue.applescript
|
set parentCue to parent of eachCue
|
Preset To Before Next Cue.applescript
|
repeat while parent of parentCue is not (first cue list whose q name is cueListName)
|
Preset To Before Next Cue.applescript
|
set end of groupLoops to (uniqueID of parent of eachCue)
|
Preset To Before Next Cue.applescript
|
set parentCue to parent of parentCue
|
Preset To Before Next Cue.applescript
|
else if eachCueType is "Stop" then
|
Preset To Before Next Cue.applescript
|
set eachCueTarget to (uniqueID of cue target of eachCue)
|
Preset To Before Next Cue.applescript
|
set eachLoopPosition to 1
|
Preset To Before Next Cue.applescript
|
repeat with eachLoop in loopCues
|
Preset To Before Next Cue.applescript
|
if eachCueTarget is in eachLoop then
|
Preset To Before Next Cue.applescript
|
set item eachLoopPosition of loopCues to ""
|
Preset To Before Next Cue.applescript
|
repeat with eachGroup in groupLoops
|
Preset To Before Next Cue.applescript
|
if eachCueTarget is in groupLoops then
|
Preset To Before Next Cue.applescript
|
set eachLoopPosition to eachLoopPosition + 1
|
Preset To Before Next Cue.applescript
|
else if eachCueType is "Fade" then
|
Preset To Before Next Cue.applescript
|
if stop target when done of eachCue is true then
|
Preset To Before Next Cue.applescript
|
else if stop target when done of eachCue is false then
|
Preset To Before Next Cue.applescript
|
set end of fadeCues to (uniqueID of eachCue)
|
Preset To Before Next Cue.applescript
|
else if eachCueType is "Group" then
|
Preset To Before Next Cue.applescript
|
my checkForCues((every cue of eachCue), loopCues, fadeCues, groupLoops, theCueID, cueListName)
|
Preset To Before Next Cue.applescript
|
return {loopCues, fadeCues}
|
Preset To Before Next Cue.applescript
|
end checkForCues
|
Preset To Before Next Cue.applescript
|
on checkForLoop(theCue) -- returns true or false
|
Preset To Before Next Cue.applescript
|
set theCueType to q type of theCue
|
Preset To Before Next Cue.applescript
|
if theCueType is "Audio" then
|
Preset To Before Next Cue.applescript
|
set theCueLoop to (infinite loop of theCue)
|
Preset To Before Next Cue.applescript
|
log q name of theCue & " - " & theCueLoop
|
Preset To Before Next Cue.applescript
|
return theCueLoop
|
Preset To Before Next Cue.applescript
|
end checkForLoop
|
Preset To Before Next Cue.applescript
|
property livePlaylists : {}
|
SmartIpodSync.applescript
|
property editable : true
|
SmartIpodSync.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.