text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
return newList
|
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
|
end removeDuplicateLines
|
Add-Remove%20Group%20Name(s)%20or%20delete%20duplicates%20from%20Contacts%20Notes-2.applescript
|
tell application "Notational Velocity"
|
NV-LinkAutomation.applescript
|
key code 7 using command down
|
NV-LinkAutomation.applescript
|
do shell script "pbpaste | sed -e 's/^/[[/' | sed -e 's/$/]]/' | pbcopy"
|
NV-LinkAutomation.applescript
|
key code 9 using command down
|
NV-LinkAutomation.applescript
|
key code 51
|
NV-LinkAutomation.applescript
|
copyFilePaths()
|
New kitty Window at Folder.applescript
|
on copyFilePaths()
|
New kitty Window at Folder.applescript
|
set thePath to my getThePath()
|
New kitty Window at Folder.applescript
|
tell application "kitty" to open thePath
|
New kitty Window at Folder.applescript
|
end copyFilePaths
|
New kitty Window at Folder.applescript
|
on getThePath()
|
New kitty Window at Folder.applescript
|
set theFolderAlias to target of front window as alias as string
|
New kitty Window at Folder.applescript
|
set theFolderPath to POSIX path of theFolderAlias
|
New kitty Window at Folder.applescript
|
set theFolderPath to "~"
|
New kitty Window at Folder.applescript
|
return theFolderPath
|
New kitty Window at Folder.applescript
|
end getThePath
|
New kitty Window at Folder.applescript
|
set newVolume to "40"
|
iTunes-Volume-Fade.scpt
|
tell application "System Events" to if (name of processes) does not contain "iTunes" then return "iTunes is Off" -- Kill Script if iTunes is Off
|
iTunes-Volume-Fade.scpt
|
tell application "iTunes" -- Set Volume if iTunes is On and Playing
|
iTunes-Volume-Fade.scpt
|
if (player state is playing) then -- Chack if iTunes is Playing
|
iTunes-Volume-Fade.scpt
|
set startVolume to the sound volume -- Get the Initial Volume
|
iTunes-Volume-Fade.scpt
|
set currentVolume to the startVolume -- Save the Initial Volume to <currentVolume>
|
iTunes-Volume-Fade.scpt
|
if currentVolume > newVolume then -- is the Volume is Grater Then X (<newVolume>)
|
iTunes-Volume-Fade.scpt
|
repeat with i from currentVolume to newVolume by -2 -- Fade-Out Loop
|
iTunes-Volume-Fade.scpt
|
set the sound volume to i
|
iTunes-Volume-Fade.scpt
|
delay 0.01 -- Time Between Volume Down Steps
|
iTunes-Volume-Fade.scpt
|
return "iTunes Volume is Less then " & newVolume
|
iTunes-Volume-Fade.scpt
|
return "iTunes is Not Playing"
|
iTunes-Volume-Fade.scpt
|
repeat with i from newVolume to startVolume by 2 -- Fade-In Loop
|
iTunes-Volume-Fade.scpt
|
delay 0.01 -- Time Between Volume Up Steps
|
iTunes-Volume-Fade.scpt
|
tell application "Cisco AnyConnect Secure Mobility Client"
|
anyconnect-2.scpt
|
repeat until application "Cisco AnyConnect Secure Mobility Client" is running
|
anyconnect-2.scpt
|
repeat until (window 1 of process "Cisco AnyConnect Secure Mobility Client" exists)
|
anyconnect-2.scpt
|
tell process "Cisco AnyConnect Secure Mobility Client"
|
anyconnect-2.scpt
|
repeat until (window 2 of process "Cisco AnyConnect Secure Mobility Client" exists)
|
anyconnect-2.scpt
|
set ConnectAnyway to button 2 of window 1 of process "Cisco AnyConnect Secure Mobility Client"
|
anyconnect-2.scpt
|
click ConnectAnyway
|
anyconnect-2.scpt
|
keystroke ("521198" as string)
|
anyconnect-2.scpt
|
repeat until (window 1 of process "vpndownloader" exists)
|
anyconnect-2.scpt
|
set ConnectAnyway to button "Connect Anyway" of window 0 of process "vpndownloader"
|
anyconnect-2.scpt
|
tell application id "com.adobe.illustrator"
|
Script 23-6.applescript
|
set selected of every page item of document 1 to true
|
Script 23-6.applescript
|
copy
|
Script 23-6.applescript
|
make new document with properties {color space:CMYK}
|
Script 23-6.applescript
|
paste
|
Script 23-6.applescript
|
set strLinkHTML to ""
|
Paste-Safari-URL-With-Title.applescript
|
tell current tab
|
Paste-Safari-URL-With-Title.applescript
|
set strNameTabUrl to URL
|
Paste-Safari-URL-With-Title.applescript
|
set lstNameTab to name
|
Paste-Safari-URL-With-Title.applescript
|
if length of lstNameTab > 1 then
|
Paste-Safari-URL-With-Title.applescript
|
set strLinkHTML to "<a href=\"" & strNameTabUrl & "\">" & lstNameTab & "</a>"
|
Paste-Safari-URL-With-Title.applescript
|
set strCMD to "echo " & quoted form of strLinkHTML & " | textutil -format html -convert rtf -stdin -stdout | pbcopy -Prefer rtf"
|
Paste-Safari-URL-With-Title.applescript
|
do shell script strCMD
|
Paste-Safari-URL-With-Title.applescript
|
set selectedMessages to selection
|
Make-Mail-URL.applescript
|
set theMessage to item 1 of selectedMessages
|
Make-Mail-URL.applescript
|
set messageid to message id of theMessage
|
Make-Mail-URL.applescript
|
set urlText to "message://" & "%3c" & messageid & "%3e"
|
Make-Mail-URL.applescript
|
set the clipboard to urlText
|
Make-Mail-URL.applescript
|
set jsCode to "document.getSelection(); "
|
Run Javascript example 2.applescript
|
set selectedText to (do JavaScript jsCode in current tab of window 1)
|
Run Javascript example 2.applescript
|
return selectedText
|
Run Javascript example 2.applescript
|
property TestLib : missing value
|
Script 19-3.applescript
|
on load_libraries()
|
Script 19-3.applescript
|
set scripts_folder_path to path to scripts folder from user domain as text
|
Script 19-3.applescript
|
set TestLib to load script alias (scripts_folder_path & "TestLib.scpt")
|
Script 19-3.applescript
|
end load_libraries
|
Script 19-3.applescript
|
load_libraries()
|
Script 19-3.applescript
|
tell application "Calendar"
|
Calenda - Grab Published Calendar URLs.applescript
|
set calendarURLs to {}
|
Calenda - Grab Published Calendar URLs.applescript
|
tell process "Calendar"
|
Calenda - Grab Published Calendar URLs.applescript
|
keystroke "f" using command down
|
Calenda - Grab Published Calendar URLs.applescript
|
key code 126 using {option down}
|
Calenda - Grab Published Calendar URLs.applescript
|
repeat with i from 1 to 35
|
Calenda - Grab Published Calendar URLs.applescript
|
keystroke "i" using command down
|
Calenda - Grab Published Calendar URLs.applescript
|
set calendarName to value of text field 1
|
Calenda - Grab Published Calendar URLs.applescript
|
tell scroll area 1
|
Calenda - Grab Published Calendar URLs.applescript
|
tell text area 1
|
Calenda - Grab Published Calendar URLs.applescript
|
set theURL to value
|
Calenda - Grab Published Calendar URLs.applescript
|
set end of calendarURLs to {calendarName, theURL}
|
Calenda - Grab Published Calendar URLs.applescript
|
tell (current date) to get (its year as integer) & "-" & (its month as integer) & "-" & day
|
todaynote.applescript
|
set dataText to the result as text
|
todaynote.applescript
|
set mailTitle to dataText & "-DailyNote"
|
todaynote.applescript
|
tell application "Notes"
|
todaynote.applescript
|
tell default account
|
todaynote.applescript
|
tell folder "DailyNote"
|
todaynote.applescript
|
set counts to count of every note
|
todaynote.applescript
|
if counts > 0 then
|
todaynote.applescript
|
set CreationDate to creation date of note 1
|
todaynote.applescript
|
set CDate to date string of CreationDate
|
todaynote.applescript
|
set Today to date string of (current date)
|
todaynote.applescript
|
set originalText to body of note 1
|
todaynote.applescript
|
set body of note 1 to {"<hr>" & originalText & "<br>" & (the clipboard)}
|
todaynote.applescript
|
make new note with properties {name:mailTitle, body:(the clipboard)}
|
todaynote.applescript
|
on capitalizeString(theText)
|
capitalizeString.applescript
|
local theText, firstChar, otherChars
|
capitalizeString.applescript
|
if theText = "" then return ""
|
capitalizeString.applescript
|
set firstChar to my upperString(first character of theText)
|
capitalizeString.applescript
|
set otherChars to my lowerString(characters 2 thru -1 of theText)
|
capitalizeString.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.