text
stringlengths
0
15.7k
source
stringlengths
6
112
set mailFldrLion to POSIX path of (text items 1 thru -3 of acnt1Dir as string)
Edit_Email_in_BBEdit.applescript
tell _msg
Edit_Email_in_BBEdit.applescript
set mbxName to name of its mailbox
Edit_Email_in_BBEdit.applescript
set mID to its id
Edit_Email_in_BBEdit.applescript
set mSub to its subject
Edit_Email_in_BBEdit.applescript
if mSub contains "'" then
Edit_Email_in_BBEdit.applescript
set mSub to REPL(mSub, "'", "'\"'\"'")
Edit_Email_in_BBEdit.applescript
set _cmd to "mdfind -onlyin " & mailFldrLion & " 'kMDItemDisplayName == \"" & mSub & "\"cd && kMDItemFSName == \"" & mID & ".emlx\"cd'"
Edit_Email_in_BBEdit.applescript
set emlFile to do shell script _cmd
Edit_Email_in_BBEdit.applescript
if emlFile ≠ "" then
Edit_Email_in_BBEdit.applescript
textToBBEdit(emlFile)
Edit_Email_in_BBEdit.applescript
error "No message was returned by Spotlight!"
Edit_Email_in_BBEdit.applescript
tell me to set dDlg to display dialog e with title "ERROR!" buttons {"Cancel", "Copy", "OK"} default button "OK"
Edit_Email_in_BBEdit.applescript
tell application "Preview" to set bounds of window 1 to {4, 27, 1147, 962}
Single page and zoom.applescript
tell application "System Events" to tell process "Preview"
Single page and zoom.applescript
tell menu "View" of menu bar item "View" of menu bar 1
Single page and zoom.applescript
if (value of attribute "AXMenuItemMarkChar" of menu item "Single Page") is missing value then
Single page and zoom.applescript
click menu item "Single Page"
Single page and zoom.applescript
click menu item "Zoom In"
Single page and zoom.applescript
click menu item "Zoom to Fit"
Single page and zoom.applescript
set safariopen to false
autoclose web widget.applescript
set chromeopen to false
autoclose web widget.applescript
set safariopen to true
autoclose web widget.applescript
else if is_app_running "Webkit" then
autoclose web widget.applescript
set chromeopen to true
autoclose web widget.applescript
else if is_app_running "Google Chrome Canary" then
autoclose web widget.applescript
else if is_app_running "Chromium" then
autoclose web widget.applescript
if safariopen is true then
autoclose web widget.applescript
if (frontApp = "Safari") or (frontApp = "Webkit") then
autoclose web widget.applescript
if currTab does not contain "mail.google" then
autoclose web widget.applescript
tell application "BetterTouchTool" to trigger_named "Close Web Widget"
autoclose web widget.applescript
return "Gmail "
autoclose web widget.applescript
if chromeopen is true then
autoclose web widget.applescript
if (frontApp = "Google Chrome") or (frontApp = "Google Chrome Canary") or (frontApp = "Chromium") then
autoclose web widget.applescript
tell application "Google Chrome" to set currTab to URL of active tab of front window
autoclose web widget.applescript
if q type of eachCue is in {"Audio", "Mic", "Fade"} then
Master to -inf.applescript
eachCue setLevel row 0 column 0 db -120
Master to -inf.applescript
tell application "Tree"
gistfile1 copy 7.scpt
tell process "Tree"
gistfile1 copy 7.scpt
pick menu item "Export..." of menu 1 of menu bar item "File" of menu bar 1
gistfile1 copy 7.scpt
click pop up button 1 of group 1 of group 1
gistfile1 copy 7.scpt
click menu item "OPML1.0" of menu 1 of pop up button 1 of group 1 of group 1
gistfile1 copy 7.scpt
click button "Save"
gistfile1 copy 7.scpt
if exists button "Replace" of sheet 1 then
gistfile1 copy 7.scpt
click button "Replace" of sheet 1
gistfile1 copy 7.scpt
global adminer
mcsong.scpt
global assum
mcsong.scpt
global artiste
mcsong.scpt
global oldcontenta
mcsong.scpt
global foundTracks
mcsong.scpt
to split(someText, delimiter) --split text
mcsong.scpt
on sendMineServ(txt) --tell terminal window
mcsong.scpt
tell first window of application "Terminal"
mcsong.scpt
if get custom title of selected tab is "Server Start.sh" then
mcsong.scpt
do script (txt) in selected tab
mcsong.scpt
do script ("msg " & adminer & " Error sending message to Minecraft Server") in selected tab
mcsong.scpt
end sendMineServ
mcsong.scpt
on tweetSong() --nowplaying
mcsong.scpt
tell application "iTunes" to set assum to get name of current track
mcsong.scpt
tell application "iTunes" to set artiste to get artist of current track
mcsong.scpt
sendMineServ("say * Now playing - " & assum & " by " & artiste & " *")
mcsong.scpt
end tweetSong
mcsong.scpt
set foundTracks to {}
mcsong.scpt
tweetSong() --tell song
mcsong.scpt
tell first window of application "Terminal" to set consoled to contents --remember the term
mcsong.scpt
tell first window of application "Terminal" to set oldcontenta to contents
mcsong.scpt
set adminer to "vladkorotnev"
mcsong.scpt
repeat --forever loop
mcsong.scpt
tell application "iTunes" to set assumneue to get name of current track
mcsong.scpt
tell application "iTunes" to set artistneue to get artist of current track
mcsong.scpt
if assumneue is not assum or artistneue is not artiste then tweetSong() --new track
mcsong.scpt
tell first window of application "Terminal" to set consoled to contents --new terminal
mcsong.scpt
if not (oldcontenta is consoled) then --it has changes
mcsong.scpt
set newTxt to (text items of consoled) -- not text of, text items of
mcsong.scpt
set delta to item ((length of newTxt) - 2) of newTxt
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> whatnow" is in delta then tweetSong()
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> itplayta" is in delta then
mcsong.scpt
set cmdargs to last item of split(delta, "[INFO] [Minecraft] <" & adminer & "> itplayta ")
mcsong.scpt
set artista to last item of split(cmdargs, "/")
mcsong.scpt
set albuma to first item of split(cmdargs, "/")
mcsong.scpt
play (every track of library playlist 1 whose artist is artista and name is albuma)
mcsong.scpt
sendMineServ("msg " & adminer & " Error while looking for track")
mcsong.scpt
sendMineServ("msg " & adminer & " Sure it exists?")
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> itplay " is in delta then
mcsong.scpt
set cmdargs to last item of split(delta, "[INFO] [Minecraft] <" & adminer & "> itplay ")
mcsong.scpt
play (every track of library playlist 1 whose name is cmdargs)
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> itunes" is in delta then
mcsong.scpt
sendMineServ("msg " & adminer & " * usage: itplay track *")
mcsong.scpt
sendMineServ("msg " & adminer & " * usage: itplayta track/artist *")
mcsong.scpt
sendMineServ("msg " & adminer & " * usage: itsearch query *")
mcsong.scpt
sendMineServ("msg " & adminer & " ** after search: itfound number **")
mcsong.scpt
sendMineServ("msg " & adminer & " * case sensitive *")
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> itsearch" is in delta then
mcsong.scpt
set cmdargs to last item of split(delta, "[INFO] [Minecraft] <" & adminer & "> itsearch ")
mcsong.scpt
sendMineServ("msg " & adminer & " Found iTunes items:")
mcsong.scpt
repeat with t in (search library playlist 1 for cmdargs)
mcsong.scpt
set end of foundTracks to ((name of t as string) & "/" & (artist of t as string))
mcsong.scpt
repeat with a in foundTracks
mcsong.scpt
sendMineServ("msg " & adminer & " [" & (i as string) & "] " & a)
mcsong.scpt
set i to (i + 1)
mcsong.scpt