text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
activate application "Google Chrome" | Chrome Library.scpt |
if quit delay ≠ 0 then set quit delay to 0 | Chrome Library.scpt |
tell process "Google Chrome" | Chrome Library.scpt |
perform action "AXRaise" of window targetWindow | Chrome Library.scpt |
tell front window to set active tab index to targetTab | Chrome Library.scpt |
end activateMatchingTab | Chrome Library.scpt |
property btnTitle : "Stop Video" | zoomVideoState.1s.scpt |
set returnValue to "VIDEO ACTIVE" | zoomVideoState.1s.scpt |
set returnValue to "NO VIDEO" | zoomVideoState.1s.scpt |
zoomVideoState" | zoomVideoState.1s.scpt |
set theCount to 9 | select_9_up.applescript |
tell front document of application "Capture One 22" | select_9_up.applescript |
set lastIndex to count of variants | select_9_up.applescript |
set firstIndex to (count of variants) - (theCount - 1) | select_9_up.applescript |
set variantsToSelect to variants firstIndex thru lastIndex | select_9_up.applescript |
deselect it variants (variants whose selected is true) | select_9_up.applescript |
select it variants variantsToSelect | select_9_up.applescript |
set d to path of front document | Tag Current Skim Document.applescript |
set t to do shell script "/opt/local/bin/tag --list --no-name " & quoted form of d | Tag Current Skim Document.applescript |
set n to text returned of (display dialog "Current tags: " & t & " | Tag Current Skim Document.applescript |
Tags to add: " default answer "") | Tag Current Skim Document.applescript |
do shell script "/opt/local/bin/tag --add " & quoted form of n & " " & quoted form of d | Tag Current Skim Document.applescript |
display dialog "Enter the first 12 digits of your ISBN:" default answer "97808163" | checkDigitCheck.applescript |
set myTestString to text returned of result | checkDigitCheck.applescript |
set myArray to my theSplit(myTestString, "") | checkDigitCheck.applescript |
on theSplit(theString, theDelimiter) | checkDigitCheck.applescript |
end theSplit | checkDigitCheck.applescript |
set isbn1 to (item 1 of myArray) * 1 | checkDigitCheck.applescript |
set isbn2 to (item 2 of myArray) * 3 | checkDigitCheck.applescript |
set isbn3 to (item 3 of myArray) * 1 | checkDigitCheck.applescript |
set isbn4 to (item 4 of myArray) * 3 | checkDigitCheck.applescript |
set isbn5 to (item 5 of myArray) * 1 | checkDigitCheck.applescript |
set isbn6 to (item 6 of myArray) * 3 | checkDigitCheck.applescript |
set isbn7 to (item 7 of myArray) * 1 | checkDigitCheck.applescript |
set isbn8 to (item 8 of myArray) * 3 | checkDigitCheck.applescript |
set isbn9 to (item 9 of myArray) * 1 | checkDigitCheck.applescript |
set isbn10 to (item 10 of myArray) * 3 | checkDigitCheck.applescript |
set isbn11 to (item 11 of myArray) * 1 | checkDigitCheck.applescript |
set isbn12 to (item 12 of myArray) * 3 | checkDigitCheck.applescript |
set isbnSum to isbn1 + isbn2 + isbn3 + isbn4 + isbn5 + isbn6 + isbn7 + isbn8 + isbn9 + isbn10 + isbn11 + isbn12 | checkDigitCheck.applescript |
set isbnRemain to isbnSum mod 10 | checkDigitCheck.applescript |
if isbnRemain > 0 then | checkDigitCheck.applescript |
set isbnCheck to 10 - isbnRemain | checkDigitCheck.applescript |
set isbnCheck to 0 | checkDigitCheck.applescript |
display dialog "your check number is: " & isbnCheck & " | checkDigitCheck.applescript |
" & "Full ISBN: " & myTestString & isbnCheck | checkDigitCheck.applescript |
flip this_file with horizontal | _Flip Horizontal.applescript |
click menu item "Integrated Only" of menu 1 | gpu_integrated.applescript |
set front_window_target to target of front window | Git Pull Subfolders.applescript |
set subfolders to name of folders of folder (front_window_target as alias) | Git Pull Subfolders.applescript |
repeat with current_folder in subfolders | Git Pull Subfolders.applescript |
set current_path to POSIX path of ((front_window_target as text) & current_folder as text) | Git Pull Subfolders.applescript |
do shell script "cd \"" & current_path & "\"; git pull" | Git Pull Subfolders.applescript |
display dialog "Finished Git Pull in Subfolders at: " & (POSIX path of (front_window_target as text)) buttons {"OK"} with title "Pulls Done" | Git Pull Subfolders.applescript |
my dateFromStringUsingFormat("2013/11/02 13:04:55", "yyyy/MM/dd HH:mm:ss") | file0.applescript |
my displayDate(current date, "yyyy-MM-dd HH:mm:ss") | file0.applescript |
my convertDateExpression("2013/11/02 13:04:55", "yyyy/MM/dd HH:mm:ss", "M'月'd'日' ah'時'm'分'") | file0.applescript |
on dateFromStringUsingFormat(dateString as text, dateFormat as text) | file0.applescript |
set dateFormatter to current application's NSDateFormatter's alloc()'s init() | file0.applescript |
dateFormatter's setDateFormat:dateFormat | file0.applescript |
dateFormatter's setTimeZone:(current application's NSTimeZone's timeZoneForSecondsFromGMT:0) | file0.applescript |
return (dateFormatter's dateFromString:dateString) as date | file0.applescript |
end dateFromStringUsingFormat | file0.applescript |
on displayDate(aDate as date, dateFormat as text) | file0.applescript |
set timeToGMT to current application's NSCalendar's currentCalendar()'s timeZone's secondsFromGMT() | file0.applescript |
dateFormatter's setTimeZone:(current application's NSTimeZone's timeZoneForSecondsFromGMT:timeToGMT) | file0.applescript |
return (dateFormatter's stringFromDate:(aDate)) as text | file0.applescript |
end displayDate | file0.applescript |
on convertDateExpression(inputdateString, inputDateFormat, outputDateFormat) | file0.applescript |
set aDate to my dateFromStringUsingFormat(inputdateString, inputDateFormat) | file0.applescript |
return my displayDate(aDate, outputDateFormat) | file0.applescript |
end convertDateExpression | file0.applescript |
log "“When Song Finishes, Pause”: player state is " & (player state) | When%20Song%20Finishes,%20Pause.applescript |
set initialCurrentTrackId to (id of current track) | When%20Song%20Finishes,%20Pause.applescript |
log "“When Song Finishes, Pause”: current track is " & (name of current track) | When%20Song%20Finishes,%20Pause.applescript |
repeat until initialCurrentTrackId is not (id of current track) | When%20Song%20Finishes,%20Pause.applescript |
log "“When Song Finishes, Pause”: current track id is “" & (id of current track) & "”, initialCurrentTrackId is “" & initialCurrentTrackId & "”" | When%20Song%20Finishes,%20Pause.applescript |
log "“When Song Finishes, Pause”: issuing pause" | When%20Song%20Finishes,%20Pause.applescript |
set value of slider 1 of tab group 1 of window 1 of process "System Preferences" to 0.75 | dis75.applescript |
getResourcePath({resourceName:"bob", subDirectoryName:"", subDirectoryList:{}}) | getResourcePath.applescript |
on getResourcePath(prefs) | getResourcePath.applescript |
set defaultPrefs to {resourceName:"", subDirectoryName:"", subDirectoryList:{}} | getResourcePath.applescript |
set directoryDelim to "/" | getResourcePath.applescript |
set myPath to (path to me) as string | getResourcePath.applescript |
if myPath ends with ".scpt" then | getResourcePath.applescript |
set {od, AppleScript's text item delimiters} to {AppleScript's text item delimiters, directoryDelim} | getResourcePath.applescript |
set resourcesFolderPath to ((text items 1 thru -3 of myPath) as string) & directoryDelim | getResourcePath.applescript |
if length of subDirectoryName of prefs > 0 then | getResourcePath.applescript |
set resourcePath to (resourcesFolderPath & subDirectoryName of prefs & directoryDelim & resourceName of prefs) as string | getResourcePath.applescript |
else if length of subDirectoryList of prefs > 0 then | getResourcePath.applescript |
set {oldDelims, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {directoryDelim}} | getResourcePath.applescript |
set subDirectoryNestedName to subDirectoryList of prefs as text | getResourcePath.applescript |
set resourcePath to (resourcesFolderPath & subDirectoryNestedName & directoryDelim & resourceName of prefs) as string | getResourcePath.applescript |
set resourcePath to (resourcesFolderPath & resourceName of prefs) as string | getResourcePath.applescript |
set resourcePath to ((path to resource resourceName of prefs in directory (subDirectoryName of prefs)) as string) | getResourcePath.applescript |
set resourcePath to ((path to resource resourceName of prefs in directory subDirectoryNestedName) as string) | getResourcePath.applescript |
set resourcePath to ((path to resource resourceName of prefs) as string) | getResourcePath.applescript |
return resourcePath | getResourcePath.applescript |
error "Couldn't getResourcePath - " & errMsg number errNum | getResourcePath.applescript |
end getResourcePath | getResourcePath.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.