text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
repeat numberOfDevices times --loop through each devices checking for Connected string
|
internalmic.scpt
|
if item counter of myList contains "DR-BT101" then
|
internalmic.scpt
|
if item counter of myList contains "Connected: Yes" then
|
internalmic.scpt
|
else if item counter of myList contains "Connected: No" then
|
internalmic.scpt
|
display dialog "Error Parsing" --this shouldn't happen
|
internalmic.scpt
|
if the_name is equal to "Jen" then
|
Script 14-7.applescript
|
display dialog "By how much would you like to offset the midi trigger value of the selected cues?" default answer "" buttons {"Offset", "Cancel"} cancel button "Cancel" default button "Offset"
|
Offset midi triggers of selected cues.applescript
|
set offsetAmount to text returned of result as integer
|
Offset midi triggers of selected cues.applescript
|
set oldMidiTrigger to midi trigger of eachCue
|
Offset midi triggers of selected cues.applescript
|
set oldMidiCommand to midi command of eachCue
|
Offset midi triggers of selected cues.applescript
|
set oldByteOne to midi byte one of eachCue
|
Offset midi triggers of selected cues.applescript
|
set oldByteTwo to midi byte two of eachCue
|
Offset midi triggers of selected cues.applescript
|
if oldMidiCommand is program_change then
|
Offset midi triggers of selected cues.applescript
|
if (oldByteOne + offsetAmount) is less than or equal to 127 then
|
Offset midi triggers of selected cues.applescript
|
set midi trigger of eachCue to oldMidiTrigger
|
Offset midi triggers of selected cues.applescript
|
set midi byte one of eachCue to oldByteOne + offsetAmount
|
Offset midi triggers of selected cues.applescript
|
set midi byte one of eachCue to (oldByteOne + offsetAmount - 128)
|
Offset midi triggers of selected cues.applescript
|
display dialog "ALERT: Cue number " & q number of eachCue & " requires a change of midi channel"
|
Offset midi triggers of selected cues.applescript
|
tell picture box 1 of document 1
|
Image- Change scale for 72 dpi to 300.applescript
|
copy (scale of image 1 as list) to {imageHeight, imageWidth}
|
Image- Change scale for 72 dpi to 300.applescript
|
copy {imageHeight as real, imageWidth as real} to {imageHeight, imageWidth}
|
Image- Change scale for 72 dpi to 300.applescript
|
set newPercentH to imageHeight * 300 / 72
|
Image- Change scale for 72 dpi to 300.applescript
|
set newPercentW to imageWidth * 300 / 72
|
Image- Change scale for 72 dpi to 300.applescript
|
set scale of image 1 to {newPercentH, newPercentW}
|
Image- Change scale for 72 dpi to 300.applescript
|
set isMuted to output muted of (get volume settings)
|
mute.applescript
|
if isMuted then
|
mute.applescript
|
if runningProcess("Safari") then
|
disable%20safari%20extension.scpt
|
set defaultLanguage to defaultLanguageCheck()
|
disable%20safari%20extension.scpt
|
if defaultLanguage is "ja" then
|
disable%20safari%20extension.scpt
|
click menu bar 1's menu bar item "開発"
|
disable%20safari%20extension.scpt
|
click menu item "機能拡張を無効にする" of menu 1 of menu bar 1's menu bar item "開発"
|
disable%20safari%20extension.scpt
|
else if defaultLanguage is "en" then
|
disable%20safari%20extension.scpt
|
click menu bar 1's menu bar item "Develop"
|
disable%20safari%20extension.scpt
|
click menu item "Disable Extensions" of menu 1 of menu bar 1's menu bar item "Develop"
|
disable%20safari%20extension.scpt
|
on defaultLanguageCheck()
|
disable%20safari%20extension.scpt
|
set aRes to paragraphs of (do shell script " defaults read -g AppleLanguages")
|
disable%20safari%20extension.scpt
|
set defaultLangurage to item 2 of aRes
|
disable%20safari%20extension.scpt
|
set bRes to repChar(defaultLangurage, ",", "") of me
|
disable%20safari%20extension.scpt
|
set cRes to repChar(bRes, " ", "") of me
|
disable%20safari%20extension.scpt
|
return cRes
|
disable%20safari%20extension.scpt
|
end defaultLanguageCheck
|
disable%20safari%20extension.scpt
|
on repChar(origText, targStr, repStr)
|
disable%20safari%20extension.scpt
|
set {txdl, AppleScript's text item delimiters} to {AppleScript's text item delimiters, targStr}
|
disable%20safari%20extension.scpt
|
set temp to text items of origText
|
disable%20safari%20extension.scpt
|
set AppleScript's text item delimiters to repStr
|
disable%20safari%20extension.scpt
|
set res to temp as text
|
disable%20safari%20extension.scpt
|
set AppleScript's text item delimiters to txdl
|
disable%20safari%20extension.scpt
|
end repChar
|
disable%20safari%20extension.scpt
|
if toolbar visible then
|
Toggle-Minimal-View.applescript
|
set event log visible to false
|
Toggle-Minimal-View.applescript
|
set toolbar visible to false
|
Toggle-Minimal-View.applescript
|
set tab display mode to none
|
Toggle-Minimal-View.applescript
|
set event log visible to true
|
Toggle-Minimal-View.applescript
|
set toolbar visible to true
|
Toggle-Minimal-View.applescript
|
set tab display mode to result and variables tab
|
Toggle-Minimal-View.applescript
|
fmGUI_ManageSecurity_GoToTab_PrivSets({fullAccessAccountName:"admin", fullAccessPassword:""})
|
fmGUI_ManageSecurity_GoToTab_PrivSets.applescript
|
fmGUI_ManageSecurity_GotoTab({tabName:"Privilege Sets"} & prefs)
|
fmGUI_ManageSecurity_GoToTab_PrivSets.applescript
|
set viewByPopUpButton to pop up button "View by:" of tab group 1 of window 1
|
fmGUI_ManageSecurity_GoToTab_PrivSets.applescript
|
fmGUI_PopupSet({objRef:viewByPopUpButton, objValue:"Name"})
|
fmGUI_ManageSecurity_GoToTab_PrivSets.applescript
|
target of window 1
|
duplicatefinderwindow.scpt
|
make new Finder window to result
|
duplicatefinderwindow.scpt
|
make new Finder window to home
|
duplicatefinderwindow.scpt
|
if image_width < image_height then
|
Rotate 4 Portrait2Landscape.applescript
|
do shell script "mdls " & quoted form of POSIX path of (f as string) & " | open -f"
|
Show Metadata.applescript
|
fileParentFromPath({filePath:"/my/fake/path/someFile.txt", pathDelim:"/"})
|
fileParentFromPath.applescript
|
on fileParentFromPath(prefs)
|
fileParentFromPath.applescript
|
set filePath to filePath as string
|
fileParentFromPath.applescript
|
if filePath is "" then
|
fileParentFromPath.applescript
|
error "Cannot find a parent folder for a path that is blank." number -1027
|
fileParentFromPath.applescript
|
if last character of filePath is pathDelim then
|
fileParentFromPath.applescript
|
set filePath to (text 1 through -2 of filePath) as string
|
fileParentFromPath.applescript
|
set {od, AppleScript's text item delimiters} to {AppleScript's text item delimiters, pathDelim}
|
fileParentFromPath.applescript
|
if (count of text items of filePath) is 1 then
|
fileParentFromPath.applescript
|
error "Cannot find a parent folder of a DISK: " & filePath & "." number -1027
|
fileParentFromPath.applescript
|
set enclosingFolder to (text items 1 through -2 of filePath as string)
|
fileParentFromPath.applescript
|
return enclosingFolder & pathDelim
|
fileParentFromPath.applescript
|
error "fileParentFromPath FAILED: " & errMsg number errNum
|
fileParentFromPath.applescript
|
end fileParentFromPath
|
fileParentFromPath.applescript
|
set apsfolder to alias "Macintosh HD:Users:kevinfunderburg:github:AppleScripts:"
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set spec to file spec
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set n to kl's SearchandReplace(name of file spec, "." & name extension of file spec, "")
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set fname to kl's SearchandReplace(n, " ", "-")
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set outpath to POSIX path of (choose folder default location apsfolder)
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set src to source text
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
set src to kl's SearchandReplace(src, return, linefeed)
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
do shell script "echo " & quoted form of src & " > \"" & outpath & "/" & fname & ".applescript\""
|
Save-a-Copy-of-Front-Script-as-Text.applescript
|
on insertItemInList(theItem, theList, thePosition)
|
Applescript Utilities.applescript
|
if thePosition is 0 then
|
Applescript Utilities.applescript
|
else if thePosition is less than 0 then
|
Applescript Utilities.applescript
|
if (thePosition * -1) is greater than theListCount + 1 then return false
|
Applescript Utilities.applescript
|
if thePosition is greater than theListCount + 1 then return false
|
Applescript Utilities.applescript
|
if thePosition is less than 0 then
|
Applescript Utilities.applescript
|
set theList to reverse of theList
|
Applescript Utilities.applescript
|
set thePosition to (thePosition * -1)
|
Applescript Utilities.applescript
|
if thePosition is 1 then
|
Applescript Utilities.applescript
|
else if thePosition is (theListCount + 1) then
|
Applescript Utilities.applescript
|
set end of theList to theItem
|
Applescript Utilities.applescript
|
set theList to (items 1 thru (thePosition - 1) of theList) & theItem & (items thePosition thru -1 of theList)
|
Applescript Utilities.applescript
|
end insertItemInList
|
Applescript Utilities.applescript
|
set theListNames to {}
|
Applescript Utilities.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.