text
stringlengths
0
15.7k
source
stringlengths
6
112
set fullName to name of eachFile
Trim%20Filenames%20By%20Character%20Count.scpt
set {textDelimiters, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "."}
Trim%20Filenames%20By%20Character%20Count.scpt
if (count of text items of fullName) is greater than 1 then
Trim%20Filenames%20By%20Character%20Count.scpt
set properName to my Trim((text items 1 thru -2 of fullName) as text, numberOfChars)
Trim%20Filenames%20By%20Character%20Count.scpt
set newName to ({properName, (get last text item of fullName)}) as text
Trim%20Filenames%20By%20Character%20Count.scpt
set newName to my Trim(fullName, numberOfChars)
Trim%20Filenames%20By%20Character%20Count.scpt
set AppleScript's text item delimiters to textDelimiters
Trim%20Filenames%20By%20Character%20Count.scpt
set name of eachFile to newName
Trim%20Filenames%20By%20Character%20Count.scpt
on Trim(t, n)
Trim%20Filenames%20By%20Character%20Count.scpt
return text (n + 1) thru -1 of t
Trim%20Filenames%20By%20Character%20Count.scpt
return text 1 thru (n - 1) of t
Trim%20Filenames%20By%20Character%20Count.scpt
end Trim
Trim%20Filenames%20By%20Character%20Count.scpt
set sundays to {}
sundays.applescript
repeat with year from year of Christmas to 2200
sundays.applescript
set year of Christmas to year
sundays.applescript
if weekday of Christmas is Sunday
sundays.applescript
set end of sundays to year
sundays.applescript
sundays
sundays.applescript
set desktopList to {}
UnRotateScreen.applescript
set desktopBG to null
UnRotateScreen.applescript
set desktopList to a reference to every desktop
UnRotateScreen.applescript
set desktopBG to picture of item 1 of desktopList
UnRotateScreen.applescript
set picture of item 2 of desktopList to desktopBG -- display 2
UnRotateScreen.applescript
set targetDisplay to display name of item 2 of desktopList
UnRotateScreen.applescript
set targetRot to "Standard"
UnRotateScreen.applescript
tell window targetDisplay
UnRotateScreen.applescript
set oldval to value of pop up button "Rotation:" of tab group 1
UnRotateScreen.applescript
if oldval is not equal to targetRot then
UnRotateScreen.applescript
click pop up button "Rotation:" of tab group 1
UnRotateScreen.applescript
click menu item targetRot of menu of pop up button "Rotation:" of tab group 1
UnRotateScreen.applescript
click button "Confirm" of sheet 1
UnRotateScreen.applescript
quit -- that seems to be the safest starting point
UnRotateScreen.applescript
set thisCaseId to "cal-ext-view-spotCheck"
dec-calendar-view.applescript
Manual: Current Calendar View (Day, Week, Month, Year)
dec-calendar-view.applescript
Switch to Day View
dec-calendar-view.applescript
Switch to Week View
dec-calendar-view.applescript
Switch to Month View
dec-calendar-view.applescript
Switch to Year View
dec-calendar-view.applescript
Switch View - Day
dec-calendar-view.applescript
Switch View - Week
dec-calendar-view.applescript
Switch View - Month
dec-calendar-view.applescript
Switch View - Year
dec-calendar-view.applescript
set sut to decorate(newSpotBase())
dec-calendar-view.applescript
logger's infof("Current View: {}", sut's getViewType())
dec-calendar-view.applescript
sut's switchToDayView()
dec-calendar-view.applescript
sut's switchToWeekView()
dec-calendar-view.applescript
sut's switchToMonthView()
dec-calendar-view.applescript
set viewTitle to last word of caseDesc
dec-calendar-view.applescript
sut's switchToViewByTitle(viewTitle)
dec-calendar-view.applescript
property yo : missing value
dec-calendar-view.applescript
script CalendarWithViewInstance
dec-calendar-view.applescript
on getViewType()
dec-calendar-view.applescript
if running of application "Calendar" is false then return missing value
dec-calendar-view.applescript
set selectedRadio to get value of radio group 1 of group 2 of toolbar 1 of window "Calendar"
dec-calendar-view.applescript
if usr's getOSMajorVersion() is less than 13 then return title of selectedRadio
dec-calendar-view.applescript
return description of selectedRadio -- Ventura (13)
dec-calendar-view.applescript
end getViewType
dec-calendar-view.applescript
on switchToViewByTitle(viewType)
dec-calendar-view.applescript
click (first radio button of radio group 1 of group 2 of toolbar 1 of window "Calendar" whose description is viewType)
dec-calendar-view.applescript
on error -- Pre-Ventura
dec-calendar-view.applescript
click (first radio button of radio group 1 of group 2 of toolbar 1 of window "Calendar" whose title is viewType)
dec-calendar-view.applescript
end switchToViewByTitle
dec-calendar-view.applescript
on switchToDayView()
dec-calendar-view.applescript
tell application "Calendar" to switch view to day view
dec-calendar-view.applescript
end switchToDayView
dec-calendar-view.applescript
on switchToWeekView()
dec-calendar-view.applescript
tell application "Calendar" to switch view to week view
dec-calendar-view.applescript
end switchToWeekView
dec-calendar-view.applescript
on switchToMonthView()
dec-calendar-view.applescript
tell application "Calendar" to switch view to month view
dec-calendar-view.applescript
end switchToMonthView
dec-calendar-view.applescript
on switchToYearView()
dec-calendar-view.applescript
switchToViewByTitle("Year") -- no native support for this.
dec-calendar-view.applescript
end switchToYearView
dec-calendar-view.applescript
set logger to std's import("logger")'s new("dec-calendar-view")
dec-calendar-view.applescript
set myPath to path of document 1
exec-shell-script-opened-in-coteditor.applescript
do script myPath in front window
exec-shell-script-opened-in-coteditor.applescript
set connected_vpn to get name of every service whose (kind is greater than 10 and kind is less than 17) and connected of current configuration is true
vpn.applescript
set connect_status to count of connected_vpn
vpn.applescript
if connect_status ¡Ü 0 then
vpn.applescript
set vpn_list to get name of every service whose (kind is greater than 10 and kind is less than 17)
vpn.applescript
set vpn_count to count of vpn_list
vpn.applescript
set selected_serial to random number from 1 to vpn_count
vpn.applescript
set selected_vpn to item selected_serial of vpn_list
vpn.applescript
display notification "Connect to " & selected_vpn & " ..."
vpn.applescript
set vpn to the service selected_vpn
vpn.applescript
if vpn is not null then
vpn.applescript
if current configuration of vpn is not connected then
vpn.applescript
connect vpn
vpn.applescript
return 30
vpn.applescript
set inputChannelCount to 2
Set crosspoints to current default.applescript
set outputChannelCount to 6
Set crosspoints to current default.applescript
set useCueList to (selected as list)
Set crosspoints to current default.applescript
set defaultLevels to {}
Set crosspoints to current default.applescript
findDefault(inputChannelCount, outputChannelCount, defaultLevels)
Set crosspoints to current default.applescript
setDefault(inputChannelCount, outputChannelCount, useCueList, defaultLevels)
Set crosspoints to current default.applescript
on findDefault(inputCount, outputCount, Levels)
Set crosspoints to current default.applescript
set defaultAudio to last item of (selected as list)
Set crosspoints to current default.applescript
set q name of defaultAudio to "REFERENCE CUE - DELETE AFTER RUNNING SCRIPT"
Set crosspoints to current default.applescript
set q color of defaultAudio to "rufous"
Set crosspoints to current default.applescript