text
stringlengths
0
15.7k
source
stringlengths
6
112
end ejectDisk
Disk Importer.applescript
set MacOSName to do shell script "defaults read /System/Library/CoreServices/SystemVersion.plist ProductName"
GetSysInfoCatalina.scpt
set XProtectVers to do shell script "defaults read /Library/Apple/System/Library/CoreServices/XProtect.bundle/Contents/version.plist CFBundleShortVersionString"
GetSysInfoCatalina.scpt
set XProtectDate to do shell script "GetFileInfo -d /Library/Apple/System/Library/CoreServices/XProtect.bundle/Contents/version.plist"
GetSysInfoCatalina.scpt
set SIPVer to do shell script "defaults read /Library/Apple/Library/Bundles/IncompatibleAppsList.bundle/Contents/version.plist CFBundleShortVersionString"
GetSysInfoCatalina.scpt
set SIPDate to do shell script "GetFileInfo -d /Library/Apple/Library/Bundles/IncompatibleAppsList.bundle/Contents/version.plist"
GetSysInfoCatalina.scpt
set MRTVer to do shell script "defaults read /Library/Apple/System/Library/CoreServices/MRT.app/Contents/version.plist CFBundleShortVersionString"
GetSysInfoCatalina.scpt
set MRTDate to do shell script "GetFileInfo -d /Library/Apple/System/Library/CoreServices/MRT.app/Contents/version.plist"
GetSysInfoCatalina.scpt
display dialog tab & tab & tab & MacOSName & " " & MacOSVers & " (" & MacOSBuild & ")" & return & return & "Component " & tab & tab & "Version " & tab & tab & "Updated " & return & "XProtect " & tab & tab & XProtectVers & tab & tab & tab & XProtectDate & return & "Gatekeeper " & tab & tab & GatekeeperVers & tab & tab &...
GetSysInfoCatalina.scpt
if browserName is "Microsoft Edge Dev" then
Copy All URLs to clipboard md copy 3.applescript
set mdURL to "- " & isActiveTabText & "[" & title of i & "]( " & URL of i & " )"
Copy All URLs to clipboard md copy 3.applescript
set newpath to "cd " & argv
newtmux.txt
set tmuxstring to "tmux attach -t base || tmux new -s base"
newtmux.txt
make new terminal
newtmux.txt
tell the current terminal
newtmux.txt
activate current session
newtmux.txt
launch session "Default Session"
newtmux.txt
write text newpath as string
newtmux.txt
write text tmuxstring as string
newtmux.txt
fmGUI_CustomMenus_Update({})
fmGUI_CustomMenus_Update.applescript
on fmGUI_CustomMenus_Update(prefs)
fmGUI_CustomMenus_Update.applescript
fmGUI_CustomMenus_Open({})
fmGUI_CustomMenus_Update.applescript
set updateButton to first button of window 1 whose name is "Update"
fmGUI_CustomMenus_Update.applescript
set isButtonEnabled to enabled of updateButton
fmGUI_CustomMenus_Update.applescript
if isButtonEnabled then
fmGUI_CustomMenus_Update.applescript
fmGUI_ObjectClick_Button({buttonRef:updateButton})
fmGUI_CustomMenus_Update.applescript
set updateWindowName to "Custom Menus Updated"
fmGUI_CustomMenus_Update.applescript
if fmGUI_NameOfFrontmostWindow() is equal to updateWindowName then fmGUI_ObjectClick_OkButton({})
fmGUI_CustomMenus_Update.applescript
windowWaitUntil_FrontNotIS({windowName:updateWindowName})
fmGUI_CustomMenus_Update.applescript
error "unable to fmGUI_CustomMenus_Update - " & errMsg number errNum
fmGUI_CustomMenus_Update.applescript
end fmGUI_CustomMenus_Update
fmGUI_CustomMenus_Update.applescript
on fmGUI_CustomMenus_Open(prefs)
fmGUI_CustomMenus_Update.applescript
tell application "htcLib" to fmGUI_CustomMenus_Open(prefs)
fmGUI_CustomMenus_Update.applescript
end fmGUI_CustomMenus_Open
fmGUI_CustomMenus_Update.applescript
set buttonRef to my coerceToString(buttonRef of prefs)
fmGUI_CustomMenus_Update.applescript
tell application "htcLib" to fmGUI_ObjectClick_Button({buttonRef:buttonRef} & prefs)
fmGUI_CustomMenus_Update.applescript
set x to hours of (current date)
adjust brightness and volume according to time.scpt
if x < 6 then
adjust brightness and volume according to time.scpt
else if x < 18 then
adjust brightness and volume according to time.scpt
else if x ≥ 18 then
adjust brightness and volume according to time.scpt
open location "https://www.youtube.com/?gl=FR&hl=fr"
adjust brightness and volume according to time.scpt
open location "https://outlook.live.com/mail/inbox"
adjust brightness and volume according to time.scpt
open location "https://www.facebook.com"
adjust brightness and volume according to time.scpt
delay 900
adjust brightness and volume according to time.scpt
if x ≤ 6 then
adjust brightness and volume according to time.scpt
set volume output volume 15
adjust brightness and volume according to time.scpt
say "Bonne nuit" using "Amelie"
adjust brightness and volume according to time.scpt
else if x ≤ 18 then
adjust brightness and volume according to time.scpt
set volume output volume 30
adjust brightness and volume according to time.scpt
else if x ≤ 21 then
adjust brightness and volume according to time.scpt
else if x ≤ 23 then
adjust brightness and volume according to time.scpt
set x to x - 5
adjust brightness and volume according to time.scpt
if 0 = x then
adjust brightness and volume according to time.scpt
set current pane to pane "com.apple.preference.displays"
adjust brightness and volume according to time.scpt
set value of slider 1 of group 1 of tab group 1 of window 1 of process "System Preferences" to 0.1111 * 0
adjust brightness and volume according to time.scpt
else if 9 ≥ x then
adjust brightness and volume according to time.scpt
set value of slider 1 of group 1 of tab group 1 of window 1 of process "System Preferences" to 0.1111 * x
adjust brightness and volume according to time.scpt
else if 17 ≥ x then
adjust brightness and volume according to time.scpt
set x to x - 9
adjust brightness and volume according to time.scpt
set value of slider 1 of group 1 of tab group 1 of window 1 of process "System Preferences" to 1 / (x * 11.11)
adjust brightness and volume according to time.scpt
set x to x + 9
adjust brightness and volume according to time.scpt
if time string of (current date) contains "10:00:00 PM" then
NightVolume.applescript
set volume 0
NightVolume.applescript
set volume 4
NightVolume.applescript
repeat until time string of (current date) contains "10:00:00 PM"
NightVolume.applescript
set curVolume to get volume settings
system_muteunmute.scpt
if output muted of curVolume is false then
system_muteunmute.scpt
set volume without output muted
system_muteunmute.scpt
tell application "Xcode"
Format%20current%20file%20with%20swiftformat.scpt
set delim to " — "
Format%20current%20file%20with%20swiftformat.scpt
set o to offset of delim in windowTitle
Format%20current%20file%20with%20swiftformat.scpt
if o = 0 then return
Format%20current%20file%20with%20swiftformat.scpt
set fileName to second item in my splitText(windowTitle, delim)
Format%20current%20file%20with%20swiftformat.scpt
set editorDoc to source document named fileName
Format%20current%20file%20with%20swiftformat.scpt
set filePath to (path of editorDoc) as text
Format%20current%20file%20with%20swiftformat.scpt
set currentCursorPos to selected character range of editorDoc
Format%20current%20file%20with%20swiftformat.scpt
if not (filePath ends with ".swift") then
Format%20current%20file%20with%20swiftformat.scpt
set prevClipboard to (the clipboard as record)
Format%20current%20file%20with%20swiftformat.scpt
set filePath to "'" & filePath & "'"
Format%20current%20file%20with%20swiftformat.scpt
do shell script "cat " & filePath & ¬
Format%20current%20file%20with%20swiftformat.scpt
" | /opt/homebrew/bin/swiftformat stdin --stdinpath " & filePath & ¬
Format%20current%20file%20with%20swiftformat.scpt
" | pbcopy"
Format%20current%20file%20with%20swiftformat.scpt
keystroke "a" using {command down}
Format%20current%20file%20with%20swiftformat.scpt
set selected character range of editorDoc to currentCursorPos
Format%20current%20file%20with%20swiftformat.scpt
set the clipboard to prevClipboard
Format%20current%20file%20with%20swiftformat.scpt
tell application "Spotify" to next track
spotify_next.scpt
set this_folder to POSIX path of (choose folder with prompt "Pick the folder containing the files to process:") as string
Keynote%20to%20Markdown.scpt
set dest_folder to (choose folder with prompt "Pick the folder to place the resulting markdown:") as string
Keynote%20to%20Markdown.scpt
set these_files to every file of folder this_folder
Keynote%20to%20Markdown.scpt
repeat with i from 1 to the count of these_files
Keynote%20to%20Markdown.scpt
set this_file to (item i of these_files as alias)
Keynote%20to%20Markdown.scpt
open this_file
Keynote%20to%20Markdown.scpt
set thePresentationName to name
Keynote%20to%20Markdown.scpt
set theTitles to object text of default title item of every slide
Keynote%20to%20Markdown.scpt
set theBodyText to object text of default body item of every slide
Keynote%20to%20Markdown.scpt
close every document without saving
Keynote%20to%20Markdown.scpt
set theFormattedNotes to "# " & "Presentation: " & thePresentationName & "\n" & "\n"
Keynote%20to%20Markdown.scpt
repeat with a from 1 to length of theTitles
Keynote%20to%20Markdown.scpt
set theFormattedNotes to theFormattedNotes & "## Slide " & a & "\n" & "\n"
Keynote%20to%20Markdown.scpt
set theFormattedNotes to theFormattedNotes & "Title: " & item a of theTitles & "\n"
Keynote%20to%20Markdown.scpt