text
stringlengths
0
15.7k
source
stringlengths
6
112
set softWidth to (bwidth * 2) + swidth
HardCoverDimensions.applescript
set dialogText to ("Dimensions
HardCoverDimensions.applescript
Softcover: " & softWidth & " x " & bheight & "
HardCoverDimensions.applescript
Hardcover Without Bleed: " & widthTotal & " x " & heightTotal & "
HardCoverDimensions.applescript
Hardcover With Bleed: " & widthTotal + bleed & " x " & heightTotal + bleed) as text
HardCoverDimensions.applescript
display alert dialogText buttons {"Cancel", "Ok"}
HardCoverDimensions.applescript
mute
mute copy.applescript
on message sent theMessage with eventDescription
Play Beep.applescript
on message received theMessage with eventDescription
Play Beep.applescript
on chat room message received with eventDescription
Play Beep.applescript
on active chat message received with eventDescription
Play Beep.applescript
on addressed message received theMessage from theBuddy for theChat with eventDescription
Play Beep.applescript
on received text invitation with eventDescription
Play Beep.applescript
on received audio invitation theText from theBuddy for theChat with eventDescription
Play Beep.applescript
on received video invitation theText from theBuddy for theChat with eventDescription
Play Beep.applescript
on buddy authorization requested with eventDescription
Play Beep.applescript
on addressed chat room message received with eventDescription
Play Beep.applescript
on login finished with eventDescription
Play Beep.applescript
on logout finished with eventDescription
Play Beep.applescript
on buddy became available with eventDescription
Play Beep.applescript
on buddy became unavailable with eventDescription
Play Beep.applescript
on received file transfer invitation theFileTransfer with eventDescription
Play Beep.applescript
on av chat started with eventDescription
Play Beep.applescript
on av chat ended with eventDescription
Play Beep.applescript
on completed file transfer with eventDescription
Play Beep.applescript
set menubarHeight to 22
Side by Side.applescript
set screenWidth to 1280
Side by Side.applescript
set screenHeight to 800
Side by Side.applescript
{screenWidth, screenHeight}
Side by Side.applescript
if (frontApp is equal to "Finder" or frontApp is equal to "Microsoft Entourage") then
Side by Side.applescript
set menubarHeight to 44
Side by Side.applescript
if (frontApp is equal to "Microsoft Excel") then
Side by Side.applescript
set menubarHeight to 55
Side by Side.applescript
set bounds of window 1 to {0, menubarHeight, (screenWidth / 2), screenHeight}
Side by Side.applescript
set bounds of window 2 to {(screenWidth / 2), menubarHeight, screenWidth, screenHeight}
Side by Side.applescript
repeat with aMessage in theSelection
mail-link.scpt
set theId to ((content of header "Message-Id" of aMessage) as text)
mail-link.scpt
set theSubject to ((subject of aMessage) as text)
mail-link.scpt
set theSender to sender of aMessage
mail-link.scpt
set theLinks to (theLinks & (createLinkTo(theId, theSender, theSubject) of me))
mail-link.scpt
move aMessage to mailbox "{MAILBOX}" of account "{ACCOUNT}"
mail-link.scpt
on createLinkTo(theId, theSender, theSubject)
mail-link.scpt
return "[[message://" & onlyIdIn(theId) & "][Mail from " & withoutSquareBrackets(theSender) & ": " & withoutSquareBrackets(theSubject) & "]] "
mail-link.scpt
end createLinkTo
mail-link.scpt
on withoutSquareBrackets(aText)
mail-link.scpt
set AppleScript's text item delimiters to "["
mail-link.scpt
set theTextItems to text items of aText
mail-link.scpt
set theResult to theTextItems as string
mail-link.scpt
set AppleScript's text item delimiters to "]"
mail-link.scpt
set theTextItems to text items of theResult
mail-link.scpt
end withoutSquareBrackets
mail-link.scpt
on onlyIdIn(aMessageId)
mail-link.scpt
return text 2 thru ((length of aMessageId) - 1) of aMessageId
mail-link.scpt
end onlyIdIn
mail-link.scpt
property app_name : missing value # application name
register.applescript
property app_icon : missing value # icon of application
register.applescript
property notifications : missing value # notifications list
register.applescript
on is_installed()
register.applescript
tell application "Finder" to set Answer_ to exists application file ((path to applications folder as string) & "Growl")
register.applescript
on is_exists(path) # return true if dir or file is exists
register.applescript
return ((do shell script "if test -e '" & path & "'; then echo 1;else echo 0; fi") as integer) as boolean
register.applescript
on ticket_file(appname)
register.applescript
return (POSIX path of (path to home folder)) & "/Library/Application Support/Growl/Tickets/" & appname & ".growlTicket"
register.applescript
end ticket_file
register.applescript
on is_ticket_exists(appname)
register.applescript
return is_exists(ticket_file(appname))
register.applescript
end is_ticket_exists
register.applescript
on register(appname, notice_list, icon)
register.applescript
if is_installed() then
register.applescript
if is_running("Growl") then
register.applescript
if app_name is missing value then
register.applescript
set app_name to appname
register.applescript
set notifications to notice_list
register.applescript
set app_icon to icon
register.applescript
if is_ticket_exists(app_name) = false then
register.applescript
app_name all notifications notice_list ¬
register.applescript
default notifications notice_list ¬
register.applescript
icon of application icon
register.applescript
end register
register.applescript
set the_distance to get distance from coordinates {37.386346, -122.051402}
gistfile1-2 copy 4.applescript
if the_distance is less than 150 then
gistfile1-2 copy 4.applescript
do shell script "networksetup -setairportpower en0 off" # http://brettterpstra.com/2014/02/15/quick-tip-automating-you-macs-wifi-power/
gistfile1-2 copy 4.applescript
global std, switch, speech, sessionPlist
spot-test.applescript
set sut to new()'s new("spot-spotCheck", {"one", "two", "three", "four", "five"})
spot-test.applescript
set autoIncrement of sut to true
spot-test.applescript
set currentCase to sut's start()
spot-test.applescript
logger's logObj("Current Case", currentCase)
spot-test.applescript
sut's finish()
spot-test.applescript
script SpotTestInstance
spot-test.applescript
on setSessionCaseIndex(newCaseIndex)
spot-test.applescript
sessionPlist's setValue("Current Case Index", newCaseIndex)
spot-test.applescript
end setSessionCaseIndex
spot-test.applescript
on new(pCaseId as text, pCases as list)
spot-test.applescript
script SpotTestCaseInstance
spot-test.applescript
property caseId : pCaseId
spot-test.applescript
property cases : pCases
spot-test.applescript
property autoIncrement : false
spot-test.applescript
property _currentCase : 0
spot-test.applescript
property _currentCaseCount : 0
spot-test.applescript
property _valid : true
spot-test.applescript