text
stringlengths
0
15.7k
source
stringlengths
6
112
end allOffset
Main.applescript
on last_offset(the_object_string, the_search_string)
Main.applescript
set len to count of the_object_string
Main.applescript
set reverses to reverse of characters of the_search_string as string
Main.applescript
set reversed to reverse of characters of the_object_string as string
Main.applescript
set last_occurrence_offset to len - (offset of reverses in reversed)
Main.applescript
if last_occurrence_offset > len then
Main.applescript
return last_occurrence_offset
Main.applescript
end last_offset
Main.applescript
on quit_MacYTDL()
Main.applescript
set default_contents_text to ""
Main.applescript
set YTDL_version to ""
Main.applescript
set monitor_dialog_position to ""
Main.applescript
end quit_MacYTDL
Main.applescript
set thisCaseId to "chrome-spotCheck"
chrome copy 2.applescript
Manual: New Window
chrome copy 2.applescript
Manual: New Tab
chrome copy 2.applescript
Manual: Open the Developer tools
chrome copy 2.applescript
sut's newWindow("https://www.example.com")
chrome copy 2.applescript
sut's newTab("https://www.example.com")
chrome copy 2.applescript
sut's openDeveloperTools()
chrome copy 2.applescript
script ChromeInstance
chrome copy 2.applescript
on newWindow(targetUrl)
chrome copy 2.applescript
set newWindow to make new window
chrome copy 2.applescript
set URL of active tab of newWindow to targetUrl
chrome copy 2.applescript
end newWindow
chrome copy 2.applescript
on newTab(targetUrl)
chrome copy 2.applescript
set newTab to make new tab at end of tabs
chrome copy 2.applescript
set URL of newTab to targetUrl
chrome copy 2.applescript
end newTab
chrome copy 2.applescript
on openDeveloperTools()
chrome copy 2.applescript
tell active tab of window 1 to activate
chrome copy 2.applescript
keystroke "i" using {option down, command down}
chrome copy 2.applescript
end openDeveloperTools
chrome copy 2.applescript
click menu item "New Private Window" of ¬
open urls in safari private window.scpt
menu "File" of menu bar 1 of ¬
open urls in safari private window.scpt
application process "Safari"
open urls in safari private window.scpt
open location "google.com"
open urls in safari private window.scpt
open location "amazon.com"
open urls in safari private window.scpt
round -3.67
round <real> rounding to nearest.applescript
round -3.67 rounding to nearest
round <real> rounding to nearest.applescript
set thePath to (path to preferences as text) & "pdf-snapshot-automator-applet-preferences.scpt" -- better
Persistent-preferences-example.applescript
script myPreferences
Persistent-preferences-example.applescript
property URLDesired : missing value
Persistent-preferences-example.applescript
set myPreferences to load script file thePath
Persistent-preferences-example.applescript
set myPreferences's URLDesired to "nope"
Persistent-preferences-example.applescript
set myPreferences's URLDesired to "Hello"
Persistent-preferences-example.applescript
store script myPreferences in file thePath replacing yes
Persistent-preferences-example.applescript
return myPreferences's URLDesired
Persistent-preferences-example.applescript
set_number_variable "TaskSwitcherOpen" to 0.0
screenhookClick.applescript
set_number_variable "AltTabSwitcherOpen" to 0.0
screenhookClick.applescript
set pie_count to 3
Script 11-14.applescript
set pie_radius to 14 -- Pie radius in cm
Script 11-14.applescript
set pie_circumference to pie_radius * pi
Script 11-14.applescript
set ribbon_length to pie_circumference * pie_count
Script 11-14.applescript
set ribbon_length to ribbon_length * 1.1 -- Add 10% to allow for bow-tie at end
Script 11-14.applescript
round ribbon_length rounding up -- Round to a whole number of cm
Script 11-14.applescript
repeat with _action in my selectedActions()
remove-defer.applescript
my processAction(_action)
remove-defer.applescript
on selectedActions()
remove-defer.applescript
return my filterValues(my selectedValues(), {inbox task, task, available task, remaining task})
remove-defer.applescript
end selectedActions
remove-defer.applescript
on selectedValues()
remove-defer.applescript
return value of selected trees of content of first document window of front document
remove-defer.applescript
end selectedValues
remove-defer.applescript
on filterValues(_values, _classes)
remove-defer.applescript
set _result to {}
remove-defer.applescript
repeat with _value in _values
remove-defer.applescript
if _classes contains _value's class then
remove-defer.applescript
copy _value to end of _result
remove-defer.applescript
return _result
remove-defer.applescript
end filterValues
remove-defer.applescript
on processAction(_action)
remove-defer.applescript
set _action's defer date to missing value
remove-defer.applescript
end processAction
remove-defer.applescript
fmGUI_PasteFromClipboard()
fmGUI_PasteFromClipboard.applescript
on fmGUI_PasteFromClipboard()
fmGUI_PasteFromClipboard.applescript
set pasteMenuItem to first menu item of menu 1 of menu bar item "Edit" of menu bar 1 whose name is "Paste"
fmGUI_PasteFromClipboard.applescript
set pasteMenuItem to first menu item of menu 1 of menu bar item "Edit" of menu bar 1 whose name is "Paste Styled Text"
fmGUI_PasteFromClipboard.applescript
return fmGUI_ClickMenuItem({menuItemRef:pasteMenuItem, waitForMenuAvailable:true})
fmGUI_PasteFromClipboard.applescript
error "Couldn't fmGUI_CopySelected - " & errMsg number errNum
fmGUI_PasteFromClipboard.applescript
end fmGUI_PasteFromClipboard
fmGUI_PasteFromClipboard.applescript
property scriptname : "jb"
jb.scpt
property ScriptDescription : "A Jailbreak Information Script for Textual 5"
jb.scpt
property ScriptHomepage : "https://raw.githubusercontent.com/Xeon3D/textual5-scripts/master/jb.scpt"
jb.scpt
property ScriptAuthor : "Xeon3D"
jb.scpt
property ScriptContributors : ""
jb.scpt
property ScriptAuthorHomepage : "http://www.github.com/Xeon3D/"
jb.scpt
property CurrentVersion : "0.0.2"
jb.scpt
property CodeName : "The Proper Version"
jb.scpt
property SupportChannel : "irc://irc.freenode.org/#textual"
jb.scpt
property CBlack : (ASCII character 3) & "01"
jb.scpt
property CNBlue : (ASCII character 3) & "02"
jb.scpt
property CGreen : (ASCII character 3) & "03"
jb.scpt
property CRed : (ASCII character 3) & "04"
jb.scpt
property CBrown : (ASCII character 3) & "05"
jb.scpt
property CPurple : (ASCII character 3) & "06"
jb.scpt
property COrange : (ASCII character 3) & "07"
jb.scpt
property CYellow : (ASCII character 3) & "08"
jb.scpt
property CLGreen : (ASCII character 3) & "09"
jb.scpt