text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set the_class to class of item 1 of the_selection | Script 24-16.applescript |
if the_class is not required_type then error | Script 24-16.applescript |
return the_selection | Script 24-16.applescript |
end get_selection_as_class | Script 24-16.applescript |
set the scalefactor to 90 | Change DPI to 90.applescript |
set thePathShell to quoted form of this_image | Change DPI to 90.applescript |
do shell script "sips -s format jp2 -s formatOptions normal -s dpiHeight " & scalefactor & " -s dpiWidth " & scalefactor & " " & thePathShell | Change DPI to 90.applescript |
do shell script "sips -s format jpeg -s formatOptions normal -s dpiHeight " & scalefactor & " -s dpiWidth " & scalefactor & " " & thePathShell | Change DPI to 90.applescript |
synchronize record this_item | Change DPI to 90.applescript |
set overlayState to get_number_variable "AltTabSwitcherOpen" | showAltTab2.applescript |
if overlayState is equal to 0.0 then set_number_variable "AltTabSwitcherOpen" to 1.0 | showAltTab2.applescript |
if overlayState is equal to 1.0 then set_number_variable "AltTabSwitcherOpen" to 0.0 | showAltTab2.applescript |
set tarAppID to get_string_variable "BTTActiveAppBundleIdentifier" | showAltTab2.applescript |
tell application "AltTab" | showAltTab2.applescript |
if overlayState is equal to 1.0 | showAltTab2.applescript |
hide | showAltTab2.applescript |
showApp appBID tarAppID | showAltTab2.applescript |
tell content of document window 1 of default document | Move to Beginning of List.scpt |
set taskList to get value of selected trees | Move to Beginning of List.scpt |
repeat with aTask in taskList | Move to Beginning of List.scpt |
set theProject to containing project of aTask | Move to Beginning of List.scpt |
move aTask to beginning of tasks of theProject | Move to Beginning of List.scpt |
ipAddresses() | ipAddresses.applescript |
on ipAddresses() | ipAddresses.applescript |
set foundDeviceMentions to paragraphs of (do shell script "networksetup -listallhardwareports | grep 'Device: '") | ipAddresses.applescript |
set foundDeviceMentions to {} | ipAddresses.applescript |
set allAddresses to {} | ipAddresses.applescript |
repeat with i from 1 to count of foundDeviceMentions | ipAddresses.applescript |
set networkDevice to last word of item i of foundDeviceMentions | ipAddresses.applescript |
set shellCommand to "ipconfig getifaddr " & networkDevice | ipAddresses.applescript |
set networkAddress to do shell script shellCommand | ipAddresses.applescript |
set networkAddress to false | ipAddresses.applescript |
if networkAddress is not false then | ipAddresses.applescript |
set end of allAddresses to {networkDevice:networkDevice, networkAddress:networkAddress} | ipAddresses.applescript |
return allAddresses | ipAddresses.applescript |
end ipAddresses | ipAddresses.applescript |
tell application "QuickTime Player" | Pause Music.applescript |
if (count of documents) is greater than 0 then | Pause Music.applescript |
if theDocument is playing then | Pause Music.applescript |
tell theDocument to pause | Pause Music.applescript |
/* eslint-disable max-lines-per-function */ | asPrelude.applescript |
/* eslint-disable no-undef */ | asPrelude.applescript |
/* eslint-disable strict */ | asPrelude.applescript |
/* eslint-disable no-unused-vars */ | asPrelude.applescript |
on |Left|(x) | asPrelude.applescript |
{type:"Either", |Left|:x, |Right|:missing value} | asPrelude.applescript |
end |Left| | asPrelude.applescript |
on Node(v, xs) | asPrelude.applescript |
{type:"Node", root:v, nest:xs} | asPrelude.applescript |
end Node | asPrelude.applescript |
{type: "Maybe", Nothing: true} | asPrelude.applescript |
on |Right|(x) | asPrelude.applescript |
{type:"Either", |Left|:missing value, |Right|:x} | asPrelude.applescript |
end |Right| | asPrelude.applescript |
on Tuple(a, b) | asPrelude.applescript |
{type:"Tuple", |1|:a, |2|:b, length:2} | asPrelude.applescript |
end Tuple | asPrelude.applescript |
on Tuple3(x, y, z) | asPrelude.applescript |
{type:"Tuple3", |1|:x, |2|:y, |3|:z, length:3} | asPrelude.applescript |
end Tuple3 | asPrelude.applescript |
on TupleN(argv) | asPrelude.applescript |
tupleFromList(argv) | asPrelude.applescript |
end TupleN | asPrelude.applescript |
on abs(x) | asPrelude.applescript |
if 0 > x then | asPrelude.applescript |
-x | asPrelude.applescript |
end abs | asPrelude.applescript |
on add(a) | asPrelude.applescript |
on |λ|(b) | asPrelude.applescript |
a + b | asPrelude.applescript |
on all(p, xs) | asPrelude.applescript |
on allSame(xs) | asPrelude.applescript |
if 2 > length of xs then | asPrelude.applescript |
script p | asPrelude.applescript |
property h : item 1 of xs | asPrelude.applescript |
h = x | asPrelude.applescript |
all(p, rest of xs) | asPrelude.applescript |
end allSame | asPrelude.applescript |
on allTree(p, tree) | asPrelude.applescript |
property mp : mReturn(p)'s |λ| | asPrelude.applescript |
on |λ|(oNode) | asPrelude.applescript |
if mp(root of oNode) then | asPrelude.applescript |
repeat with v in nest of oNode | asPrelude.applescript |
if not (contents of |λ|(v)) then return false | asPrelude.applescript |
false | asPrelude.applescript |
|λ|(tree) of go | asPrelude.applescript |
end allTree | asPrelude.applescript |
on |and|(xs) | asPrelude.applescript |
repeat with x in xs | asPrelude.applescript |
if not (contents of x) then return false | asPrelude.applescript |
end |and| | asPrelude.applescript |
on any(p, xs) | asPrelude.applescript |
if |λ|(item i of xs) then return true | asPrelude.applescript |
end any | asPrelude.applescript |
on anyTree(p, tree) | asPrelude.applescript |
if contents of |λ|(v) then return true | asPrelude.applescript |
end anyTree | asPrelude.applescript |
on ap(mf, mx) | asPrelude.applescript |
if class of mx is list then | asPrelude.applescript |
apList(mf, mx) | asPrelude.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.