text
stringlengths
0
15.7k
source
stringlengths
6
112
phone_list
Script 14-9.applescript
set carpetaDestino to quoted form of POSIX path of carpetaDestino
exportaPhotosCarpeta.scpt
set l to name of albums
exportaPhotosCarpeta.scpt
set nombreAlbum to choose from list l with prompt "Selecciona los álbumes" with multiple selections allowed
exportaPhotosCarpeta.scpt
if nombreAlbum is not false then
exportaPhotosCarpeta.scpt
repeat with tName in nombreAlbum
exportaPhotosCarpeta.scpt
set tFolder to carpetaDestino & tName
exportaPhotosCarpeta.scpt
my makeFolder(tFolder)
exportaPhotosCarpeta.scpt
export (get media items of album tName) to (tFolder as alias) with using originals
exportaPhotosCarpeta.scpt
on makeFolder(tPath)
exportaPhotosCarpeta.scpt
do shell script "mkdir -p " & quoted form of POSIX path of tPath
exportaPhotosCarpeta.scpt
end makeFolder
exportaPhotosCarpeta.scpt
playing
playing.applescript
on run query
shuffleon.applescript
set shuffle enabled to true
shuffleon.applescript
return (get shuffle enabled as string)
shuffleon.applescript
fmGUI_ManageSecurity_Save({fullAccessAccountName:"admin", fullAccessPassword:""})
fmGUI_ManageSecurity_Save.applescript
on fmGUI_ManageSecurity_Save(prefs)
fmGUI_ManageSecurity_Save.applescript
set defaulPrefs to {fullAccessAccountName:null, fullAccessPassword:null}
fmGUI_ManageSecurity_Save.applescript
set prefs to prefs & defaulPrefs
fmGUI_ManageSecurity_Save.applescript
set authWindowName to "Confirm Full access"
fmGUI_ManageSecurity_Save.applescript
set securityWindowName to "Manage Security for"
fmGUI_ManageSecurity_Save.applescript
if fmGUI_NameOfFrontmostWindow() is equal to "FileMaker Pro Advanced" then fmGUI_ObjectClick_Button({buttonName:"Allow"})
fmGUI_ManageSecurity_Save.applescript
if fmGUI_NameOfFrontmostWindow() begins with authWindowName then fmGUI_AuthenticateDialog({accountName:fullAccessAccountName of prefs, pwd:fullAccessPassword of prefs, windowname:authWindowName})
fmGUI_ManageSecurity_Save.applescript
windowWaitUntil({whichWindow:"front", windowNameTest:"does not start with", windowname:securityWindowName})
fmGUI_ManageSecurity_Save.applescript
error "Couldn't save Manage Security - " & errMsg number errNum
fmGUI_ManageSecurity_Save.applescript
end fmGUI_ManageSecurity_Save
fmGUI_ManageSecurity_Save.applescript
tell front document window
omnifocus_open_flagged.applescript
set perspective name to "Flagged"
omnifocus_open_flagged.applescript
ASCII character 65
ASCII character 65.applescript
set VoiceList to {"Karen", "Lee", "Sangeeta", "Moira", "Fiona", "Tessa", "Daniel", "Emily", "Serena", "Jill", "Samantha", "Tom", "Alex"}
MultiVoicer.applescript
set textList to {"We are the borg", "The telephone is ringing"}
MultiVoicer.applescript
repeat with thisText in textList
MultiVoicer.applescript
do shell script "mkdir -p ~/Desktop/Voices/\"" & thisText & "\""
MultiVoicer.applescript
repeat with theVoice in VoiceList
MultiVoicer.applescript
do shell script "say -v " & theVoice & " -o ~/Desktop/Voices/\"" & thisText & "\"/\"" & theVoice & "\".aiff \"" & thisText & "\""
MultiVoicer.applescript
tell application "System Events" to get the name of every login item
list-login-items.applescript
use framework "Vision"
ExtractImageText.scpt
on getImageText(imagePath)
ExtractImageText.scpt
set theRequest to current application's VNRecognizeTextRequest's alloc()'s init()
ExtractImageText.scpt
requestHandler's performRequests:(current application's NSArray's arrayWithObject:(theRequest)) |error|:(missing value)
ExtractImageText.scpt
set theResults to theRequest's results()
ExtractImageText.scpt
set theText to {}
ExtractImageText.scpt
repeat with observation in theResults
ExtractImageText.scpt
copy ((first item in (observation's topCandidates:1))'s |string|() as text) to end of theText
ExtractImageText.scpt
end getImageText
ExtractImageText.scpt
return getImageText("/Users/exampleUser/Documents/image.jpg")
ExtractImageText.scpt
tell application "Google Chrome" #Chromeを操作することを明示
launch-github.applescript
open location "https://github.com/" #githubにアクセス
launch-github.applescript
end tell #Chromeへの命令の終了
launch-github.applescript
set the_windows to windows
close_all_finder_windows.applescript
repeat with w in the_windows
close_all_finder_windows.applescript
log "name: " & name of w
close_all_finder_windows.applescript
tell w to close
close_all_finder_windows.applescript
set datte to current date
Weekday Based Alarm.applescript
set dayy to weekday of datte as text
Weekday Based Alarm.applescript
if dayy contains "Monday" then
Weekday Based Alarm.applescript
display dialog "yes"
Weekday Based Alarm.applescript
on run {sndAppleID, sndMessage}
sendAppleMessage.applescript
set myAppleID to get id of first service
sendAppleMessage.applescript
set receiver to buddy sndAppleID of service id myAppleID
sendAppleMessage.applescript
send sndMessage to receiver
sendAppleMessage.applescript
tell application "System Events" to set visible of process "Messages" to false
sendAppleMessage.applescript
global std, fileUtil, regex
marked copy.applescript
to spotCheck()
marked copy.applescript
set thisCaseId to "marked-spotCheck"
marked copy.applescript
Open File - Not Running
marked copy.applescript
Open File - Running
marked copy.applescript
Open File - Running - No document
marked copy.applescript
Focus Doc - Manual
marked copy.applescript
Get Front Tab - Manual (Test Zoomed and non Zoomed)
marked copy.applescript
Manual: Find Tab With Name
marked copy.applescript
Close Tab
marked copy.applescript
Open File - Free Style 1-2s
marked copy.applescript
Open File Asynchronous
marked copy.applescript
Toggle Dark Mode
marked copy.applescript
Turn On Dark Mode
marked copy.applescript
Turn On Light Mode
marked copy.applescript
set examplesPath to configSystem's getValue("AppleScript Core Project Path") & "/apps/3rd-party/Marked"
marked copy.applescript
set testFile1 to examplesPath & "/example-1.md"
marked copy.applescript
set testFile2 to examplesPath & "/example-2.md"
marked copy.applescript
tell application "Marked" to quit
marked copy.applescript
set macTab to sut's openFile(testFile1)
marked copy.applescript
logger's infof("Open file: {}", name of macTab)
marked copy.applescript
delay 2 -- 1s failed.
marked copy.applescript
activate application "Marked"
marked copy.applescript
tell application "Marked" to close every window
marked copy.applescript
set markedTab1 to sut's openFile(testFile1)
marked copy.applescript
logger's infof("Open file: {}", markedTab1's getDocumentName())
marked copy.applescript
set markedTab2 to sut's openFile(testFile2)
marked copy.applescript
logger's infof("Open file: {}", markedTab2's getDocumentName())
marked copy.applescript
set markedTab1 to sut's openFile(testFile1) -- Safari
marked copy.applescript
set markedTab2 to sut's openFile(testFile2) -- ST
marked copy.applescript
markedTab1's focus() -- Manually Switch
marked copy.applescript
markedTab2's focus()
marked copy.applescript
set frontTab to getFrontTab()
marked copy.applescript
logger's infof("Open file: {}", frontTab's getDocumentName())
marked copy.applescript
set mdTab to sut's findTabWithName("Installer-general.md")
marked copy.applescript
if mdTab is not missing value then log mdTab's getDocumentName()
marked copy.applescript
set mdTabMissing to sut's findTabWithName("Safari-general.mdx")
marked copy.applescript