text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
"echo " & (URL of _record) & " | " & ¬ | Add Zotero citekey.applescript |
& " zoinks -U citekey" | Add Zotero citekey.applescript |
if _citekey ≠ "" then | Add Zotero citekey.applescript |
add custom meta data _citekey for "citekey" to _record | Add Zotero citekey.applescript |
"Could not get citekey for " & (name of _record) | Add Zotero citekey.applescript |
display alert "Zoinks" message msg as warning | Add Zotero citekey.applescript |
set link to "* [" & name of d & "](" & full name of d & ")" | get all office links.scpt |
set presos to presentations | get all office links.scpt |
repeat with p in presos | get all office links.scpt |
set link to "* [" & name of p & "](" & full name of p & ")" | get all office links.scpt |
on buildResponse(myTrack, alreadyExists) | Add Track To Library.scpt |
set {updatedArtist, updatedSong} to the {artist, name} of the myTrack | Add Track To Library.scpt |
set response to "Added “" & updatedSong & "“ by " & updatedArtist & "." | Add Track To Library.scpt |
if alreadyExists then | Add Track To Library.scpt |
set response to updatedSong & "“ by " & updatedArtist & " already existed in your library." | Add Track To Library.scpt |
end buildResponse | Add Track To Library.scpt |
return my buildResponse(current track, true) | Add Track To Library.scpt |
return my buildResponse(first item of matchedTracks, true) | Add Track To Library.scpt |
return my buildResponse(first item of matchedTracks, false) | Add Track To Library.scpt |
set read status of every text of Messages to True is read status = False | imessages.applescript |
script SkypeStatusOnline | skype-change-status-online.applescript |
if lestatut is "USERSTATUS AWAY" then | skype-change-status-online.applescript |
send command "SET USERSTATUS ONLINE" script name "BlueSense" | skype-change-status-online.applescript |
movePlayheadUpASequence | Undo Go.applescript |
stop theSelection | Undo Go.applescript |
on createApp() | compileCOinJcalHandler.applescript |
set theScript to open "/Volumes/User/Users/jones/gitRepos/githubSnippets/AppleScript/URLhandlers/COinJcalHandler.applescript" | compileCOinJcalHandler.applescript |
set applicationAlias to "/Volumes/User/Users/jones/gitRepos/githubSnippets/AppleScript/URLhandlers/COinJcalHandler.app" | compileCOinJcalHandler.applescript |
save theScript as "application" in applicationAlias with stay open | compileCOinJcalHandler.applescript |
close theScript | compileCOinJcalHandler.applescript |
end createApp | compileCOinJcalHandler.applescript |
createApp() of me | compileCOinJcalHandler.applescript |
set infoPL to property list file "/Volumes/User/Users/jones/gitRepos/githubSnippets/AppleScript/URLhandlers/COinJcalHandler.app/Contents/Info.plist" | compileCOinJcalHandler.applescript |
tell property list items of infoPL | compileCOinJcalHandler.applescript |
set urltype to make new property list item at end with properties {kind:list, name:"CFBundleURLTypes", value:[]} | compileCOinJcalHandler.applescript |
tell property list items of urltype | compileCOinJcalHandler.applescript |
set typeRecord to make new property list item at end with properties {kind:record} | compileCOinJcalHandler.applescript |
tell property list items of typeRecord | compileCOinJcalHandler.applescript |
make new property list item at end with properties {kind:string, name:"CFBundleURLName", value:"COinJ Calendar Helper"} | compileCOinJcalHandler.applescript |
set urlSchemes to make new property list item at end with properties {kind:list, name:"CFBundleURLSchemes", value:[]} | compileCOinJcalHandler.applescript |
tell property list items of urlSchemes | compileCOinJcalHandler.applescript |
make new property list item at end with properties {kind:string, value:"coijcal"} | compileCOinJcalHandler.applescript |
set the output to do shell script "/opt/local/bin/perl ~/scripts/RipAudioCd.pl" & space & cd_upc | CdRipper.applescript |
do shell script "afplay ~/Library/Sounds/uhoh.wav" | CdRipper.applescript |
display alert output & return buttons {"OK"} default button 1 giving up after 5 | CdRipper.applescript |
property process_name : "Finder" | keystroke_shortcuts.applescript |
on lowercase(_text) | keystroke_shortcuts.applescript |
set _output to do shell script "echo " & quoted form of (_text) & " | tr A-Z a-z" | keystroke_shortcuts.applescript |
on keyCmd(_string) | keystroke_shortcuts.applescript |
set _mod to {} | keystroke_shortcuts.applescript |
set _codes to {{name:"left", code:123}, {name:"right", code:124}, {name:"down", code:125}, {name:"up", code:126}, {name:"escape", code:53}, {name:"esc", code:53}, {name:"pgdown", code:115}, {name:"pgup", code:119}, {name:"home", code:116}, {name:"end", code:121}, {name:"f1", code:122}, {name:"f2", code:120}, {name:"f3"... | keystroke_shortcuts.applescript |
if _string contains "cmd" or _string contains "command" or _string contains "⌘" or _string contains "@" then set end of _mod to command down | keystroke_shortcuts.applescript |
if _string contains "shift" or _string contains "⇧" or _string contains "$" then set end of _mod to shift down | keystroke_shortcuts.applescript |
if _string contains "opt" or _string contains "option" or _string contains "⌥" or _string contains "~" then set end of _mod to option down | keystroke_shortcuts.applescript |
if _string contains "ctrl" or _string contains "control" or _string contains "⌃" or _string contains "^" then set end of _mod to control down | keystroke_shortcuts.applescript |
log (_string) | keystroke_shortcuts.applescript |
set _key to last item of words of _string | keystroke_shortcuts.applescript |
on error errMsg number errNum -- errors if string is punctuation | keystroke_shortcuts.applescript |
set _key to _string | keystroke_shortcuts.applescript |
if _key contains "$" or _key contains "@" or _key contains "^" or _key contains "~" then | keystroke_shortcuts.applescript |
set _key to last item of characters of _key | keystroke_shortcuts.applescript |
set _code to 0 | keystroke_shortcuts.applescript |
set _maybe_sys_key to my lowercase(_key) | keystroke_shortcuts.applescript |
repeat with _keycode in _codes | keystroke_shortcuts.applescript |
if name of _keycode is equal to _maybe_sys_key then | keystroke_shortcuts.applescript |
set _code to code of _keycode | keystroke_shortcuts.applescript |
log (_code) | keystroke_shortcuts.applescript |
tell process process_name | keystroke_shortcuts.applescript |
if _code > 0 then | keystroke_shortcuts.applescript |
key code _code using _mod | keystroke_shortcuts.applescript |
keystroke _key using _mod | keystroke_shortcuts.applescript |
end keyCmd | keystroke_shortcuts.applescript |
on keySeq(_sequence, _delay) | keystroke_shortcuts.applescript |
if class of _sequence is not list then | keystroke_shortcuts.applescript |
set {astid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, " "} | keystroke_shortcuts.applescript |
set _sequence to every text item of _sequence | keystroke_shortcuts.applescript |
repeat with _key in _sequence | keystroke_shortcuts.applescript |
if _delay > 0 then delay _delay | keystroke_shortcuts.applescript |
keyCmd(_key) | keystroke_shortcuts.applescript |
end keySeq | keystroke_shortcuts.applescript |
on keyType(_string, _delay) | keystroke_shortcuts.applescript |
repeat with _chr in characters of _string | keystroke_shortcuts.applescript |
keystroke _key | keystroke_shortcuts.applescript |
end keyType | keystroke_shortcuts.applescript |
set process_name to "TextEdit" | keystroke_shortcuts.applescript |
tell application process_name to activate | keystroke_shortcuts.applescript |
keySeq("@n $@t tab", 1) | keystroke_shortcuts.applescript |
keyType("This is going to type out in TextEdit", 0.02) | keystroke_shortcuts.applescript |
set value of preference id "OFIColorPaletteIdentifier" to "default" | light_mode.applescript |
do shell script "cp ~/etc/ST3_pref_light.json ~/Library/Application\\ Support/Sublime\\ Text\\ 3/Packages/User/Preferences.sublime-settings" | light_mode.applescript |
set color preset to "Solarized Light" | light_mode.applescript |
set theme "Alfred macOS" | light_mode.applescript |
open location "bear://x-callback-url/change-theme?theme=Solarized%20Light" | light_mode.applescript |
tell table 1 of scroll area 1 of tab group 1 of window 1 | airpods.applescript |
if ((first row whose value of text field 2 is "Built-in") exists) then | airpods.applescript |
select (first row whose value of text field 2 is "Built-in") | airpods.applescript |
Controller's notifyCurrentSong() | notify-current-song.scpt |
-- Get the message text from Mail | Script 7-11.applescript |
set message_text to content of the_message | Script 7-11.applescript |
set message_subject_line to paragraph 2 of message_text | Script 7-11.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.