text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
display notification "G Drive Successfully Mounted" with title "Drive Utility" | driveutility.scpt |
display notification "G Drive has already been mounted." with title "Drive Utility" | driveutility.scpt |
if not (disk "StudentData$" exists) then | driveutility.scpt |
mount volume "smb://[LOCATION TO SERVER DRIVE]/StudentData$" as user name user with password pass | driveutility.scpt |
display notification "S Drive Mounted" with title "Drive Utility" | driveutility.scpt |
display notification "S Drive has already been mounted." with title "Drive Utility" | driveutility.scpt |
if not (disk "SchoolWeb$" exists) then | driveutility.scpt |
mount volume "smb://[LOCATION TO SERVER DRIVE]/SchoolWeb$" as user name user with password pass | driveutility.scpt |
display notification "W Drive Mounted" with title "Drive Utility" | driveutility.scpt |
display notification "W Drive has already been mounted." with title "Drive Utility" | driveutility.scpt |
if not (disk "apps" exists) then | driveutility.scpt |
mount volume "smb://[LOCATION TO SERVER DRIVE]/apps" as user name user with password pass | driveutility.scpt |
display notification "Q Drive Mounted" with title "Drive Utility" | driveutility.scpt |
display notification "Q Drive has already been mounted." with title "Drive Utility" | driveutility.scpt |
if exists disk "Data" then | driveutility.scpt |
display dialog "Connection Success!" & " | driveutility.scpt |
You should now have access to all network drives." with title "Drive Utility" buttons {"Continue"} default button "Continue" with icon file {"System:Library:CoreServices:CoreTypes.bundle:Contents:Resources:ToolBarInfo.icns"} | driveutility.scpt |
display dialog "Connection Failed!" & " | driveutility.scpt |
Something went wrong with the connection process. Please try again." with title "Drive Utility" buttons {"Continue"} default button "Continue" with icon stop | driveutility.scpt |
set perspective name to "Projects" | omnifocus_open_projects.applescript |
set note_name to item 1 of argv | note_find_count.applescript |
set chanType to hex(51) | LS9FaderLevel.applescript |
set chanType to hex(78) | LS9FaderLevel.applescript |
if length of splitText = 3 then | LS9FaderLevel.applescript |
set dbVal to item 3 of splitText | LS9FaderLevel.applescript |
if dbVal = "out" or dbVal = "-inf" then | LS9FaderLevel.applescript |
else if length of splitText is equal to 4 then | LS9FaderLevel.applescript |
set dbVal to item 4 of splitText as number | LS9FaderLevel.applescript |
set msg to pre & " 00 " & chanType & " 00 00 00 " & chanNumVal & " 00 00 00 " & value | LS9FaderLevel.applescript |
log (get name of theWindow) | Copy ALL URLs to clipboard md copy.scpt |
set isActiveTabText to (my activeTabText(i, numTabs)) | Copy ALL URLs to clipboard md copy.scpt |
set mdURL to "- " & isActiveTabText & "[" & name of i & "]( " & URL of i & " )" | Copy ALL URLs to clipboard md copy.scpt |
on activeTabText(tab, numTabs) | Copy ALL URLs to clipboard md copy.scpt |
if numTabs is not 1 then | Copy ALL URLs to clipboard md copy.scpt |
if (visible of tab) is true then -- current active tab | Copy ALL URLs to clipboard md copy.scpt |
return "ACTIVE TAB: " | Copy ALL URLs to clipboard md copy.scpt |
if changeContext then set tag of thisItem to newContext | Clear Dates.scpt |
return first tag whose id is contextID | Clear Dates.scpt |
set start date of selectedItem to missing value | Clear Dates.scpt |
delay random number from 2 to 4 | gardener.applescript |
repeat 16 | gardener.applescript |
repeat 5 | gardener.applescript |
delay random number from 3 to 5 | gardener.applescript |
set scriptName to "Activate Sheet" as string | activate_sheet.scpt |
set allSheets to name of sheets | activate_sheet.scpt |
activate object worksheet (selectedSheet as text) | activate_sheet.scpt |
local currentDir | cdto.scpt |
tell application "Finder" to set currentDir to (target of front Finder window) as text | cdto.scpt |
do shell script "open -a Terminal " & (quoted form of POSIX path of currentDir) | cdto.scpt |
property version : "1.0b" | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
TIFFRepresentation()'s writeToURL:(my file as «class furl») ¬ | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
atomically:yes) to if it = true then tell my file to return ¬ | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
the PNG(POSIX path) of me | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
to PNG(filepath) | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
set _img to open filepath | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
set _PNG to save _img as PNG in filepath with icon | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
return the _PNG's POSIX path | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
end PNG | Create%20Machine%20Device%20Icon%20(Mojave).applescript |
tell application "MacDown" to activate | Normalize table.applescript |
set theNewText to "" | Normalize table.applescript |
set theScript to " | Normalize table.applescript |
import subprocess | Normalize table.applescript |
def getClipboardData(): | Normalize table.applescript |
p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE) | Normalize table.applescript |
retcode = p.wait() | Normalize table.applescript |
data = p.stdout.read() | Normalize table.applescript |
return data | Normalize table.applescript |
def just(string, type, n): | Normalize table.applescript |
" & quote & "Justify a string to length n according to type." & quote & " | Normalize table.applescript |
string = unicode(string, 'utf-8') | Normalize table.applescript |
if type == '::': | Normalize table.applescript |
return string.center(n) | Normalize table.applescript |
elif type == '-:': | Normalize table.applescript |
return string.rjust(n) | Normalize table.applescript |
elif type == ':-': | Normalize table.applescript |
return string.ljust(n) | Normalize table.applescript |
else: | Normalize table.applescript |
def normtable(text): | Normalize table.applescript |
" & quote & "Aligns the vertical bars in a text table." & quote & " | Normalize table.applescript |
lines = text.splitlines() | Normalize table.applescript |
rows = len(lines) | Normalize table.applescript |
for i in range(rows): | Normalize table.applescript |
if set(lines[i]).issubset('|:.-'): | Normalize table.applescript |
formatline = lines[i] | Normalize table.applescript |
formatrow = i | Normalize table.applescript |
del lines[formatrow] | Normalize table.applescript |
formatline = formatline.strip(' ') | Normalize table.applescript |
if formatline[0] == '|': formatline = formatline[1:] | Normalize table.applescript |
if formatline[-1] == '|': formatline = formatline[:-1] | Normalize table.applescript |
fstrings = formatline.split('|') | Normalize table.applescript |
justify = [] | Normalize table.applescript |
for cell in fstrings: | Normalize table.applescript |
ends = cell[0] + cell[-1] | Normalize table.applescript |
if ends == '::': | Normalize table.applescript |
justify.append('::') | Normalize table.applescript |
elif ends == '-:': | Normalize table.applescript |
justify.append('-:') | Normalize table.applescript |
justify.append(':-') | Normalize table.applescript |
columns = len(justify) | Normalize table.applescript |
content = [] | Normalize table.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.