text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set progress additional description to ({return, "Name: ", thisTrackName, ¬
return, "Artist: ", thisTrackArtist, ¬
return, "Album: ", thisTrackAlbum} as string) | ExportPlaylists.applescript |
set progress completed steps to j | ExportPlaylists.applescript |
end progress | ExportPlaylists.applescript |
set inputFolder to (path of doc) & ":" | Save as DOCX.applescript |
set inputName to (name of doc) | Save as DOCX.applescript |
alias inputFolder | Save as DOCX.applescript |
set tempFile to (tempFolder & fName & ".docx") | Save as DOCX.applescript |
save as doc file name tempFile file format format document with overwrite | Save as DOCX.applescript |
set total to 0 | EnumerateList_V1.applescript |
repeat with x in {1, 2, 3, 4, 5} | EnumerateList_V1.applescript |
set total to total + x | EnumerateList_V1.applescript |
windowResize's windowResize(1, 0) | windowResizeWidthPlus.applescript |
set chooseList to {} | Notes_to_Evernote.scpt |
repeat with i from 1 to count notes | Notes_to_Evernote.scpt |
set end of chooseList to name of note i & return & i | Notes_to_Evernote.scpt |
set chooseResult to choose from list my sortList(chooseList) with title "Notes to Evernote" with multiple selections allowed | Notes_to_Evernote.scpt |
if chooseResult = false then | Notes_to_Evernote.scpt |
set mediaFolder to alias ((path to library folder from user domain as text) & "Group Containers:group.com.apple.notes:Media:") | Notes_to_Evernote.scpt |
set existsMediaFolder to true | Notes_to_Evernote.scpt |
on error number -43 | Notes_to_Evernote.scpt |
set existsMediaFolder to false | Notes_to_Evernote.scpt |
set exportedNotes to {} | Notes_to_Evernote.scpt |
repeat with aResult in chooseResult | Notes_to_Evernote.scpt |
set {body:noteHTML, name:noteTitle, creation date:creationDate, attachment:attachmentsOfNote} to note (paragraph 2 of aResult as integer) | Notes_to_Evernote.scpt |
set attachmentFiles to {} | Notes_to_Evernote.scpt |
if existsMediaFolder then | Notes_to_Evernote.scpt |
repeat with anAttachment in attachmentsOfNote | Notes_to_Evernote.scpt |
set end of attachmentFiles to file 1 of (folder 1 of mediaFolder whose name of file 1 = name of anAttachment) as alias | Notes_to_Evernote.scpt |
set end of exportedNotes to create note with html noteHTML title noteTitle created creationDate attachments attachmentFiles | Notes_to_Evernote.scpt |
return exportedNotes | Notes_to_Evernote.scpt |
set comparator to my appropriateComparatorToSort(array's firstObject()) | Notes_to_Evernote.scpt |
to makeImageView at origin given dimensions:dimensions : {200, 200}, bezel:bezel : false, scaling:scaling : missing value, editable:editable : true, cutCopyPaste:cutCopyPaste : false, action:action : "imageAction:", target:target : missing value | NSImageView.applescript |
tell (current application's NSImageView's alloc()'s initWithFrame:{origin, dimensions}) | NSImageView.applescript |
if bezel is true then its setImageFrameStyle:(current application's NSImageFrameGrayBezel) | NSImageView.applescript |
if scaling is not missing value then its setImageScaling:scaling | NSImageView.applescript |
if cutCopyPaste is not false then its setAllowsCutCopyPaste:true | NSImageView.applescript |
end makeImageView | NSImageView.applescript |
on imageAction:sender | NSImageView.applescript |
display dialog "An image was placed into the image view." buttons {"OK"} default button 1 | NSImageView.applescript |
end imageAction: | NSImageView.applescript |
script DisconnectSession | disconnect-osx-user-session.applescript |
do shell script ("/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend") | disconnect-osx-user-session.applescript |
Manual: For Each - Notification Helper | notification-center copy.applescript |
Manual: Dismiss | notification-center copy.applescript |
Manual: Delete Mail | notification-center copy.applescript |
Manual: Notifications Count | notification-center copy.applescript |
Manual: Dismiss All - Didn't work initially | notification-center copy.applescript |
Manual: Expand Notification | notification-center copy.applescript |
if hasNotice then set notice to sut's new(group 1 of UI element 1 of scroll area 1 of group 1 of window "Notification Center") | notification-center copy.applescript |
set currentNotice to sut's new(group 1 of UI element 1 of scroll area 1 of group 1 of window "Notification Center") | notification-center copy.applescript |
sut's expandNotification() | notification-center copy.applescript |
on expandNotification() | notification-center copy.applescript |
set topNoticeUI to missing value | notification-center copy.applescript |
set topNoticeUI to last group of UI element 1 of scroll area 1 of group 1 of window "Notification Center" | notification-center copy.applescript |
if topNoticeUI is not missing value then | notification-center copy.applescript |
perform action "AXPress" of topNoticeUI | notification-center copy.applescript |
end expandNotification | notification-center copy.applescript |
if not (exists button 2 of UI element 1 of scroll area 1 of group 1 of window 1) then -- Clear All | notification-center copy.applescript |
click last group of UI element 1 of scroll area 1 of group 1 of window 1 | notification-center copy.applescript |
click button 2 of UI element 1 of scroll area 1 of group 1 of window 1 | notification-center copy.applescript |
if hasNotice then return groups of UI element 1 of scroll area 1 of group 1 of window "Notification Center" | notification-center copy.applescript |
on myFunc(MACNAME) | TeamViewerLocalConnect_forLaunchBar.applescript |
do shell script "open -a /Applications/TeamViewer\\ 8/TeamViewer.app" | TeamViewerLocalConnect_forLaunchBar.applescript |
do shell script "smbutil lookup " & MACNAME & "|grep response |awk '{print $4}'" | TeamViewerLocalConnect_forLaunchBar.applescript |
set PartnerID to result | TeamViewerLocalConnect_forLaunchBar.applescript |
tell process "TeamViewer" | TeamViewerLocalConnect_forLaunchBar.applescript |
tell window "TeamViewer" | TeamViewerLocalConnect_forLaunchBar.applescript |
set value of combo box 1 to PartnerID | TeamViewerLocalConnect_forLaunchBar.applescript |
click button "Connect to partner" | TeamViewerLocalConnect_forLaunchBar.applescript |
end myFunc | TeamViewerLocalConnect_forLaunchBar.applescript |
on handle_string(MACNAME) | TeamViewerLocalConnect_forLaunchBar.applescript |
myFunc(MACNAME) | TeamViewerLocalConnect_forLaunchBar.applescript |
tell application "Visual Studio Code" to activate | desktop_02.applescript |
click menu item "Preferences…" of menu "Safari" of menu bar item "Safari" of menu bar 1 of application process "Safari" of application "System Events" | safari_passwords copy.scpt |
click button "Passwords" of toolbar 1 of window 1 | safari_passwords copy.scpt |
display dialog "You must unlock Safari Passwords window first and then confirm by pressing this button..." buttons {"Quit script", "I have unlocked Safari Passwords window!"} | safari_passwords copy.scpt |
tell window "Passwords" of application "Safari" to activate | safari_passwords copy.scpt |
set filename to "/Users/" & name of current user & "/Desktop/passwords.csv" | safari_passwords copy.scpt |
set elements to rows of table 1 of scroll area 1 of group 1 of group 1 of window "Passwords" of application process "Safari" of application "System Events" | safari_passwords copy.scpt |
set num_rows to length of elements | safari_passwords copy.scpt |
set myFile to open for access filename with write permission | safari_passwords copy.scpt |
set finalstring to "name,url,username,password" & return | safari_passwords copy.scpt |
write finalstring to myFile | safari_passwords copy.scpt |
repeat with i from 1 to num_rows | safari_passwords copy.scpt |
set focused of (text field 3 of row i of table 1 of scroll area 1 of group 1 of group 1 of window "Passwords" of application process "Safari" of application "System Events") to true | safari_passwords copy.scpt |
set website to value of (text field 1 of row i of table 1 of scroll area 1 of group 1 of group 1 of window "Passwords" of application process "Safari" of application "System Events") | safari_passwords copy.scpt |
set username to value of (text field 2 of row i of table 1 of scroll area 1 of group 1 of group 1 of window "Passwords" of application process "Safari" of application "System Events") | safari_passwords copy.scpt |
set passwd to value of (text field 3 of row i of table 1 of scroll area 1 of group 1 of group 1 of window "Passwords" of application process "Safari" of application "System Events") | safari_passwords copy.scpt |
if website contains " — https" then | safari_passwords copy.scpt |
set AppleScript's text item delimiters to " — https" | safari_passwords copy.scpt |
set website to text item 1 of website | safari_passwords copy.scpt |
set finalstring to website & ",https://" & website & "," & username & "," & passwd & return | safari_passwords copy.scpt |
else if website contains " — http" then | safari_passwords copy.scpt |
set AppleScript's text item delimiters to " — http" | safari_passwords copy.scpt |
set finalstring to website & ",http://" & website & "," & username & "," & passwd & return | safari_passwords copy.scpt |
set errorstring to "Got error at " & i | safari_passwords copy.scpt |
log errorstring | safari_passwords copy.scpt |
global std, speech | dec-logger-speech-and-tracking.applescript |
script LoggerSpeechAndTrackingInstance | dec-logger-speech-and-tracking.applescript |
on fatal(logMessage) | dec-logger-speech-and-tracking.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.