text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set dateProblem to "Entered year is out of range. "
|
Set date via exif.applescript
|
set m to (choose from list monthList with title "Month" with prompt "Choose the month" default items m with empty selection allowed without multiple selections allowed)
|
Set date via exif.applescript
|
if (count of m) > 0 then
|
Set date via exif.applescript
|
if item 1 of m = item i of monthList then
|
Set date via exif.applescript
|
set mNum to i
|
Set date via exif.applescript
|
set d to text returned of (display dialog "Enter a day of the month" with title "Day" default answer d)
|
Set date via exif.applescript
|
set dNum to d as integer
|
Set date via exif.applescript
|
if (dNum < 1 or dNum > 31) then set dNum to 1
|
Set date via exif.applescript
|
set tNum to text returned of (display dialog "Enter a valid 24-hour time" with title "Time" default answer "12:00:00")
|
Set date via exif.applescript
|
set tNum to (do shell script "echo " & tNum & " | sed 's/[^0-9:]//g'")
|
Set date via exif.applescript
|
if tNum is "" or the first item of tNum is not in "1234567890" then set tNum to "12:00:00"
|
Set date via exif.applescript
|
do shell script ("/opt/homebrew/bin/exiftool -overwrite_original " & quote & "-AllDates=" & yNum & ":" & mNum & ":" & dNum & space & tNum & quote & space & fPath)
|
Set date via exif.applescript
|
display alert "Error!" message (errNum & ": " & errMsg as string)
|
Set date via exif.applescript
|
set _action's due date to missing value
|
remove-due.applescript
|
tell paragraph 1 of document 1
|
Script 24-2.applescript
|
set font size to 45
|
Script 24-2.applescript
|
set font name to "Times New Roman"
|
Script 24-2.applescript
|
set bold to true
|
Script 24-2.applescript
|
set shadow to true
|
Script 24-2.applescript
|
save document 1 in POSIX file "/Users/Shared/Examples.pages"
|
Script 24-2.applescript
|
fmGUI_ManageDataSources_Modify({dataSourceName:"a01_PERSON"})
|
fmGUI_ManageDataSources_Modify.applescript
|
on fmGUI_ManageDataSources_Modify(prefs)
|
fmGUI_ManageDataSources_Modify.applescript
|
try -- it DOES exist, so modify it:
|
fmGUI_ManageDataSources_Modify.applescript
|
set editButton to first button of window 1 whose name starts with "Edit"
|
fmGUI_ManageDataSources_Modify.applescript
|
clickObjectByCoords(editButton)
|
fmGUI_ManageDataSources_Modify.applescript
|
end fmGUI_ManageDataSources_Modify
|
fmGUI_ManageDataSources_Modify.applescript
|
set tabUrl to "asdfds.com"
|
add http prefix.applescript
|
do shell script "open -b org.mozilla.aurora " & quoted form of _url
|
Send to FirefoxAurora.applescript
|
set _cwd to POSIX path of ((folder of (front window)) as alias)
|
gistfile1-2 copy 5.scpt
|
set _term to last terminal
|
gistfile1-2 copy 5.scpt
|
write text "pushd \"" & _cwd & "\""
|
gistfile1-2 copy 5.scpt
|
fmGUI_ManageSecurity_PrivSet_GetInfo({getAccessInfo:true})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set defaultPrefs to {getAccessInfo:false}
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set customPriv to "Custom privileges..."
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set needToOpenEditWindow to true
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if name of window 1 is "Edit Privilege Set" then set needToOpenEditWindow to false
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if needToOpenEditWindow then fmGUI_ManageSecurity_PrivSet_OpenSelected({})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set privSetInfo to {privSetName:value of text field "Privilege Set Name" of window 1, privSetDesc:value of text field "Description" of window 1, accessRecord:value of pop up button "Records:" of window 1, accessLayout:value of pop up button "Layouts:" of window 1, accessVL:value of pop up button "Value Lists:" of window 1, accessScript:value of pop up button "Scripts:" of window 1, extendedPrivList:name of checkbox 1 of (every row of table 1 of scroll area 1 of window 1 whose value of checkbox 1 is 1), allowPrinting:value of checkbox "Allow printing" of window 1, allowExporting:value of checkbox "Allow exporting" of window 1, mangeExtPriv:value of checkbox "Manage extended privileges" of window 1, allowOverride:value of checkbox "Allow user to override data validation warnings" of window 1, disconnectIdle:value of checkbox "Disconnect user from server when idle" of window 1, modifyPwd:value of checkbox "Allow user to modify their own password" of window 1, menuCommands:value of pop up button "Available menu commands:" of window 1}
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if getAccessInfo of prefs then
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set {recordAccess, layoutAccess, vlAccess, scriptsAccess} to {null, null, null, null}
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if accessRecord of privSetInfo is equal to customPriv then
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_Open({accessRecord:customPriv})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set recordAccess to fmGUI_ManageSecurity_AccessRecord_GetInfo_AllTables({})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if accessLayout of privSetInfo is equal to customPriv then
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set popUpButtonRef to pop up button "Layouts:" of window 1
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
click popUpButtonRef
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
click menu item customPriv of menu 1 of popUpButtonRef
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set layoutAccess to fmGUI_ManageSecurity_AccessLayout_GetInfo({})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if accessVL of privSetInfo is equal to customPriv then
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set popUpButtonRef to pop up button "Value Lists:" of window 1
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set vlAccess to fmGUI_ManageSecurity_AccessValueList_GetInfo({})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
if accessScript of privSetInfo is equal to customPriv then
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set popUpButtonRef to pop up button "Scripts:" of window 1
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set scriptsAccess to fmGUI_ManageSecurity_AccessScripts_GetInfo({})
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
set privSetInfo to privSetInfo & {recordAccess:recordAccess, layoutAccess:layoutAccess, vlAccess:vlAccess, scriptsAccess:scriptsAccess}
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
return privSetInfo
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
error "unable to fmGUI_ManageSecurity_PrivSet_GetInfo - " & errMsg number errNum
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
on fmGUI_ManageSecurity_AccessLayout_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_AccessLayout_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
end fmGUI_ManageSecurity_AccessLayout_GetInfo
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_AccessRecord_GetInfo_AllTables(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
on fmGUI_ManageSecurity_AccessScripts_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_AccessScripts_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
end fmGUI_ManageSecurity_AccessScripts_GetInfo
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
on fmGUI_ManageSecurity_AccessValueList_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_AccessValueList_GetInfo(prefs)
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
end fmGUI_ManageSecurity_AccessValueList_GetInfo
|
fmGUI_ManageSecurity_PrivSet_GetInfo.applescript
|
global std, textUtil, regex
|
speech.applescript
|
global TRANS_CONFIG
|
speech.applescript
|
sut's speak("Deploying...")
|
speech.applescript
|
script SpeechInstance
|
speech.applescript
|
property quiet : false
|
speech.applescript
|
property synchronous : false
|
speech.applescript
|
property waitNextWords : false -- Same purpose as speakSynchronously()
|
speech.applescript
|
property logging : true
|
speech.applescript
|
on speak(rawText as text)
|
speech.applescript
|
if logger is missing value then set logger to std's import("logger")'s new("speech") -- weird error.
|
speech.applescript
|
if usr's isInMeeting() then
|
speech.applescript
|
logger's info("SILENCED: " & rawText)
|
speech.applescript
|
on error the errorMessage number the errorNumber -- ignore if user script is not installed.
|
speech.applescript
|
set textToSpeak to rawText
|
speech.applescript
|
if TRANS_CONFIG is missing value then
|
speech.applescript
|
logger's warn("Text to Speech configuration is missing.")
|
speech.applescript
|
set translatables to TRANS_CONFIG's getValue("raw")
|
speech.applescript
|
set translations to TRANS_CONFIG's getValue("translated")
|
speech.applescript
|
on error -- undefined during system error catching
|
speech.applescript
|
set TRANS_CONFIG to missing value
|
speech.applescript
|
set translatables to {}
|
speech.applescript
|
if TRANS_CONFIG is missing value or translatables is missing value then set translatables to {}
|
speech.applescript
|
repeat with idx from 1 to count of translatables
|
speech.applescript
|
set nextTranslatable to item idx of translatables
|
speech.applescript
|
set nextTranslation to item idx of translations
|
speech.applescript
|
set isRegex to nextTranslatable starts with "/" and nextTranslatable ends with "/"
|
speech.applescript
|
if isRegex then
|
speech.applescript
|
set pattern to text 2 thru ((count of nextTranslatable) - 1) of nextTranslatable
|
speech.applescript
|
if regex's matchesInString(pattern, textToSpeak) then
|
speech.applescript
|
set textToSpeak to regex's replace(textToSpeak, pattern, nextTranslation)
|
speech.applescript
|
else if textToSpeak contains nextTranslatable then
|
speech.applescript
|
set textToSpeak to textUtil's replace(textToSpeak, nextTranslatable, nextTranslation)
|
speech.applescript
|
if my quiet then return textToSpeak
|
speech.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.