text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
if maxLen < minLen then ¬
|
new_tab_current_directory_and_settings.scpt
|
set {big, little, maxLen, minLen} to {little, big, minLen, maxLen}
|
new_tab_current_directory_and_settings.scpt
|
set start to missing value
|
new_tab_current_directory_and_settings.scpt
|
repeat with i from 1 to minLen
|
new_tab_current_directory_and_settings.scpt
|
if item i of big is not equal to item i of little then
|
new_tab_current_directory_and_settings.scpt
|
set start to i
|
new_tab_current_directory_and_settings.scpt
|
if start is missing value then
|
new_tab_current_directory_and_settings.scpt
|
if maxLen is equal to minLen then
|
new_tab_current_directory_and_settings.scpt
|
return items (minLen + 1) through end of big as Unicode text
|
new_tab_current_directory_and_settings.scpt
|
set finish to missing value
|
new_tab_current_directory_and_settings.scpt
|
repeat with i from -1 to -minLen by -1
|
new_tab_current_directory_and_settings.scpt
|
set finish to i
|
new_tab_current_directory_and_settings.scpt
|
if finish is missing value then set finish to -(minLen + 1)
|
new_tab_current_directory_and_settings.scpt
|
return items start through finish of big as Unicode text
|
new_tab_current_directory_and_settings.scpt
|
end textLeftAfterRemovingMatchingHeadAndTail
|
new_tab_current_directory_and_settings.scpt
|
tell application "System Events" to key code 125 -- Down
|
flatener.applescript
|
repeat with anFile in theSel
|
flatener.applescript
|
if kind of anFile is not "folder" then
|
flatener.applescript
|
set parentDirName to name of folder of anFile as string
|
flatener.applescript
|
if (name of anFile as string) does not start with parentDirName then
|
flatener.applescript
|
set name of anFile to parentDirName & " - " & (name of anFile)
|
flatener.applescript
|
display dialog "Que deseas realizar" buttons {"Mostrar iconos", "Ocultar iconos"} with title "Dock " with icon POSIX file "/System/Library/CoreServices/Dock.app/Contents/Resources/Dock.icns" default button 2
|
minimalDesktop.scpt
|
if HideSet is "Ocultar iconos" then
|
minimalDesktop.scpt
|
to click_menu_extra at menu_list
|
detect-displays.scpt
|
tell application "System Events" to tell process "SystemUIServer"'s menu bar 1
|
detect-displays.scpt
|
click (first menu bar item whose value of attributes contains menu_list's beginning)
|
detect-displays.scpt
|
repeat with item_name in rest of menu_list
|
detect-displays.scpt
|
click (first menu item of result's menu 1 whose name is item_name)
|
detect-displays.scpt
|
end click_menu_extra
|
detect-displays.scpt
|
click_menu_extra at {"displays", "Detect Displays"}
|
detect-displays.scpt
|
set date_ to ((current date) as string)
|
cmd with v example.applescript
|
keystroke "v" using {option down, shift down, command down}
|
cmd with v example.applescript
|
return "hello, " & item 1 of argv & "."
|
a.scpt
|
on screencapture(window_name, path)
|
common.applescript
|
do shell script ("~/Library/Python/3.8/bin/screenshot \"" & window_name & "\" -f " & path)
|
common.applescript
|
end screencapture
|
common.applescript
|
on shutdown(t_delay)
|
common.applescript
|
delay t_delay
|
common.applescript
|
tell application "Finder" to shut down
|
common.applescript
|
end shutdown
|
common.applescript
|
on sleep(t_delay)
|
common.applescript
|
end sleep
|
common.applescript
|
shutdown(9600)
|
common.applescript
|
display notification "お知らせです" with title "タイトル" subtitle "サブタイトル"
|
simple-notification.applescript
|
fmGUI_getRecCounts()
|
fmGUI_getRecCounts.applescript
|
set recString to value of static text 3 of group 1 of toolbar 1 of window 1
|
fmGUI_getRecCounts.applescript
|
if recString contains "/" then
|
fmGUI_getRecCounts.applescript
|
set recsFound to getTextBefore(recString, "/") as integer
|
fmGUI_getRecCounts.applescript
|
set recsFound to recString as integer
|
fmGUI_getRecCounts.applescript
|
set recsTotal to getTextAfter(recString, "/") as integer
|
fmGUI_getRecCounts.applescript
|
set recsTotal to recString as integer
|
fmGUI_getRecCounts.applescript
|
return {recsFound:recsFound, recsTotal:recsTotal}
|
fmGUI_getRecCounts.applescript
|
error "Couldn't fmGUI_getRecCounts - " & errMsg number errNum
|
fmGUI_getRecCounts.applescript
|
tell application "htcLib" to getTextAfter(sourceText, afterThis)
|
fmGUI_getRecCounts.applescript
|
windowWaitUntil_FrontIS({windowName:"Times Square"})
|
windowWaitUntil_FrontIS.applescript
|
set defaultPrefs to {windowName:null, windowNameTest:"is", whichWindow:"front", waitCycleDelaySeconds:0.1, waitCycleMax:100}
|
windowWaitUntil_FrontIS.applescript
|
set target_folder to (POSIX file "/Users/IceHe/Documents/Blog/icehe.me")
|
to_folder_icehe_me.applescript
|
set fechaArchivo to do shell script "/bin/date +%d%m%y"
|
txtFechaActual.scpt
|
set plainTextFile to make new file at desktop with properties {name:fechaArchivo & ".txt"}
|
txtFechaActual.scpt
|
open file (plainTextFile as text)
|
txtFechaActual.scpt
|
set plainTextDocument to front document
|
txtFechaActual.scpt
|
set theCmd to display name editor "Perldoc" info "Enter the page, module, program or function:"
|
Perldoc.applescript
|
if theCmd is not "" then exit repeat
|
Perldoc.applescript
|
set theOutput to do shell script "perldoc " & (quoted form of theCmd) & " | col -b"
|
Perldoc.applescript
|
if length of theOutput is 0 then error
|
Perldoc.applescript
|
set theOutput to do shell script "perldoc -f " & (quoted form of theCmd) & " | col -b"
|
Perldoc.applescript
|
if length of theOutput is greater than 0 then
|
Perldoc.applescript
|
create record with {name:theCmd, type:txt, plain text:theOutput} in current group
|
Perldoc.applescript
|
error "No documentation found for \"" & theCmd & "\"."
|
Perldoc.applescript
|
property Test : class "Test"
|
AppDelegate copy 3.applescript
|
Test's testListParaMethod() --测试OC给脚本方法传数组参数
|
AppDelegate copy 3.applescript
|
Test's testDictParaMethod() --测试OC给脚本方法传字典参数
|
AppDelegate copy 3.applescript
|
Test's testNOParaMethod() --测试OC给脚本不传参数
|
AppDelegate copy 3.applescript
|
set theParaStr to get Test's testRetrunParaMethod() as text --测试通过OC方法获取返回值
|
AppDelegate copy 3.applescript
|
log theParaStr & " " & (class of theParaStr) --打印返回值及类型
|
AppDelegate copy 3.applescript
|
get UI elements of window 1
|
02-get-ui-element-of-process.applescript
|
local buttonReturned
|
Five Love Languages Quiz.applescript
|
local answer
|
Five Love Languages Quiz.applescript
|
local answerText
|
Five Love Languages Quiz.applescript
|
local name
|
Five Love Languages Quiz.applescript
|
set dialogText to "Choose the statement that best represents something you would desire or appreciate more: " & "
|
Five Love Languages Quiz.applescript
|
set aCounter to 0
|
Five Love Languages Quiz.applescript
|
set bCounter to 0
|
Five Love Languages Quiz.applescript
|
set cCounter to 0
|
Five Love Languages Quiz.applescript
|
set dCounter to 0
|
Five Love Languages Quiz.applescript
|
set eCounter to 0
|
Five Love Languages Quiz.applescript
|
set question1 to {"1. I like to receive notes of emotional support and encouragement", "A", "2. I like to be hugged", "E"}
|
Five Love Languages Quiz.applescript
|
set question2 to {"1. I like to spend one-on-one time with a person who is special to me", "B", "2. I feel loved when someone gives practical help to me", "D"}
|
Five Love Languages Quiz.applescript
|
set question3 to {"1. I like it when people give me gifts.", "C", "2. I like leisurely visits with friends and loved ones.", "B"}
|
Five Love Languages Quiz.applescript
|
set question4 to {"1. I feel loved when people do things to help me.", "D", "2. I feel loved when people touch me.", "E"}
|
Five Love Languages Quiz.applescript
|
set question5 to {"1. I feel loved when someone I love or admire puts his or her arm around me.", "E", "2. I feel loved when I receive a gift from someone I love or admire.", "C"}
|
Five Love Languages Quiz.applescript
|
set question6 to {"1. I like to go places with friends and loved ones.", "B", "2. I like to high-five or hold hands with people who are special to me.", "E"}
|
Five Love Languages Quiz.applescript
|
set question7 to {"1. Visible symbols of love (gifts) are very important to me.", "C", "2. I feel loved when people affirm me.", "A"}
|
Five Love Languages Quiz.applescript
|
set question8 to {"1. I like to sit close to people whom I enjoy being around.", "E", "2. I like for people to tell me I am attractive/handsome.", "A"}
|
Five Love Languages Quiz.applescript
|
set question9 to {"1. I like to spend time with friends and loved ones.", "B", "2. I like to receive little gifts from friends and loved ones.", "C"}
|
Five Love Languages Quiz.applescript
|
set question10 to {"1. Words of acceptance are important.", "A", "2. I know someone loves me when he or she helps me.", "D"}
|
Five Love Languages Quiz.applescript
|
set question11 to {"1. I like being together and doing things with friends and loved ones.", "B", "2. I like it when kind words are spoken to me.", "A"}
|
Five Love Languages Quiz.applescript
|
set question12 to {"1. What someone does affects me more than what he or she says.", "D", "2. Hugs make me feel connected and valued.", "E"}
|
Five Love Languages Quiz.applescript
|
set question13 to {"1. I value praise and try to avoid criticism.", "A", "2. Several small gifs mean more to me than one large gift.", "C"}
|
Five Love Languages Quiz.applescript
|
set question14 to {"1. I feel close to someone when we are talking or doing something together.", "B", "2. I feel closer to friends and loved ones when they touch me often.", "E"}
|
Five Love Languages Quiz.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.