text
stringlengths
0
15.7k
source
stringlengths
6
112
if book is in {"Mal.", "Malachi"} then set theURI to "/study/scriptures/ot/mal/"
Open%20scripture%20reference.applescript
if book is in {"Matt.", "Matthew"} then set theURI to "/study/scriptures/nt/matt/"
Open%20scripture%20reference.applescript
if book is "Mark" then set theURI to "/study/scriptures/nt/mark/"
Open%20scripture%20reference.applescript
if book is "Luke" then set theURI to "/study/scriptures/nt/luke/"
Open%20scripture%20reference.applescript
if book is "John" then set theURI to "/study/scriptures/nt/john/"
Open%20scripture%20reference.applescript
if book is "Acts" then set theURI to "/study/scriptures/nt/acts/"
Open%20scripture%20reference.applescript
if book is in {"Rom.", "Romans"} then set theURI to "/study/scriptures/nt/rom/"
Open%20scripture%20reference.applescript
if book is in {"1 Cor.", "1 Corinthians"} then set theURI to "/study/scriptures/nt/1-cor/"
Open%20scripture%20reference.applescript
if book is in {"2 Cor.", "2 Corinthians"} then set theURI to "/study/scriptures/nt/2-cor/"
Open%20scripture%20reference.applescript
if book is in {"Gal.", "Galatians"} then set theURI to "/study/scriptures/nt/gal/"
Open%20scripture%20reference.applescript
if book is in {"Eph.", "Ephesians"} then set theURI to "/study/scriptures/nt/eph/"
Open%20scripture%20reference.applescript
if book is in {"Philip.", "Philippians"} then set theURI to "/study/scriptures/nt/philip/"
Open%20scripture%20reference.applescript
if book is in {"Col.", "Colossians"} then set theURI to "/study/scriptures/nt/col/"
Open%20scripture%20reference.applescript
if book is in {"1 Thes.", "1 Thessalonians"} then set theURI to "/study/scriptures/nt/1-thes/"
Open%20scripture%20reference.applescript
if book is in {"2 Thes.", "2 Thessalonians"} then set theURI to "/study/scriptures/nt/2-thes/"
Open%20scripture%20reference.applescript
if book is in {"1 Tim.", "1 Timothy"} then set theURI to "/study/scriptures/nt/1-tim/"
Open%20scripture%20reference.applescript
if book is in {"2 Tim.", "2 Timothy"} then set theURI to "/study/scriptures/nt/2-tim/"
Open%20scripture%20reference.applescript
if book is "Titus" then set theURI to "/study/scriptures/nt/titus/"
Open%20scripture%20reference.applescript
if book is in {"Philem.", "Philemon"} then set theURI to "/study/scriptures/nt/philem/"
Open%20scripture%20reference.applescript
if book is in {"Heb.", "Hebrews"} then set theURI to "/study/scriptures/nt/heb/"
Open%20scripture%20reference.applescript
if book is "James" then set theURI to "/study/scriptures/nt/james/"
Open%20scripture%20reference.applescript
if book is in {"1 Pet.", "1 Peter"} then set theURI to "/study/scriptures/nt/1-pet/"
Open%20scripture%20reference.applescript
if book is in {"2 Pet.", "2 Peter"} then set theURI to "/study/scriptures/nt/2-pet/"
Open%20scripture%20reference.applescript
if book is in {"1 Jn.", "1 John"} then set theURI to "/study/scriptures/nt/1-jn/"
Open%20scripture%20reference.applescript
if book is in {"2 Jn.", "2 John"} then set theURI to "/study/scriptures/nt/2-jn/"
Open%20scripture%20reference.applescript
if book is in {"3 Jn.", "3 John"} then set theURI to "/study/scriptures/nt/3-jn/"
Open%20scripture%20reference.applescript
if book is "Jude" then set theURI to "/study/scriptures/nt/jude/"
Open%20scripture%20reference.applescript
if book is in {"Rev.", "Revelation"} then set theURI to "/study/scriptures/nt/rev/"
Open%20scripture%20reference.applescript
if book is in {"1 Ne.", "1 Nephi"} then set theURI to "/study/scriptures/bofm/1-ne/"
Open%20scripture%20reference.applescript
if book is in {"2 Ne.", "2 Nephi"} then set theURI to "/study/scriptures/bofm/2-ne/"
Open%20scripture%20reference.applescript
if book is "Jacob" then set theURI to "/study/scriptures/bofm/jacob/"
Open%20scripture%20reference.applescript
if book is "Enos" then set theURI to "/study/scriptures/bofm/enos/"
Open%20scripture%20reference.applescript
if book is "Jarom" then set theURI to "/study/scriptures/bofm/jarom/"
Open%20scripture%20reference.applescript
if book is "Omni" then set theURI to "/study/scriptures/bofm/omni/"
Open%20scripture%20reference.applescript
if book is in {"W of M", "Words of Mormon"} then set theURI to "/study/scriptures/bofm/w-of-m/"
Open%20scripture%20reference.applescript
if book is "Mosiah" then set theURI to "/study/scriptures/bofm/mosiah/"
Open%20scripture%20reference.applescript
if book is "Alma" then set theURI to "/study/scriptures/bofm/alma/"
Open%20scripture%20reference.applescript
if book is in {"Hel.", "Helaman"} then set theURI to "/study/scriptures/bofm/hel/"
Open%20scripture%20reference.applescript
if book is in {"3 Ne.", "3 Nephi"} then set theURI to "/study/scriptures/bofm/3-ne/"
Open%20scripture%20reference.applescript
if book is in {"4 Ne.", "4 Nephi"} then set theURI to "/study/scriptures/bofm/4-ne/"
Open%20scripture%20reference.applescript
if book is in {"Morm.", "Mormon"} then set theURI to "/study/scriptures/bofm/morm/"
Open%20scripture%20reference.applescript
if book is "Ether" then set theURI to "/study/scriptures/bofm/ether/"
Open%20scripture%20reference.applescript
if book is in {"Moro.", "Moroni"} then set theURI to "/study/scriptures/bofm/moro/"
Open%20scripture%20reference.applescript
if book is in {"D&C", "Doctrine and Covenants"} then set theURI to "/study/scriptures/dc-testament/dc/"
Open%20scripture%20reference.applescript
if book is in {"OD", "Official Declaration"} then set theURI to "/study/scriptures/dc-testament/od/"
Open%20scripture%20reference.applescript
if book is "Moses" then set theURI to "/study/scriptures/pgp/moses/"
Open%20scripture%20reference.applescript
if book is in {"Abr.", "Abraham"} then set theURI to "/study/scriptures/pgp/abr/"
Open%20scripture%20reference.applescript
if book is in {"JS-M", "Joseph Smith-Matthew"} then set theURI to "/study/scriptures/pgp/js-m/"
Open%20scripture%20reference.applescript
if book is in {"JS-H", "Joseph Smith-History"} then set theURI to "/study/scriptures/pgp/js-h/"
Open%20scripture%20reference.applescript
if book is in {"A of F", "Articles of Faith"} then set theURI to "/study/scriptures/pgp/a-of-f/"
Open%20scripture%20reference.applescript
set theURI to theURI & chapter & "." & verses & "#" & firstverse
Open%20scripture%20reference.applescript
try -- try to open the link in Gospel Library first…
Open%20scripture%20reference.applescript
get "gospellibrary:/" & theURI
Open%20scripture%20reference.applescript
do shell script "open " & result
Open%20scripture%20reference.applescript
on error -- …but if it isn't installed then open online version
Open%20scripture%20reference.applescript
open location "https://www.churchofjesuschrist.org" & theURI
Open%20scripture%20reference.applescript
to regexSearch(theString, thePattern)
Open%20scripture%20reference.applescript
if thePattern contains "\\d" then
Open%20scripture%20reference.applescript
return "Error! regexSearch does not support extended regex features at this time."
Open%20scripture%20reference.applescript
else if thePattern contains "\\w" then
Open%20scripture%20reference.applescript
do shell script "sed -r 's/" & thePattern & "/" & "\\1/' <<< " & quoted form of theString
Open%20scripture%20reference.applescript
end regexSearch
Open%20scripture%20reference.applescript
set note_found to (find notes ("intitle:\"" & note_name & "\""))
note_read.applescript
return HTML content of (item 1 of note_found)
note_read.applescript
property username : missing value
std.applescript
logger's infof("Username: {}", getUsername())
std.applescript
logger's infof("App Exists no: {}", appExists("Magneto"))
std.applescript
logger's infof("App Exists yes: {}", appExists("Script Editor"))
std.applescript
assertThat given condition:1 + 3 < 10, messageOnFail:"failed on first assertion"
std.applescript
assertThat given condition:1 + 3 < 4, messageOnFail:"failed on second assertion"
std.applescript
on import(moduleName)
std.applescript
init() -- do not remove.
std.applescript
set theScript to script moduleName
std.applescript
try -- in case init is not defined. Other errors not expected.
std.applescript
if not initialized of theScript then
std.applescript
theScript's init()
std.applescript
theScript
std.applescript
end import
std.applescript
on applyMappedOverride(scriptObj)
std.applescript
set scriptName to the name of the scriptObj
std.applescript
set factory to missing value
std.applescript
set factory to do shell script "plutil -extract '" & scriptName & "' raw ~/applescript-core/config-lib-factory.plist"
std.applescript
set array to every text item of csv
std.applescript
repeat with nextElement in the array
std.applescript
set factoryScript to import(nextElement)
std.applescript
set scriptObj to factoryScript's decorate(scriptObj)
std.applescript
return scriptObj
std.applescript
if factory is not missing value then
std.applescript
set factoryScript to import(factory)
std.applescript
return factoryScript's decorate(scriptObj)
std.applescript
scriptObj
std.applescript
end applyMappedOverride
std.applescript
on catch(source, errorNumber, errorMessage)
std.applescript
if errorMessage contains "user canceled" or errorMessage contains "abort" then
std.applescript
say "aborted"
std.applescript
if errorMessage contains "is not allowed to send keystrokes" or errorMessage contains "is not allowed assistive access" then
std.applescript
reveal anchor "Privacy_Accessibility" of pane id "com.apple.preference.security"
std.applescript
click button "Click the lock to make changes." of window "Security & Privacy"
std.applescript
std's cueForTouchId()
std.applescript
end try -- above was designed only for macOS Monterey, breaks on
std.applescript