text
stringlengths
0
15.7k
source
stringlengths
6
112
chrome_executeJavascript("document.getElementById('ap_email').value = '" & string_escapeSingleQuote(aUserID) & "';")
chrome_aws_console.scpt
chrome_executeJavascript("document.getElementById('ap_password').value = '" & string_escapeSingleQuote(aPassword) & "';")
chrome_aws_console.scpt
chrome_executeJavascript("document.getElementById('signInSubmit').click();")
chrome_aws_console.scpt
end openAndLoginAwsConsoleWithChrome
chrome_aws_console.scpt
on chrome_launchAndActivate()
chrome_aws_console.scpt
end chrome_launchAndActivate
chrome_aws_console.scpt
on chrome_openUrlWithNewTab(aURL)
chrome_aws_console.scpt
tell front window to make new tab with properties {URL:aURL}
chrome_aws_console.scpt
end chrome_openUrlWithNewTab
chrome_aws_console.scpt
on chrome_waitLoading()
chrome_aws_console.scpt
set tabLoading to loading of active tab of front window
chrome_aws_console.scpt
if not tabLoading then exit repeat
chrome_aws_console.scpt
end chrome_waitLoading
chrome_aws_console.scpt
on chrome_executeJavascript(aScript)
chrome_aws_console.scpt
tell active tab of front window
chrome_aws_console.scpt
execute javascript aScript
chrome_aws_console.scpt
end chrome_executeJavascript
chrome_aws_console.scpt
on string_replace(theText, searchStr, replaceStr)
chrome_aws_console.scpt
set AppleScript's text item delimiters to searchStr
chrome_aws_console.scpt
end string_replace
chrome_aws_console.scpt
on string_escapeSingleQuote(theText)
chrome_aws_console.scpt
return string_replace(theText, "'", "\\'")
chrome_aws_console.scpt
end string_escapeSingleQuote
chrome_aws_console.scpt
open location "https://pr0xy.dev/"
open_url copy.applescript
property v : 0
Script 28-3.applescript
on prepare theDialog
Script 28-3.applescript
set v to 0
Script 28-3.applescript
repeat with i from 2 to 12 by 2
Script 28-3.applescript
set contained data of dialog item i of theDialog to ""
Script 28-3.applescript
end prepare
Script 28-3.applescript
on RefreshDisplay(d)
Script 28-3.applescript
set s to contained data of dialog item 2
Script 28-3.applescript
set text_font to contained data of dialog item 4
Script 28-3.applescript
set text_size to contained data of dialog item 6
Script 28-3.applescript
set x to contained data of dialog item 8
Script 28-3.applescript
set y to contained data of dialog item 10
Script 28-3.applescript
set w_name to contained data of dialog item 12
Script 28-3.applescript
set {dx, dy, the_width, the_height} to measuretext s font {text font:text_font, text size:text_size }
Script 28-3.applescript
set frame of v to {x, y + dy, the_width, the_height}
Script 28-3.applescript
set v to make new picture view at w with properties {frame:{x, y + dy, the_width, the_height}}
Script 28-3.applescript
BeginFrontFigure(v)
Script 28-3.applescript
SetTextFont(text_font)
Script 28-3.applescript
SetTextSize(text_size)
Script 28-3.applescript
TextMoveTo({0, -dy})
Script 28-3.applescript
DrawText(s)
Script 28-3.applescript
DrawPath("stroke")
Script 28-3.applescript
EndFrontFigure()
Script 28-3.applescript
end RefreshDisplay
Script 28-3.applescript
on MergeCurrent(d)
Script 28-3.applescript
set contained data of dialog item 2 of d to ""
Script 28-3.applescript
end MergeCurrent
Script 28-3.applescript
on click in d item number n
Script 28-3.applescript
if n = 13 then
Script 28-3.applescript
RefreshDisplay(d)
Script 28-3.applescript
else if n = 14 then
Script 28-3.applescript
MergeCurrent(d)
Script 28-3.applescript
end click in
Script 28-3.applescript
This is a text-file, NOT an AppleScript file.
no-as.scpt
do shell script "python /Users/Matthew/Documents/bookscripts/comic_convert.py " & (the quoted form of the POSIX path of this_folder)
comic_convert.applescript
on growlnotify(t, m)
on growlnotify(t, m).applescript
do shell script "growlnotify -a Finder -t '" & t & "' -m '" & m & "'"
on growlnotify(t, m).applescript
growlnotify("t", "m")
on growlnotify(t, m).applescript
property usesFlagsForScheduling : true -- true or false, true flags any tasks that the script runs on
Later.applescript
property methodForScheduling : "Start" -- Options are "Start" or "Due"
Later.applescript
property useGrowlForAlerts : true -- true or false
Later.applescript
property promptForUserOptions : true -- will change after first run
Later.applescript
property timesUsedSinceError : 0
Later.applescript
set tasksSelected to value of (selected trees where (class of its value is not item) and (class of its value is not folder))
Later.applescript
if length of tasksSelected is 0 then
Later.applescript
display alert "You didn't select any OmniFocus tasks."
Later.applescript
if promptForUserOptions then
Later.applescript
"Would you like to automatically flag the tasks on which you run this script?" buttons {"No, Don't Flag", "Yes, Use Flags"} default button 2 giving up after 60
Later.applescript
set decisionOnFlags to button returned of result
Later.applescript
if decisionOnFlags is "No, Don't Flag" then set usesFlagsForSceduling to false
Later.applescript
display dialog "Would you like to use Due or Start dates for scheduling?" buttons {"Due", "Start"} default button 2
Later.applescript
set methodForScheduling to button returned of result
Later.applescript
set promptForUserOptions to false
Later.applescript
set inputDialog to "To when would you like to defer this task?"
Later.applescript
if timesUsedSinceError = 0 then set inputDialog to (inputDialog & " Note: you can use relative days (i.e., \"1w 4d 2pm\"), absolute dates (i.e., \"Jan 19 14:00\") or weekdays (i.e., \"Sat 5pm\"), just as in OmniFocus.")
Later.applescript
inputDialog default answer "1d 12am"
Later.applescript
set timeDeferred to text returned of result
Later.applescript
if errorNumber is -128 then
Later.applescript
set escapeToStart to (timeDeferred starts with "start")
Later.applescript
set escapeToDue to (timeDeferred starts with "due")
Later.applescript
set escapeToBoth to (timeDeferred contains "start") and (timeDeferred contains "due")
Later.applescript
set startFirst to true
Later.applescript
if escapeToBoth then
Later.applescript
set startFirst to (offset of "start" in timeDeferred) < (offset of "due" in timeDeferred)
Later.applescript
set my text item delimiters to {"start ", "start", "due ", "due"}
Later.applescript
set adjustedInput to every text item of timeDeferred
Later.applescript
set fixedInput to {}
Later.applescript
repeat with i from 1 to (length of adjustedInput)
Later.applescript
if not ((item i of adjustedInput is "") or (item i of adjustedInput is in " ")) then
Later.applescript
set the end of fixedInput to item i of adjustedInput
Later.applescript
if length of fixedInput is not 2 then return
Later.applescript
set desiredDate1 to getDate(item 1 of fixedInput)
Later.applescript
set desiredDate2 to getDate(item 2 of fixedInput)
Later.applescript
if (desiredDate2 is -1) or (desiredDate1 is -1) then return
Later.applescript
set desiredDate1 to getDate(timeDeferred)
Later.applescript
if desiredDate1 is -1 then return
Later.applescript