text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
insert text theFileHeader & return at end of text object of selection
|
images_to_word_with_headings.scpt
|
make new inline picture at text object of selection with properties {file name:aFile as text, save with document:true}
|
images_to_word_with_headings.scpt
|
insert break at text object of selection break type section break next page
|
images_to_word_with_headings.scpt
|
repeat with _tab in _tabs
|
clear_left_tabs.applescript
|
on browserURL()
|
browser_url.scpt
|
tell application "Google Chrome" to set browserURL to URL of active tab of front window & return
|
browser_url.scpt
|
end browserURL
|
browser_url.scpt
|
my browserURL()
|
browser_url.scpt
|
set old to (path to frontmost application as text)
|
AFK Bypass.applescript
|
delay 0.126
|
AFK Bypass.applescript
|
activate application old
|
AFK Bypass.applescript
|
delay (random number from 200 to 300)
|
AFK Bypass.applescript
|
tell first window to return closeable
|
fullscreen copy.applescript
|
on SplitString(theString, theDelimiter)
|
SplitString copy.applescript
|
click first menu item of menu 1 of menu item "Recent Folders" of menu 1 of menu bar item "Go" of menu bar 1
|
recent-finder-window.applescript.scpt
|
set theNote to ((properties of item 1 of theSelection) as note)
|
Get Title and Link to Note.applescript
|
set linkURL to note link of theNote
|
Get Title and Link to Note.applescript
|
set theTitle to title of theNote
|
Get Title and Link to Note.applescript
|
set the clipboard to (theTitle & " " & linkURL)
|
Get Title and Link to Note.applescript
|
set targetDisk to every disk whose size < 6.4E+10 and ejectable is true and format is MSDOS format
|
Sync CHDK scripts to SD card.applescript
|
display notification "Sync'ing scripts..."
|
Sync CHDK scripts to SD card.applescript
|
set myDocs to POSIX path of (path to documents folder)
|
Sync CHDK scripts to SD card.applescript
|
set hdPath to (myDocs & "CHDK/CHDK scripts/")
|
Sync CHDK scripts to SD card.applescript
|
set ssdPath to ("/Volumes/" & name of aDisk & "/CHDK/SCRIPTS/")
|
Sync CHDK scripts to SD card.applescript
|
if (exists POSIX file hdPath as alias) and (exists POSIX file ssdPath as alias) then -- Not clear to me why we don't need the quoted form
|
Sync CHDK scripts to SD card.applescript
|
do shell script "rsync -vau " & quoted form of hdPath & " " & quoted form of ssdPath & " 1>/dev/null"
|
Sync CHDK scripts to SD card.applescript
|
do shell script "rsync -vau " & quoted form of ssdPath & " " & quoted form of hdPath & " 1>/dev/null"
|
Sync CHDK scripts to SD card.applescript
|
display notification "Sync successful!" sound name "chime"
|
Sync CHDK scripts to SD card.applescript
|
display alert "Error " & errorNumber message errStr
|
Sync CHDK scripts to SD card.applescript
|
set theOSNames to {"OS X Yosemite 10.10", "OS X El Capitan 10.11", "macOS Sierra 10.12", "macOS High Sierra 10.13", "macOS Mojave 10.14", "macOS Catalina 10.15", "macOS Big Sur 11", "macOS Monterey 12"}
|
macOSinAppStore.scpt
|
set the selectedOS to choose from list the theOSNames with prompt "Please select a version:" default items {"macOS Mojave 10.14"}
|
macOSinAppStore.scpt
|
if selectedOS = {"OS X Yosemite 10.10"} then
|
macOSinAppStore.scpt
|
tell application "App Store"
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id915041082"
|
macOSinAppStore.scpt
|
if selectedOS = {"OS X El Capitan 10.11"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1147835434"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS Sierra 10.12"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1127487414"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS High Sierra 10.13"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1246284741"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS Mojave 10.14"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1398502828"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS Catalina 10.15"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1466841314"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS Big Sur 11"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1526878132"
|
macOSinAppStore.scpt
|
if selectedOS = {"macOS Monterey 12"} then
|
macOSinAppStore.scpt
|
open location "itms-apps://apple.com/app/id1576738294"
|
macOSinAppStore.scpt
|
on run -- get file item(s) and extract folder names for tags
|
tags.applescript
|
set input to (choose file with prompt "This script adds file path components as tags." & return & "Choose files to set tags:" with multiple selections allowed)
|
tags.applescript
|
set pieces to getPathPieces(anItem)
|
tags.applescript
|
addTags(pieces, anItem)
|
tags.applescript
|
to getPathPieces(filePath) -- break path apart at delimiters
|
tags.applescript
|
set userFolder to (path to home folder) as text
|
tags.applescript
|
if filePath begins with userFolder then set filePath to text ((length of userFolder) + 1) thru -1 of filePath -- trim user
|
tags.applescript
|
set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
|
tags.applescript
|
set pathPieces to text items 1 thru -2 of filePath -- skip file name
|
tags.applescript
|
return pathPieces
|
tags.applescript
|
end getPathPieces
|
tags.applescript
|
to addTags(tagList, filePath) -- add to existing tags, trimming duplicates
|
tags.applescript
|
set theTags to tagList & readTags(filePath)
|
tags.applescript
|
set theTags to (current application's NSOrderedSet's orderedSetWithArray:theTags)'s allObjects()
|
tags.applescript
|
writeTags(theTags, filePath)
|
tags.applescript
|
end addTags
|
tags.applescript
|
to readTags(filePath) -- get current tags
|
tags.applescript
|
set theURL to current application's NSURL's fileURLWithPath:(POSIX path of filePath)
|
tags.applescript
|
if theTags is equal to missing value then return {} -- no items
|
tags.applescript
|
end readTags
|
tags.applescript
|
to writeTags(tagList, filePath) -- set tags
|
tags.applescript
|
end writeTags
|
tags.applescript
|
to setTagColor(theTag, tagColor)
|
tags.applescript
|
if class of tagColor is integer then -- index
|
tags.applescript
|
set theColor to tagColor mod 8
|
tags.applescript
|
else -- name
|
tags.applescript
|
set dict to current application's NSDictionary's dictionaryWithDictionary:{gray:1, green:2, purple:3, blue:4, yellow:5, red:6, orange:7}
|
tags.applescript
|
set theColor to dict's objectForKey:tagColor
|
tags.applescript
|
if theColor is in {missing value, 0} then
|
tags.applescript
|
return theTag & linefeed & theColor
|
tags.applescript
|
end setTagColor
|
tags.applescript
|
set position to {1000, 600}
|
resize_windows_03.applescript
|
set position to {1000, 150}
|
resize_windows_03.applescript
|
set position to {700, 100}
|
resize_windows_03.applescript
|
set position to {100, 400}
|
resize_windows_03.applescript
|
use application "System Events"
|
get_current_apps_with_title.applescript
|
property R : {WindowTitle:missing value, AttachedToProcess:missing value}
|
get_current_apps_with_title.applescript
|
set WindowList to {}
|
get_current_apps_with_title.applescript
|
set P to a reference to (every process whose background only is false)
|
get_current_apps_with_title.applescript
|
repeat with proc in P
|
get_current_apps_with_title.applescript
|
set [proc] to proc
|
get_current_apps_with_title.applescript
|
set W to (a reference to every window of proc)
|
get_current_apps_with_title.applescript
|
repeat with _w in W
|
get_current_apps_with_title.applescript
|
set [_w] to _w
|
get_current_apps_with_title.applescript
|
copy R to end of WindowList
|
get_current_apps_with_title.applescript
|
tell last item of WindowList
|
get_current_apps_with_title.applescript
|
set its WindowTitle to title of _w
|
get_current_apps_with_title.applescript
|
set its AttachedToProcess to name of proc
|
get_current_apps_with_title.applescript
|
return WindowList
|
get_current_apps_with_title.applescript
|
property loggit : load script POSIX file "/Users/mturilin/Library/Mobile Documents/com~apple~ScriptEditor2/Documents/logit.scpt"
|
use_library.scpt
|
tell logit
|
use_library.scpt
|
logit("dddd")
|
use_library.scpt
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.