text
stringlengths
0
15.7k
source
stringlengths
6
112
tell menu "播放控制" of menu bar item "播放控制" of menu bar 1
controller copy.applescript
if query is equal to PAUSE_A or query is equal to PAUSE_SHORT then
controller copy.applescript
click menu item 1
controller copy.applescript
else if query is equal to NEXT or query is equal to NEXT_SHORT then
controller copy.applescript
click menu item "下一首"
controller copy.applescript
else if query is equal to PREVIOUS or query is equal to PREVIOUS_SHORT then
controller copy.applescript
click menu item "上一首"
controller copy.applescript
else if query is equal to VOLUME_UP or query is equal to VOLUME_UP_SHORT then
controller copy.applescript
click menu item "音量加"
controller copy.applescript
else if query is equal to VOLUME_DOWN or query is equal to VOLUME_DOWN_SHORT then
controller copy.applescript
click menu item "音量减"
controller copy.applescript
else if query is equal to LOVE or query is equal to LOVE_SHORT then
controller copy.applescript
click menu item "喜欢歌曲"
controller copy.applescript
else if query is equal to OPEN_LYRIC or query is equal to OPEN_LYRIC_SHORT then
controller copy.applescript
click menu item 8
controller copy.applescript
tell application "Messages"
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
set phoneNumbers to {"6125550000 John Smith", ¬ "6125551111 Mary Poppins", ¬ "6125552222 Larry Bud Melmon"}
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
repeat with aNumber in phoneNumbers
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
set targetService to (1st service whose service type = iMessage)
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
set targetBuddy to buddy (word 1 of aNumber) of targetService
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
send "This is a test text..." to targetBuddy
Send%20iMessage%20text%20to%20list%20of%20phone%20numbers.applescript
property includeSkippedSlides : false
Export%20current%20slide%20to%20PNG.applescript
set the defaultDestinationFolder to (path to downloads folder)
Export%20current%20slide%20to%20PNG.applescript
tell application "Keynote"
Export%20current%20slide%20to%20PNG.applescript
if playing is true then tell the front document to stop
Export%20current%20slide%20to%20PNG.applescript
if not (exists document 1) then error number -128
Export%20current%20slide%20to%20PNG.applescript
set currentSlideNumber to the slide number of (get the current slide of the front document)
Export%20current%20slide%20to%20PNG.applescript
tell the front document
Export%20current%20slide%20to%20PNG.applescript
set skipped of ¬
Export%20current%20slide%20to%20PNG.applescript
(every slide where the slide number is not equal to currentSlideNumber) to true
Export%20current%20slide%20to%20PNG.applescript
set documentName to the name of the front document
Export%20current%20slide%20to%20PNG.applescript
if documentName ends with ".key" then ¬
Export%20current%20slide%20to%20PNG.applescript
set documentName to text 1 thru -5 of documentName
Export%20current%20slide%20to%20PNG.applescript
set newFolderName to documentName & " slide " & currentSlideNumber
Export%20current%20slide%20to%20PNG.applescript
set incrementIndex to 1
Export%20current%20slide%20to%20PNG.applescript
repeat until not (exists folder newFolderName of defaultDestinationFolder)
Export%20current%20slide%20to%20PNG.applescript
set newFolderName to documentName & "-" & (incrementIndex as string)
Export%20current%20slide%20to%20PNG.applescript
set incrementIndex to incrementIndex + 1
Export%20current%20slide%20to%20PNG.applescript
set the targetFolder to ¬
Export%20current%20slide%20to%20PNG.applescript
make new folder at defaultDestinationFolder with properties ¬
Export%20current%20slide%20to%20PNG.applescript
{name:newFolderName}
Export%20current%20slide%20to%20PNG.applescript
set the targetFolderHFSPath to targetFolder as string
Export%20current%20slide%20to%20PNG.applescript
export the front document as slide images to file targetFolderHFSPath with properties ¬
Export%20current%20slide%20to%20PNG.applescript
{image format:PNG, skipped slides:includeSkippedSlides}
Export%20current%20slide%20to%20PNG.applescript
set skipped of every slide to false
Export%20current%20slide%20to%20PNG.applescript
set folderContents to every item of targetFolder
Export%20current%20slide%20to%20PNG.applescript
repeat with theFile in folderContents
Export%20current%20slide%20to%20PNG.applescript
set fileExtension to name extension of theFile
Export%20current%20slide%20to%20PNG.applescript
set fileName to the name of theFile as string
Export%20current%20slide%20to%20PNG.applescript
set splitCharacters to ".001"
Export%20current%20slide%20to%20PNG.applescript
set ATID to AppleScript's text item delimiters
Export%20current%20slide%20to%20PNG.applescript
set AppleScript's text item delimiters to splitCharacters
Export%20current%20slide%20to%20PNG.applescript
set newFileName to text item 1 of fileName
Export%20current%20slide%20to%20PNG.applescript
set AppleScript's text item delimiters to ATID
Export%20current%20slide%20to%20PNG.applescript
set newFileName to newFileName & "." & fileExtension
Export%20current%20slide%20to%20PNG.applescript
set name of theFile to newFileName
Export%20current%20slide%20to%20PNG.applescript
move files of entire contents of targetFolder to defaultDestinationFolder with replacing
Export%20current%20slide%20to%20PNG.applescript
delete targetFolder
Export%20current%20slide%20to%20PNG.applescript
set thePath to file (defaultDestinationFolder & newFileName as string)
Export%20current%20slide%20to%20PNG.applescript
reveal the thePath
Export%20current%20slide%20to%20PNG.applescript
on error errorMessage number errorNumber
Export%20current%20slide%20to%20PNG.applescript
display alert "EXPORT PROBLEM" message errorMessage
Export%20current%20slide%20to%20PNG.applescript
set currentDir to (container of (path to me)) as string
RestoreOptionCmdKeys.applescript
set inputAppleScriptPosixPath to POSIX path of (currentDir & "ModifyOptionCmdKeys.applescript")
RestoreOptionCmdKeys.applescript
set outputScptPath to (currentDir & "ModifyOptionCmdKeys.scpt")
RestoreOptionCmdKeys.applescript
set outputScptPosixPath to POSIX path of outputScptPath
RestoreOptionCmdKeys.applescript
do shell script "osacompile -o " & outputScptPosixPath & " " & inputAppleScriptPosixPath
RestoreOptionCmdKeys.applescript
set modifyKeysLib to load script file outputScptPath
RestoreOptionCmdKeys.applescript
modifyKeysLib's modifyOptionAndCmdKeys("restore")
RestoreOptionCmdKeys.applescript
do shell script "rm -rf " & outputScptPosixPath
RestoreOptionCmdKeys.applescript
set x to item 1 of argv
minimize-app.scpt
if x is equal to "safari" then
minimize-app.scpt
tell application "Safari" to set the miniaturized of the front window to true
minimize-app.scpt
else if x is equal to "chrome" then
minimize-app.scpt
tell application "Google Chrome" to set the minimized of the front window to true
minimize-app.scpt
else if x is equal to "firefox" then
minimize-app.scpt
tell application "Firefox" to set the miniaturized of the front window to true
minimize-app.scpt
else if x is equal to "opera" then
minimize-app.scpt
tell application "Opera" to set the minimized of the front window to true
minimize-app.scpt
set ip_address to do shell script "/usr/bin/curl --silent http://checkip.dyndns.org/ | grep -o -E \"(\\d{1,3}\\.?){4}\" "
IPviaMail.txt
set recipientName to "YOURNAME" -- EDIT HERE
IPviaMail.txt
set recipientAddress to "YOURADDRESS" -- EDIT HERE
IPviaMail.txt
set theSubject to ip_address
IPviaMail.txt
set theContent to ip_address
IPviaMail.txt
set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
IPviaMail.txt
tell theMessage
IPviaMail.txt
make new to recipient with properties {name:recipientName, address:recipientAddress}
IPviaMail.txt
send
IPviaMail.txt
fmGUI_AppFrontMost()
fmGUI_AppFrontMost.applescript
on fmGUI_AppFrontMost()
fmGUI_AppFrontMost.applescript
tell application process "FileMaker Pro Advanced"
fmGUI_AppFrontMost.applescript
if frontmost is not true then
fmGUI_AppFrontMost.applescript
if name of window 1 is equal to "2empowerFM Toolbox" then
fmGUI_AppFrontMost.applescript
click button 1 of window 1
fmGUI_AppFrontMost.applescript
end fmGUI_AppFrontMost
fmGUI_AppFrontMost.applescript
set url_list to {}
Export All Chrome Tabs to Evernote.applescript
set the date_stamp to ((the current date) as string)
Export All Chrome Tabs to Evernote.applescript
set NoteTitle to "URL List from Chrome Tabs on " & the date_stamp
Export All Chrome Tabs to Evernote.applescript
set chromeWindow to the front window
Export All Chrome Tabs to Evernote.applescript
set tabCount to (count of (tabs of chromeWindow))
Export All Chrome Tabs to Evernote.applescript