text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set keywords of img to theNewKeywords
|
ProcessPhotoDupeV2.applescript
|
return theNewKeywords
|
ProcessPhotoDupeV2.applescript
|
end RemoveDupeKeyword
|
ProcessPhotoDupeV2.applescript
|
on AddKeyword(theImg, theKeyword)
|
ProcessPhotoDupeV2.applescript
|
set theKeywords to keywords of theImg
|
ProcessPhotoDupeV2.applescript
|
set keywords of theImg to theKeywords & theKeyword
|
ProcessPhotoDupeV2.applescript
|
set keywords of theImg to theKeyword
|
ProcessPhotoDupeV2.applescript
|
end AddKeyword
|
ProcessPhotoDupeV2.applescript
|
on CompareDateWithinXSeconds(di1, di2, numSeconds)
|
ProcessPhotoDupeV2.applescript
|
if di1 > di2 then
|
ProcessPhotoDupeV2.applescript
|
set diff to di1 - di2
|
ProcessPhotoDupeV2.applescript
|
set diff to di2 - di1
|
ProcessPhotoDupeV2.applescript
|
if diff < numSeconds then
|
ProcessPhotoDupeV2.applescript
|
return diff
|
ProcessPhotoDupeV2.applescript
|
end CompareDateWithinXSeconds
|
ProcessPhotoDupeV2.applescript
|
property TestLib : load script alias ((path to scripts folder from user domain as text) & "TestLib.scpt")
|
Script 19-2.applescript
|
set visible of every process to false
|
hideall.applescript
|
global std, cc, zoomApp
|
user.applescript
|
set thisCaseId to "user-spotCheck"
|
user.applescript
|
Manual: Info
|
user.applescript
|
Manual: Get Meeting window
|
user.applescript
|
Manual: Cue for Touch ID
|
user.applescript
|
Manual: Done Audible Cue
|
user.applescript
|
logger's infof("Is Online?: {}", sut's isOnline())
|
user.applescript
|
logger's logObj("Meeting Window", sut's getMeetingWindow())
|
user.applescript
|
sut's cueForTouchId()
|
user.applescript
|
sut's done()
|
user.applescript
|
script UserInstance
|
user.applescript
|
on cueForTouchId()
|
user.applescript
|
end cueForTouchId
|
user.applescript
|
do shell script "afplay /System/Library/Sounds/Submarine.aiff"
|
user.applescript
|
return cc's isMicInUse()
|
user.applescript
|
on getMeetingWindow()
|
user.applescript
|
end getMeetingWindow
|
user.applescript
|
set pingResult to do shell script "/usr/local/bin/gtimeout 1s bash -c 'ping -c 1 apple.com'"
|
user.applescript
|
return pingResult contains "0.0% packet loss"
|
user.applescript
|
on getOsMajorVersion()
|
user.applescript
|
set sysinfo to system info
|
user.applescript
|
return (do shell script "echo '" & system version of sysinfo & "' | cut -d '.' -f 1") as integer
|
user.applescript
|
end getOsMajorVersion
|
user.applescript
|
set logger to std's import("logger")'s new("user")
|
user.applescript
|
set cc to std's import("control-center")
|
user.applescript
|
tell application process "Mail"
|
sortRecipientsAlphabeticallyV1.scpt
|
my clearClipboard()
|
sortRecipientsAlphabeticallyV1.scpt
|
set value of attribute "AXFocused" of text field 1 of front window to true
|
sortRecipientsAlphabeticallyV1.scpt
|
set addresseesSorted to my sortAddresseesThroughClipboard()
|
sortRecipientsAlphabeticallyV1.scpt
|
if addresseesSorted is equal to true then
|
sortRecipientsAlphabeticallyV1.scpt
|
set value of attribute "AXFocused" of text field 2 of front window to true
|
sortRecipientsAlphabeticallyV1.scpt
|
set value of attribute "AXFocused" of text field 3 of front window to true
|
sortRecipientsAlphabeticallyV1.scpt
|
on sortAddresseesThroughClipboard()
|
sortRecipientsAlphabeticallyV1.scpt
|
set addressees to (the clipboard) as text
|
sortRecipientsAlphabeticallyV1.scpt
|
if length of addressees is greater than 4 then
|
sortRecipientsAlphabeticallyV1.scpt
|
set addresseesSplitted to my explode(", ", addressees)
|
sortRecipientsAlphabeticallyV1.scpt
|
set addresseesSorted to my sortAlphabetically(the addresseesSplitted)
|
sortRecipientsAlphabeticallyV1.scpt
|
set addressees to my implode(", ", addresseesSorted)
|
sortRecipientsAlphabeticallyV1.scpt
|
set the clipboard to addressees as text
|
sortRecipientsAlphabeticallyV1.scpt
|
end sortAddresseesThroughClipboard
|
sortRecipientsAlphabeticallyV1.scpt
|
on clearClipboard()
|
sortRecipientsAlphabeticallyV1.scpt
|
on error err_message
|
sortRecipientsAlphabeticallyV1.scpt
|
display dialog err_message
|
sortRecipientsAlphabeticallyV1.scpt
|
end clearClipboard
|
sortRecipientsAlphabeticallyV1.scpt
|
on sortAlphabetically(theList)
|
sortRecipientsAlphabeticallyV1.scpt
|
set the indexList to {}
|
sortRecipientsAlphabeticallyV1.scpt
|
set the sortedList to {}
|
sortRecipientsAlphabeticallyV1.scpt
|
repeat (the number of items in theList) times
|
sortRecipientsAlphabeticallyV1.scpt
|
set the lowItem to ""
|
sortRecipientsAlphabeticallyV1.scpt
|
repeat with i from 1 to (number of items in theList)
|
sortRecipientsAlphabeticallyV1.scpt
|
set thisItem to item i of theList as string
|
sortRecipientsAlphabeticallyV1.scpt
|
if the lowItem is "" then
|
sortRecipientsAlphabeticallyV1.scpt
|
set the lowItem to thisItem
|
sortRecipientsAlphabeticallyV1.scpt
|
set the lowItemIndex to i
|
sortRecipientsAlphabeticallyV1.scpt
|
else if thisItem comes before the lowItem then
|
sortRecipientsAlphabeticallyV1.scpt
|
set the end of sortedList to the lowItem
|
sortRecipientsAlphabeticallyV1.scpt
|
set the end of the indexList to the lowItemIndex
|
sortRecipientsAlphabeticallyV1.scpt
|
return the sortedList
|
sortRecipientsAlphabeticallyV1.scpt
|
end sortAlphabetically
|
sortRecipientsAlphabeticallyV1.scpt
|
set COMMANDS to {}
|
iterm-opener.applescript
|
append(COMMANDS, "")
|
iterm-opener.applescript
|
on append(arr, x)
|
iterm-opener.applescript
|
copy x to the end of arr
|
iterm-opener.applescript
|
repeat with n from 1 to count of COMMANDS
|
iterm-opener.applescript
|
tell current session of current tab of current window
|
iterm-opener.applescript
|
write text (item n of COMMANDS)
|
iterm-opener.applescript
|
log "Started exporting photos"
|
iPhotoExport.applescript
|
set the destination to "/insert/your/absolute/photo/export/path/here/"
|
iPhotoExport.applescript
|
set theEvents to get every album
|
iPhotoExport.applescript
|
repeat with aEvent in theEvents
|
iPhotoExport.applescript
|
if (type of aEvent) is regular album then
|
iPhotoExport.applescript
|
set shouldcopy to true
|
iPhotoExport.applescript
|
if the name of aEvent is "Laatste import" then
|
iPhotoExport.applescript
|
set shouldcopy to false
|
iPhotoExport.applescript
|
set thepath to the name of aEvent
|
iPhotoExport.applescript
|
set thecurrentparent to the parent of aEvent
|
iPhotoExport.applescript
|
repeat while the type of thecurrentparent is folder album
|
iPhotoExport.applescript
|
if the name of thecurrentparent is "Verzamelingen" then
|
iPhotoExport.applescript
|
set thisname to (get name of thecurrentparent)
|
iPhotoExport.applescript
|
set thepath to thisname & "/" & thepath
|
iPhotoExport.applescript
|
set thecurrentparent to the parent of thecurrentparent
|
iPhotoExport.applescript
|
set thepath to destination & thepath & "/"
|
iPhotoExport.applescript
|
if shouldcopy then
|
iPhotoExport.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.