text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set theFile to imageName as alias | Images - Show only RGB images.applescript |
set this_image to open theFile | Images - Show only RGB images.applescript |
set color_space to color space of this_image | Images - Show only RGB images.applescript |
set color_space to color_space as string | Images - Show only RGB images.applescript |
if color_space = "CMYK" then | Images - Show only RGB images.applescript |
set check to 1 | Images - Show only RGB images.applescript |
if check is 0 then set suppress printing to 1 | Images - Show only RGB images.applescript |
close saving yes | Close-With-Saving.applescript |
set button_action to execute the_tab javascript "document.querySelector('div[role=\"button\"][data-tooltip*=\"microphone\"]').getAttribute(\"aria-label\")" | toggle_microphone.applescript |
execute the_tab javascript "var el = document.querySelector('div[role=\"button\"][data-tooltip*=\"microphone\"]'); el.dispatchEvent(new MouseEvent('mousedown')); el.dispatchEvent(new MouseEvent('mouseup')); el.dispatchEvent(new MouseEvent('mouseout'));" | toggle_microphone.applescript |
tell every database to close | Close All Databases.applescript |
tell application "System Events" to set iTunesRunning to (name of processes) contains "iTunes" | sleepPrep.applescript |
if iTunesRunning then | sleepPrep.applescript |
run script (scriptdirectory & "SmartIpodSync.scpt" as POSIX file) | sleepPrep.applescript |
set protectedDisks to {} | sleepPrep.applescript |
run script (scriptdirectory & "EjectDisks.scpt" as POSIX file) with parameters {protectedDisks} | sleepPrep.applescript |
run script (scriptdirectory & "VPNDisconnect.scpt" as POSIX file) | sleepPrep.applescript |
set myConnection to the service "VPN (L2TP)" | re-connect-vpn.scpt |
display dialog "????? Dock? ????? Dock??" buttons {"??","??"}with icon 2 with title "Dock ??" default button 2 | HideDock.applescript |
set HideSet to button returned of result | HideDock.applescript |
if HideSet is "??" then | HideDock.applescript |
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder" | HideDock.applescript |
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder" | HideDock.applescript |
set addr to "https://calendar.google.com/calendar/r" | SelectOrOpen_calendar.applescript |
set theFileName to last text item of (theFile as text) | AddTextFileAsTask.scpt |
set theName to text 1 thru -9 of theFileName | AddTextFileAsTask.scpt |
set theNote to read theFile as string | AddTextFileAsTask.scpt |
set newToDo to make new to do with properties {name:theName} | AddTextFileAsTask.scpt |
set notes of newToDo to theNote | AddTextFileAsTask.scpt |
set theDuration to duration of theCue | Complete selected.applescript |
load theCue time (theDuration * 0.999) | Complete selected.applescript |
set serverList to argv | cssh.applescript |
if (count serverList) = 0 | cssh.applescript |
log("usage: iterm2-cssh [user@]hostname ...") | cssh.applescript |
set numColumns to (round ((count serverList) ^ 0.5) rounding up) | cssh.applescript |
set allSessions to {} | cssh.applescript |
set columnTops to {} | cssh.applescript |
tell newWindow | cssh.applescript |
copy current session to end of |allSessions| | cssh.applescript |
copy current session to end of |columnTops| | cssh.applescript |
repeat numColumns - 1 times | cssh.applescript |
set newSession to (split vertically with default profile) | cssh.applescript |
copy newSession to end of |allSessions| | cssh.applescript |
copy newSession to end of |columnTops| | cssh.applescript |
tell newSession to select | cssh.applescript |
set columnsDone to 0 | cssh.applescript |
repeat with columnTop in columnTops | cssh.applescript |
tell columnTop | cssh.applescript |
set numVertical to (round(((count serverList)-(count allSessions))/(numColumns-columnsDone)) rounding up) + 1 | cssh.applescript |
repeat numVertical - 1 times | cssh.applescript |
copy (split horizontally with default profile) to end of |allSessions| | cssh.applescript |
set columnsDone to columnsDone + 1 | cssh.applescript |
repeat with loopIndex from 1 to number of items in allSessions | cssh.applescript |
tell item loopIndex of allSessions | cssh.applescript |
write text "ssh " & (item loopIndex of serverList) | cssh.applescript |
tell application "System Events" to keystroke "I" using {command down, shift down} | cssh.applescript |
do action "New From Clipboard" from "Roben Kleene" | New From Clipboard.applescript |
property userName : "<Username>" | Automatic%20BackUp.scpt |
property diskName : "<DiskName>" | Automatic%20BackUp.scpt |
property serverAddress : "smb://DiskName" | Automatic%20BackUp.scpt |
property userPassword : "<Password>" | Automatic%20BackUp.scpt |
on connectToServer() | Automatic%20BackUp.scpt |
global userName | Automatic%20BackUp.scpt |
global diskName | Automatic%20BackUp.scpt |
global serverAddress | Automatic%20BackUp.scpt |
global userPassword | Automatic%20BackUp.scpt |
set mountedDisks to list disks | Automatic%20BackUp.scpt |
if mountedDisks does not contain diskName then | Automatic%20BackUp.scpt |
mount volume serverAddress as user name userName with password userPassword | Automatic%20BackUp.scpt |
takeBackUp() | Automatic%20BackUp.scpt |
if mountedDisks contains diskName then | Automatic%20BackUp.scpt |
end connectToServer | Automatic%20BackUp.scpt |
on takeBackUp() | Automatic%20BackUp.scpt |
set workspace to (path to desktop as text) --"Users:iosdev:Desktop" | Automatic%20BackUp.scpt |
set timeString to replace_chars(time string of (current date), ":", "-") as string | Automatic%20BackUp.scpt |
set p to "-" | Automatic%20BackUp.scpt |
set mydate to (d & p & m * 1 & p & y & p & timeString) as string | Automatic%20BackUp.scpt |
set mydate to replace_chars(mydate, " ", "_") as string | Automatic%20BackUp.scpt |
set filename to mydate as string | Automatic%20BackUp.scpt |
set inputFolder to "Macintosh HD:Users:iosdev:AppFolder:" | Automatic%20BackUp.scpt |
set filePath to "Macintosh HD:Users:iosdev:" | Automatic%20BackUp.scpt |
set qpp to quoted form of POSIX path of inputFolder | Automatic%20BackUp.scpt |
do shell script "cd $(dirname " & qpp & ") | Automatic%20BackUp.scpt |
zip -r \"$(basename " & filename & ").zip\" \"$(basename " & qpp & ")\"" | Automatic%20BackUp.scpt |
set zipFile to filePath & filename & ".zip" | Automatic%20BackUp.scpt |
set destination to "PQA_APP_BackUp:" | Automatic%20BackUp.scpt |
move zipFile to destination | Automatic%20BackUp.scpt |
delete zipFile | Automatic%20BackUp.scpt |
display dialog ("Backup saved locally. Please move it to server.") | Automatic%20BackUp.scpt |
end takeBackUp | Automatic%20BackUp.scpt |
connectToServer() | Automatic%20BackUp.scpt |
set bowtieApp to application "Bowtie" | restart-bowtie.scpt |
tell bowtieApp to quit | restart-bowtie.scpt |
tell bowtieApp to run | restart-bowtie.scpt |
tell bowtieApp to launch | restart-bowtie.scpt |
openAndLoginAwsConsoleWithChrome(system attribute "USERID", system attribute "PASSWD") | chrome_aws_console.scpt |
on openAndLoginAwsConsoleWithChrome(aUserID, aPassword) | chrome_aws_console.scpt |
chrome_launchAndActivate() | chrome_aws_console.scpt |
chrome_openUrlWithNewTab("https://www.amazon.com/ap/signin?openid.assoc_handle=aws&openid.return_to=https%3A%2F%2Fsignin.aws.amazon.com%2Foauth%3Fresponse_type%3Dcode%26client_id%3Darn%253Aaws%253Aiam%253A%253A015428540659%253Auser%252Fhomepage%26redirect_uri%3Dhttps%253A%252F%252Fconsole.aws.amazon.com%252Fconsole%252... | chrome_aws_console.scpt |
chrome_waitLoading() | chrome_aws_console.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.