text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
end newPass | pass setter.applescript |
on checkStatus(theSel) | pass setter.applescript |
set theStati to {"--"} | pass setter.applescript |
repeat while theStati contains "--" or theStati contains "Authenticating" | pass setter.applescript |
set theStati to {} | pass setter.applescript |
repeat with anComputer in theSel | pass setter.applescript |
set theStati to theStati & status message of anComputer | pass setter.applescript |
end checkStatus | pass setter.applescript |
on sortComputers(theSel) | pass setter.applescript |
repeat with thisComputer in theSel | pass setter.applescript |
set theStatus to status message of thisComputer | pass setter.applescript |
if (theStatus is "Available" or theStatus contains "Idle") then | pass setter.applescript |
add thisComputer to computer list "Available" | pass setter.applescript |
remove thisComputer from computer list "Authenticating" | pass setter.applescript |
if (theStatus is "Offline" and RemoveOffline) then | pass setter.applescript |
add thisComputer to computer list "Offline" | pass setter.applescript |
if (theStatus is not "Access Denied" and RemoveBroken) then | pass setter.applescript |
add thisComputer to computer list "ARD off or broken" | pass setter.applescript |
end sortComputers | pass setter.applescript |
on isValid(item_info) | docx2pdf.scpt |
return (folder of the item_info is false) and (package folder of the item_info is false) and (alias of the item_info is false) and (name extension of item_info is "docx") | docx2pdf.scpt |
end isValid | docx2pdf.scpt |
process_folder(this_item) | docx2pdf.scpt |
else if isValid(item_info) then | docx2pdf.scpt |
process_file(this_item) | docx2pdf.scpt |
on process_folder(this_folder) | docx2pdf.scpt |
set these_items to list folder this_folder without invisibles | docx2pdf.scpt |
set this_item to alias ((this_folder as Unicode text) & (item i of these_items)) | docx2pdf.scpt |
on process_file(this_item) | docx2pdf.scpt |
set path_docx to POSIX path of this_item | docx2pdf.scpt |
set components to every text item of path_docx | docx2pdf.scpt |
set last text item of components to "pdf" | docx2pdf.scpt |
set path_pdf to components as string | docx2pdf.scpt |
set doc to open file name path_docx with read only without add to recent files | docx2pdf.scpt |
save as doc file name path_pdf file format format PDF | docx2pdf.scpt |
close doc saving no | docx2pdf.scpt |
set db to bounds of window of desktop | Gather Windows.applescript |
set {dw, dh} to {item 3 of db, item 4 of db} | Gather Windows.applescript |
repeat with proc in application processes | Gather Windows.applescript |
set {w, h} to size of win | Gather Windows.applescript |
set {l, t} to position of win | Gather Windows.applescript |
set {nh, nw} to {h, w} | Gather Windows.applescript |
if (w > dw) then ¬ | Gather Windows.applescript |
set nw to dw | Gather Windows.applescript |
if (h > dh - 22) then ¬ | Gather Windows.applescript |
set nh to dh - 22 | Gather Windows.applescript |
set {r, b} to {l + nw, t + nh} | Gather Windows.applescript |
set {nl, nt} to {l, t} | Gather Windows.applescript |
if (l < 0) then ¬ | Gather Windows.applescript |
set nl to 0 | Gather Windows.applescript |
if (t < 22) then ¬ | Gather Windows.applescript |
set nt to 22 | Gather Windows.applescript |
if (r > dw) then ¬ | Gather Windows.applescript |
set nl to dw - nw | Gather Windows.applescript |
if (b > dh) then ¬ | Gather Windows.applescript |
set nt to dh - nh | Gather Windows.applescript |
if (l ≠ nl or t ≠ nt) then ¬ | Gather Windows.applescript |
set position of win to {nl, nt} | Gather Windows.applescript |
if (h ≠ nh or w ≠ nw) then ¬ | Gather Windows.applescript |
set size of win to {nw, nh} | Gather Windows.applescript |
if URL starts with "http://www.youtube.com" or URL starts with "https://www.youtube.com" then | hide_annotations.applescript |
execute javascript " | hide_annotations.applescript |
var player = document.querySelectorAll('.video-stream.html5-main-video')[0] || document.getElementById('movie_player'); | hide_annotations.applescript |
var next = document.querySelectorAll('.video-annotations')[0]; | hide_annotations.applescript |
if (player && next) {
next.style.visibility = 'hidden';
} | hide_annotations.applescript |
fmGUI_ManageSecurity_PrivSet_Update({}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
on fmGUI_ManageSecurity_PrivSet_Update(prefs) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set defaultPrefs to {privSetName:null, privSetDesc:null, accessRecord:null, accessLayouts:null, accessVL:null, accessScripts:null, extendedPrivList:null, allowPrinting:null, allowExporting:null, mangeExtPriv:null, allowOverride:null, disconnectIdle:null, modifyPwd:null, menuCommands:null, recordAccess:null, layoutAcces... | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set privSetName to privSetName of prefs | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set editPrivSetWindowName to "Edit Privilege Set" | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set selectCommand to "contains" | fmGUI_ManageSecurity_PrivSet_Update.applescript |
if windowName is not editPrivSetWindowName then | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_OpenForEdit(fullAccessCredentials & {privSetName:privSetName}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
if windowName is not editPrivSetWindowName then error "unable to open privSet '" & privSetName & "'" number -1024 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set currentlyOpenPrivSet to value of text field 1 of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
if currentlyOpenPrivSet is not equal to privSetName then error "not editing '" & privSetName & "' privSet" number -1024 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set descriptionTextField to text field "Description" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set allowPrintingCheckbox to checkbox "Allow printing" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set allowExportingCheckbox to checkbox "Allow exporting" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set mangeExtPrivCheckbox to checkbox "Manage extended privileges" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set allowOverrideCheckbox to checkbox "Allow user to override data validation warnings" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set disconnectIdleCheckbox to checkbox "Disconnect user from server when idle" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set modifyPwdCheckbox to checkbox "Allow user to modify their own password" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
set menuPopup to pop up button "Available menu commands:" of window 1 | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_TextFieldSet({objRef:descriptionTextField, objValue:privSetDesc of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:allowPrintingCheckbox, objValue:allowPrinting of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:allowExportingCheckbox, objValue:allowExporting of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:mangeExtPrivCheckbox, objValue:mangeExtPriv of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:allowOverrideCheckbox, objValue:allowOverride of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:disconnectIdleCheckbox, objValue:disconnectIdle of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_CheckboxSet({objRef:modifyPwdCheckbox, objValue:modifyPwd of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_PopupSet({objRef:menuPopup, objValue:menuCommands of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges({extendedPrivList:extendedPrivList of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_AllTables({accessRecord:accessRecord of prefs, recordAccess:recordAccess of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_Update_AccessLayout({accessLayout:accessLayout of prefs, layoutAccess:layoutAccess of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_Update_AccessValueList({accessVL:accessVL of prefs, vlAccess:vlAccess of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
fmGUI_ManageSecurity_PrivSet_Update_AccessScript({accessScript:accessScript of prefs, scriptsAccess:scriptsAccess of prefs}) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
error "unable to fmGUI_ManageSecurity_PrivSet_Update - " & errMsg number errNum | fmGUI_ManageSecurity_PrivSet_Update.applescript |
end fmGUI_ManageSecurity_PrivSet_Update | fmGUI_ManageSecurity_PrivSet_Update.applescript |
tell application "htcLib" to fmGUI_ManageSecurity_PrivSet_OpenForEdit(prefs) | fmGUI_ManageSecurity_PrivSet_Update.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.