text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
keystroke course
|
3 - Ramos.applescript
|
set process_list to the name of every process whose background only is false
|
my-kill-all.scpt
|
set white_list to {"Script Editor"}
|
my-kill-all.scpt
|
if process_name is not in white_list then
|
my-kill-all.scpt
|
tell application process_name to quit
|
my-kill-all.scpt
|
set thisCaseId to "ui-util-spotCheck"
|
ui-util.applescript
|
Find By ID - not found
|
ui-util.applescript
|
Manual: Find By ID - found
|
ui-util.applescript
|
set uiButtons to buttons of group 1 of toolbar 1 of front window
|
ui-util.applescript
|
set sut to new(uiButtons)
|
ui-util.applescript
|
assertThat of std given condition:sut's findById("solid") is missing value, messageOnFail:"Failed spot check"
|
ui-util.applescript
|
assertThat of std given condition:sut's findById("SidebarButton") is not missing value, messageOnFail:"Failed spot check"
|
ui-util.applescript
|
on new(pUiElements)
|
ui-util.applescript
|
script ElementsInstance
|
ui-util.applescript
|
property uiElements : pUiElements
|
ui-util.applescript
|
on findById(targetIdentifier)
|
ui-util.applescript
|
repeat with nextUI in uiElements
|
ui-util.applescript
|
set uiId to get value of attribute "AXIdentifier" of nextUI
|
ui-util.applescript
|
if uiId is equal to targetIdentifier then return nextUI
|
ui-util.applescript
|
end findById
|
ui-util.applescript
|
set logger to std's import("logger")'s new("ui-util")
|
ui-util.applescript
|
tell application "Finder" to set currentFolder to insertion location as alias
|
BAB-NewFileHere.applescript
|
set newfilename to ""
|
BAB-NewFileHere.applescript
|
display dialog "请输入完整的文件名" default answer newfilename buttons {"取消", "确定"} default button 2
|
BAB-NewFileHere.applescript
|
if button returned of result is "确定" then
|
BAB-NewFileHere.applescript
|
set newfilename to text returned of the result
|
BAB-NewFileHere.applescript
|
set currentFile to POSIX path of currentFolder & newfilename
|
BAB-NewFileHere.applescript
|
do shell script "touch \"" & currentFile & "\";open \"" & currentFile & "\""
|
BAB-NewFileHere.applescript
|
set my_string to "This is a line
|
Script 7-1.applescript
|
The next line is here
|
Script 7-1.applescript
|
I'm third
|
Script 7-1.applescript
|
Last paragraph"
|
Script 7-1.applescript
|
every paragraph of my_string
|
Script 7-1.applescript
|
keystroke "=== " & name of current user & ": " & (current date) & " ===
|
insertUserAndDate.applescript
|
set listOfColumns to name of columns
|
Numbers to Excel Attendance.applescript
|
set chosenColumn to choose from list listOfColumns
|
Numbers to Excel Attendance.applescript
|
set chosenColumn to item 1 of chosenColumn
|
Numbers to Excel Attendance.applescript
|
tell column chosenColumn
|
Numbers to Excel Attendance.applescript
|
set cellValues to {}
|
Numbers to Excel Attendance.applescript
|
repeat with i from 2 to count of cells
|
Numbers to Excel Attendance.applescript
|
set end of cellValues to value of cell i
|
Numbers to Excel Attendance.applescript
|
set listOfDocuments to name of workbooks
|
Numbers to Excel Attendance.applescript
|
tell workbook chosenDocument
|
Numbers to Excel Attendance.applescript
|
set theResponse to display dialog "which is the first cell?" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue"
|
Numbers to Excel Attendance.applescript
|
display dialog "You entered: " & (text returned of theResponse) & "."
|
Numbers to Excel Attendance.applescript
|
set columnIndex to first column index of cell (text returned of theResponse)
|
Numbers to Excel Attendance.applescript
|
set rowIndex to first row index of cell (text returned of theResponse)
|
Numbers to Excel Attendance.applescript
|
tell column columnIndex
|
Numbers to Excel Attendance.applescript
|
repeat with i from 1 to count of cellValues
|
Numbers to Excel Attendance.applescript
|
if item i of cellValues is true then
|
Numbers to Excel Attendance.applescript
|
set value of cell (rowIndex - 1 + i) to "P"
|
Numbers to Excel Attendance.applescript
|
else if item i of cellValues is false then
|
Numbers to Excel Attendance.applescript
|
set value of cell (rowIndex - 1 + i) to "A"
|
Numbers to Excel Attendance.applescript
|
else if item i of cellValues is "✅" then
|
Numbers to Excel Attendance.applescript
|
else if item i of cellValues is "📝" then
|
Numbers to Excel Attendance.applescript
|
set value of cell (rowIndex - 1 + i) to "E"
|
Numbers to Excel Attendance.applescript
|
else if item i of cellValues is "⏳" then
|
Numbers to Excel Attendance.applescript
|
set value of cell (rowIndex - 1 + i) to "L"
|
Numbers to Excel Attendance.applescript
|
else if item i of cellValues is "❌" then
|
Numbers to Excel Attendance.applescript
|
textLower({str:"HeLLo"})
|
textLower.applescript
|
on textLower(prefs)
|
textLower.applescript
|
return (do shell script ("echo " & str of prefs & " | tr A-Z a-z;"))
|
textLower.applescript
|
error "unable to textLower - " & errMsg number errNum
|
textLower.applescript
|
end textLower
|
textLower.applescript
|
set newPreset to make new EQ preset
|
EargasmExplosion(Limiter).scpt
|
set name of newPreset to "Eargasm Explosion (Limiter)"
|
EargasmExplosion(Limiter).scpt
|
set band 1 of newPreset to -4.1
|
EargasmExplosion(Limiter).scpt
|
set band 2 of newPreset to -1.1
|
EargasmExplosion(Limiter).scpt
|
set band 3 of newPreset to 1.9
|
EargasmExplosion(Limiter).scpt
|
set band 4 of newPreset to -0.1
|
EargasmExplosion(Limiter).scpt
|
set band 5 of newPreset to -1.1
|
EargasmExplosion(Limiter).scpt
|
set band 6 of newPreset to -2.1
|
EargasmExplosion(Limiter).scpt
|
set band 7 of newPreset to -0.1
|
EargasmExplosion(Limiter).scpt
|
set band 8 of newPreset to -3.1
|
EargasmExplosion(Limiter).scpt
|
set band 9 of newPreset to 3.9
|
EargasmExplosion(Limiter).scpt
|
set band 10 of newPreset to 0.9
|
EargasmExplosion(Limiter).scpt
|
set preamp of newPreset to 0
|
EargasmExplosion(Limiter).scpt
|
set current EQ preset to newPreset
|
EargasmExplosion(Limiter).scpt
|
on format_time(currTime as date)
|
export.scpt
|
set stamp to the time of currTime
|
export.scpt
|
set h to text -2 thru -1 of ("00" & (stamp div (60 * 60)))
|
export.scpt
|
set m to text -2 thru -1 of ("00" & (stamp - (60 * 60) * h) div 60)
|
export.scpt
|
set s to text -2 thru -1 of ("00" & (stamp - ((60 * 60) * h + 60 * m)))
|
export.scpt
|
return h & ":" & m & ":" & s
|
export.scpt
|
end format_time
|
export.scpt
|
on format_date(currTime as date)
|
export.scpt
|
set y to text -4 thru -1 of ("0000" & year of currTime)
|
export.scpt
|
set m to text -2 thru -1 of ("00" & (month of currTime as integer))
|
export.scpt
|
set d to text -2 thru -1 of ("00" & day of currTime)
|
export.scpt
|
on format_datetime(currTime as date)
|
export.scpt
|
format_date(currTime) & " " & format_time(currTime)
|
export.scpt
|
end format_datetime
|
export.scpt
|
on replace_chars(this_text as string, search_string as string, replacement_string as string)
|
export.scpt
|
set text item delimiters to the search_string
|
export.scpt
|
set item_list to every text item of this_text
|
export.scpt
|
set text item delimiters to the replacement_string
|
export.scpt
|
on null_or_datetime(datetime)
|
export.scpt
|
if datetime is equal to missing value then
|
export.scpt
|
return "null"
|
export.scpt
|
return "\"" & format_datetime(datetime) of me & "\""
|
export.scpt
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.