text
stringlengths
0
15.7k
source
stringlengths
6
112
set sceneGroupIsIn to parent of sceneGroup
Create GLDSQ scene recall with name.applescript
set sysex message of midiBank to bankMessage & sceneMessage
Create GLDSQ scene recall with name.applescript
set pre wait of midiBank to 0
Create GLDSQ scene recall with name.applescript
set q name of midiBank to "Scene " & sceneNumber & ": bank + program change"
Create GLDSQ scene recall with name.applescript
on textualcmd(parameter, destinationChannel)
slap.scpt
set typelist to {"%flip", "%rev", "%norm", "%fliprev", "%rand"}
slap.scpt
set tempnick to "######"
slap.scpt
if parameter is "" then
slap.scpt
return "/debug echo Proper use of this command is: /slap [Mode] victim [item]" & nl & "/debug echo The script will echo a random slap(-like) action if no item has been specified. If an item has been specified, it will be used as item to slap with using /me slaps victim around a bit with <random adjective> [item]." & nl & "/debug echo The [Mode] parameter is also optional and may be replaced with one the following Modes: %flip, %rev, %fliprev or %rand. " & nl & "/debug echo These Modes flip the slap, make it appear in reverse or use a random one. Output can look like this then /me ʇnoɹʇ ǝƃɹɐl ɐ ɥʇıʍ ʇıq ɐ punoɹɐ victim sdɐls"
slap.scpt
set mode to get first text item of parameter
slap.scpt
if mode is not in typelist then
slap.scpt
set nick to mode
slap.scpt
set object to searchReplace(parameter, nick & "", "")
slap.scpt
set object to ""
slap.scpt
set mode to ""
slap.scpt
else if mode is in typelist then
slap.scpt
set newstring to searchReplace(parameter, mode & " ", "")
slap.scpt
set nick to get first text item of newstring
slap.scpt
set object to searchReplace(newstring, nick & "", "")
slap.scpt
set theAdjList to {"a fluffy concrete", "a large and terrifyingly cute plush", "a large", "a small", "a concrete", "a large and pointy", "a large and fearsome", "a cute little", "a large, wet and smelly", "a large and heavy", "a small and lightweight", "a marble", "a pink", "a terrifyingly small and cute", "a tiny and bloodstained", "a random", "an enormous", "a medium sized", "a breath taking", "an extra large", "a huge", "a suspicious", "a terrifying", "a scary", "a horrifying", "an impervious", "a green", "a blue", "a red", "a pink", "a dirty", "a brown", "a silver", "a golden", "a black", "a yellow", "a magenta", "an translucent", "a nontransparent", "a mysterious", "a puzzling", "a perplexing", "a baffling", "a mystifying", "a confusing", "a unfathomable", "an incomprehensible", "an unintelligible", "a Delphic", "an impenetrable", "an oblique", "an enigmatic", "a cryptic", "a hazy", "a foggy", "a grimy", "a smeared", "a muddied", "a plain", "a vague", "an irrefutable", "a palpale", "a genuine", "an authentic", "a real", "a bona fide", "a veritable", "an attested", "a honest-to-goodness", "a kosher", "a natural", "a stained", "a broken", "a dyed", "a splattered", "a blotched", "a smudged", "a blemished", "a tainted", "a damaged", "a colorful", "a magnificient", "an amazing", "a sublime", "a superb", "a glorious", "a tremendous", "a sensational", "a gorgeous", "a grand", "a fabulous"}
slap.scpt
set ListCount to the count of theAdjList
slap.scpt
set pick to random number from 1 to ListCount
slap.scpt
set theAdj to item pick of theAdjList as string
slap.scpt
if object is not missing value and object is not " " and object is not "" then
slap.scpt
set theSlap to "slaps " & tempnick & " around a bit with " & theAdj & object
slap.scpt
set theItemlist to {"%%%%% kitty", "%%%%% Nintendo Wii", "%%%%% dolphin", "%%%%% rainbow trout", "System Software 1.0", "%%%%% Imperial-Class Stardestroyer", "%%%%% macintosh", "%%%%% baseball bat", "%%%%% chessboard", "%%%%% Ming Vase", "%%%%% donkey", "%%%%% Playstation 3", "%%%%% shovel", "a carefully selected range of random items", "%%%%% stick", "the Windows 95 Buglist", "the Windows ME Buglist", "%%%%% something", "%%%%% gold fish", "%%%%% sledgehammer", "%%%%% trout", "%%%%% cuttlefish", "something large and heavy from Dell", "something small and lightweight from Apple", "Cthulhu's tentacles", "%%%%% bust of Julius Caesar", "a verse or two of Vogon poetry", "a huge wad of bellybutton fluff", "fire and brimstone", "%%%%% spoon", "cotton wool balls", "something pink", "a mouse cord", "a UNIX bible", "a Back Street Boys CD", "mIRC 6.01", "%%%%% brick", "%%%%% christmas tree", "a MagLite™ covered in vaseline", "an army shovel", "%%%%% axe", "Khaled Mardam-Bey", "a random number of Ninja Turtles", "%%%%% object", "%%%%% crowbar", "%%%%% knuckle duster", "%%%%% book", "%%%%% DVD", "%%%%% VHS", "%%%%% flower", "%%%%% tree", "%%%%% shelf", "%%%%% laptop", "%%%%% Macbook", "%%%%% iBook", "%%%%% PowerBook", "%%%%% Macbook Pro", "%%%%% Macbook Air", "%%%%% Mac Mini", "%%%%% Mac Pro", "%%%%% iMac", "%%%%% iPhone", "%%%%% iPod", "%%%%% cup", "%%%%% IRC Client", "%%%%% diamond", "%%%%% lamp", "%%%%% tapestry", "%%%%% stone", "%%%%% rock", "%%%%% sheet of paper", "%%%%% printer", "%%%%% scanner", "%%%%% mobile", "%%%%% figurine", "%%%%% magazine", "%%%%% ball", "%%%%% frog", "%%%%% camel", "%%%%% dragon", "%%%%% walrus", "%%%%% penguin", "%%%%% giraffe", "%%%%% lion", "%%%%% shelf", "%%%%% wardrobe", "%%%%% lamp", "%%%%% stone", "%%%%% easteregg", "%%%%% pot", "%%%%% trophy", "%%%%% goblet", "yellow snow"}
slap.scpt
set ListCount to the count of theItemlist
slap.scpt
set theItem to item pick of theItemlist as string
slap.scpt
set needobject to 0
slap.scpt
set theItem to searchReplace(theItem, "%%%%%", theAdj)
slap.scpt
set checklist to {"a", "an", "the"}
slap.scpt
set check to first text item of theItem
slap.scpt
if check is in checklist then
slap.scpt
set StrippedItem to searchReplace(theItem, check & " ", "")
slap.scpt
set StrippedItem to theItem
slap.scpt
set randNum to random number from 10 to 1337
slap.scpt
set theSpotlist to {"David Hasselhoff", "Bill Gates", "Steve Jobs", "Rick Astley", "Your mom", "Khaled Mardam-Bey", "Nicolas Lapomarda", "The Wizard of Oz", "I.C. Wiener", "Britney Spears", "Celine Dion"}
slap.scpt
set ListCount to the count of theSpotlist
slap.scpt
set theSpot to item pick of theSpotlist as string
slap.scpt
set theAnimallist to {"squirrels", "elephants", "lemmings", "tapirs", "locusts", "gold fish", "piranhas", "cuttlefish", "gorillas", "turtles", "gold fish", "kitties", "bunnies", "chipmunks", "duckbills", "kangaroos", "bees", "hedgehogs", "sharks"}
slap.scpt
set ListCount to the count of theAnimallist
slap.scpt
set theAnimal to item pick of theAnimallist as string
slap.scpt
set theSlaplist to {"slaps " & tempnick & " around with " & theItem, "throws " & theItem & " at " & tempnick, "considers highlighting " & tempnick & " with " & theItem, "jabs " & tempnick & " with " & theItem, "nudges " & tempnick & " with " & theItem, "whips " & tempnick & " with " & theItem, "flogs " & tempnick & " with " & theItem, "whacks " & tempnick & " around a bit with " & theItem, "bangs " & tempnick & " with " & theItem, "beats " & tempnick & " with " & theItem, "tortures " & tempnick & " with " & theItem, "uses " & theItem & " to poke " & tempnick, "uses " & theItem & " to highlight " & tempnick, "leads " & tempnick & " into a dark alley - Hey, test my " & StrippedItem & "!", "abuses " & theItem & " to slap " & tempnick, "beautifies " & tempnick & " with some " & StrippedItem & " imprints", "whacks " & tempnick & " a bit with " & theItem, "bangs " & tempnick & " with " & theItem, "spanks " & tempnick & " with " & theItem, "strikes " & tempnick & " with " & theItem, "clouts " & tempnick & " with " & theItem, "cuffs " & tempnick & " with " & theItem, "thwacks " & tempnick & " with " & theItem, "wallops " & tempnick & " with " & theItem, "smites " & tempnick & " with " & theItem, "boxes " & tempnick & " with " & theItem, "swipes " & tempnick & " with " & theItem, "belts " & tempnick & " with " & theItem, "larrups " & tempnick & " with " & theItem, "socks " & tempnick & " with " & theItem, "clobbers " & tempnick & " with " & theItem, "slugs " & tempnick & " with " & theItem, "forgets " & tempnick & " in the desert. awwwww", "pokes " & tempnick, "steals " & tempnick & "'s cookies. mwahaha!", "shreds " & tempnick & " with %%%%% knife", "urges " & tempnick & " to use Windows Millennium Edition", "accidentally floods " & tempnick & "'s room with Hydrofluoric acid", "spills some coffee over " & tempnick & "'s keyboard", "deletes " & tempnick & "'s iTunes DB", "runs 'rm -rf / ' in " & tempnick & "'s Terminal", "drives over " & tempnick, "secretly installs iSpy on " & tempnick & "'s computer", "makes " & tempnick & "'s finder reindex the HDDs attached to the computer", "makes " & tempnick & " watch the IMDb Bottom 100", "inserts Windows 3.11 install floppies into " & tempnick & "'s DVD drive", "enters " & theSpot & " in " & tempnick & "'s Spotlight. Weeee " & randNum & " Hits!", "leads " & tempnick & " into a dark alley - Hey, test my crowbar!", "sends hords of " & theAnimal & " over " & tempnick, "urges " & tempnick & " to eat a cyanide sandwich", "makes " & tempnick & " read the Windows ME user guide", "slaps a large trout a bit with " & tempnick, "rickrolls " & tempnick, "recites Vogon poetry for " & tempnick, "shreds " & tempnick & " with %%%%% chainsaw", "pushes " & tempnick & " into an abyss", "beautifies " & tempnick & " with some knuckle duster imprints", "feeds " & tempnick & " a bowl of yellow snow"}
slap.scpt
set ListCountSlap to the count of theSlaplist
slap.scpt
set pick to random number from 1 to ListCountSlap
slap.scpt
set theSlap to item pick of theSlaplist as string
slap.scpt
set theSlap to searchReplace(theSlap, "%%%%%", theAdj)
slap.scpt
if mode is not missing value and mode is not "" then
slap.scpt
if mode is "%rand" then
slap.scpt
set maxNum to the (count of typelist) - 1
slap.scpt
set TempNum to random number from 1 to maxNum
slap.scpt
set mode to item TempNum of typelist
slap.scpt
if mode is "%rev" then
slap.scpt
set theSlap to reverse of characters of theSlap as text
slap.scpt
else if mode is "%flip" then
slap.scpt
set the source to "abcdefghijklmnopqrstuvwxyz()[]{}!?.,"
slap.scpt
set the destination to "ɐqɔpǝɟƃɥıɾʞlɯuodbɹsʇnʌʍxʎz)(][}{¡¿˙'"
slap.scpt
repeat with char in theSlap
slap.scpt
set theSlap to theResult as string
slap.scpt
else if mode is "%fliprev" then
slap.scpt
set theSlap to reverse of characters of theSlap as string
slap.scpt
set theSlap to searchReplace(theSlap, "######", nick)
slap.scpt
set theString to "/sme " & destinationChannel & " " & theSlap
slap.scpt
on searchReplace(origStr, searchStr, replaceStr)
slap.scpt
set origStr to text items of origStr
slap.scpt
set origStr to origStr as string
slap.scpt
return origStr
slap.scpt
switchToNewTab()
Move URL to New Tab.applescript
on switchToNewTab()
Move URL to New Tab.applescript
end switchToNewTab
Move URL to New Tab.applescript
set is_bluetooth_on to do shell script "/usr/local/bin/blueutil power"
is_bluetooth_on.applescript
return ("1" = is_bluetooth_on)
is_bluetooth_on.applescript
on strSplit(theString, theDelimiter)
string-utilities.applescript
end strSplit
string-utilities.applescript
set tempFile to (tempFolder & fName & ".pdf")
Save as PDF.applescript
save as doc file name tempFile file format format PDF with overwrite
Save as PDF.applescript
searchAndReplaceCS("Wello world?", {"W", "w", "?"}, {"H", "W", "!"})
searchAndReplaceCaseSensitive.applescript
on searchAndReplaceCS(aText, aPattern, aReplacement)
searchAndReplaceCaseSensitive.applescript
set aText to searchAndReplaceCS(aText, item i of aPattern, item i of aReplacement)
searchAndReplaceCaseSensitive.applescript
set aText to searchAndReplaceCS(aText, item i of aPattern, aReplacement)
searchAndReplaceCaseSensitive.applescript
end searchAndReplaceCS
searchAndReplaceCaseSensitive.applescript
copyWindowNameToClipboard()
Copy Window Name.applescript
on copyWindowNameToClipboard()
Copy Window Name.applescript
set theName to name of window 1
Copy Window Name.applescript
set the clipboard to theName
Copy Window Name.applescript
end copyWindowNameToClipboard
Copy Window Name.applescript
repeat with t in every todo
properties copy 3.applescript
get properties of t
properties copy 3.applescript
set theToDos to selected to dos
Tomorrow.applescript
repeat with theToDo in theToDos
Tomorrow.applescript
schedule theToDo for (current date) + (1 * days)
Tomorrow.applescript
set position to {x, y - (newHeight - height)}
GrowTop.scpt
set VPNName to "Some VPN"
Toggle VPN Connection.applescript
set VPNService to service VPNName
Toggle VPN Connection.applescript
set isVPNConnected to connected of current configuration of VPNService
Toggle VPN Connection.applescript
if isVPNConnected then
Toggle VPN Connection.applescript
disconnect VPNService
Toggle VPN Connection.applescript
connect VPNService
Toggle VPN Connection.applescript
set thePattern to "/Invoice.*(\\d\\d-\\d\\d\\d\\d)/i"
regex.applescript
set theString to "Invoice number: 19-12345.
regex.applescript