text
stringlengths
0
15.7k
source
stringlengths
6
112
log "Copying to " & thepath
iPhotoExport.applescript
do shell script "mkdir -p \"" & thepath & "\""
iPhotoExport.applescript
set theImagePaths to image path of every photo of aEvent
iPhotoExport.applescript
set totalphotos to count of theImagePaths
iPhotoExport.applescript
set photoscopied to 0
iPhotoExport.applescript
set lastreportpercentage to 0
iPhotoExport.applescript
log (totalphotos as string) & " photos to be copied"
iPhotoExport.applescript
repeat with theimagepath in theImagePaths
iPhotoExport.applescript
do shell script "cp \"" & theimagepath & "\" \"" & thepath & "\""
iPhotoExport.applescript
set photoscopied to photoscopied + 1
iPhotoExport.applescript
set percentage to (photoscopied / totalphotos * 100) as integer
iPhotoExport.applescript
if percentage is not lastreportpercentage then
iPhotoExport.applescript
log (percentage as string) & "%"
iPhotoExport.applescript
set lastreportpercentage to percentage
iPhotoExport.applescript
log "Not copying " & name of aEvent
iPhotoExport.applescript
return listOfSafariTabs()
returnListOfSafariTabs.applescript
on listOfSafariTabs()
returnListOfSafariTabs.applescript
if application "Safari" is running then
returnListOfSafariTabs.applescript
end listOfSafariTabs
returnListOfSafariTabs.applescript
set taskId to item 1 of argv
link_task.applescript
set taskName to name of flattened task id taskId
link_task.applescript
set taskUrl to "omnifocus:///task/" & taskId
link_task.applescript
my clipTextAndHtml(taskName, "<a href=\"" & taskUrl & "\">" & taskName & "</a>")
link_task.applescript
my hookToActiveWindow(taskName, taskUrl)
link_task.applescript
set oNotes to selection
Evernote - Open in Jira.applescript
set sName to title of item 1 of oNotes
Evernote - Open in Jira.applescript
set sWords to words of sName
Evernote - Open in Jira.applescript
set sURL to "http://tugjira.eczacibasi.com.tr/browse/" & item 1 of sWords & "-" & item 2 of sWords
Evernote - Open in Jira.applescript
set sCommand to "open " & sURL
Evernote - Open in Jira.applescript
do shell script sCommand
Evernote - Open in Jira.applescript
set cmd to "clear;cd `dirname " & filename & "`;vim " & filename
TerminalVim.applescript
set artistAlbums to getArtistAlbums(artistName) of config
playalbumby.applescript
repeat with albumName in artistAlbums
playalbumby.applescript
tell application "Sparrow"
newmessageinsparrow.scpt
set theMessage to make new outgoing message
newmessageinsparrow.scpt
make new mail attachment with properties {filename:ii as alias}
newmessageinsparrow.scpt
compose
newmessageinsparrow.scpt
set theName to (name of theRecord) as string
Set Zettel Data.applescript
set zettel to (dt's getZettel:theName)
Set Zettel Data.applescript
set theRecord's name to zettelName of zettel
Set Zettel Data.applescript
set theRecord's aliases to zettelId of zettel
Set Zettel Data.applescript
add custom meta data (zettelId of zettel) for "zettelkastenid" to theRecord
Set Zettel Data.applescript
log message "Set Zettelkasten id" info (zettelName of zettel)
Set Zettel Data.applescript
if class of _item is bookmark item then
Archive Bookmarks.applescript
set _name to name of _item
Archive Bookmarks.applescript
set _url to location of _item
Archive Bookmarks.applescript
set _tags to tags of _item
Archive Bookmarks.applescript
set _archive to make new web archive item with contents _url with properties {name:_name}
Archive Bookmarks.applescript
add tags _tags to _archive
Archive Bookmarks.applescript
 on bubblesort(the_list)
Script 10-4.applescript
set is_sorted to false
Script 10-4.applescript
repeat until is_sorted
Script 10-4.applescript
set is_sorted to true
Script 10-4.applescript
repeat with i from 1 to (length of the_list) – 1
Script 10-4.applescript
if item i of the_list > item (i + 1) of the_list then
Script 10-4.applescript
set {item i of the_list, item (i + 1) of the_list} to {item (i + 1) of the_list, item i of the_list}
Script 10-4.applescript
end bubblesort
Script 10-4.applescript
set tagNames to (name of every tag)
Tag Companions.applescript
set tagName to (choose from list tagNames with title "Tag Companions" with prompt "Select a tag to accompany:" without multiple selections allowed and empty selection allowed)
Tag Companions.applescript
if tagName is false then return
Tag Companions.applescript
set tagsToAdd to (choose from list tagNames with title "Tag Companions" with prompt "Select tags to add to items tagged '" & tagName & "':" with multiple selections allowed without empty selection allowed)
Tag Companions.applescript
if tagsToAdd is false then return
Tag Companions.applescript
set theTag to tag (item 1 of tagName)
Tag Companions.applescript
add tags tagsToAdd to (every database item whose tags contains theTag)
Tag Companions.applescript
set query to "{query}" -- get the query
add_to_list.scpt
if query is "null" then
add_to_list.scpt
activate -- user chose to activate iTunes
add_to_list.scpt
set my text item delimiters to "-"
add_to_list.scpt
set actionItems to every text item of query -- actions come as 'remove||add-playlistID-trackID'
add_to_list.scpt
set action to item 1 of actionItems
add_to_list.scpt
set playlistID to (item 2 of actionItems) as string
add_to_list.scpt
set songId to (item 3 of actionItems) as integer
add_to_list.scpt
set thePlaylist to item 1 of (every playlist whose persistent ID is playlistID) -- store the playlist
add_to_list.scpt
set songName to "The song"
add_to_list.scpt
if action is "add" then
add_to_list.scpt
set theSong to item 1 of (every track whose database ID is songId) -- store the song
add_to_list.scpt
duplicate theSong to thePlaylist
add_to_list.scpt
return "Added to list <-" & quote & songName & quote
add_to_list.scpt
return "Already in list <-" & quote & songName & quote
add_to_list.scpt
return "Oops. " & quote & songName & quote & " couldn't be added to playlist " & quote & playlistName & quote
add_to_list.scpt
return "Oops. " & quote & songName & quote & " couldn't be removed from playlist " & quote & playlistName & quote
add_to_list.scpt
reveal pane "com.apple.preferences.Bluetooth"
bluetooth.scpt
click button 3 of window 1
bluetooth.scpt
set theFile to alias "Gabriela:Users:takashi:Downloads:ocr-documents:6745592652.pdf"
ocr_pdf_documents_hazel.applescript
set thisCaseId to "dec-terminal-prompt-sftp-spotCheck"
dec-terminal-prompt-sftp.applescript
Manual: Prompt Text - Non SFTP
dec-terminal-prompt-sftp.applescript
Manual: Prompt Text - SFTP
dec-terminal-prompt-sftp.applescript
logger's infof("Is SFTP: {}", frontTab's isSFTP())
dec-terminal-prompt-sftp.applescript
if isSFTP() then
dec-terminal-prompt-sftp.applescript
return sftpPromptPattern()
dec-terminal-prompt-sftp.applescript
continue getPrompt()
dec-terminal-prompt-sftp.applescript
if lastProcess is "ssh" then
dec-terminal-prompt-sftp.applescript
set promptOnly to regex's firstMatchInString(my sftpPromptPattern(), recentBuffer)
dec-terminal-prompt-sftp.applescript
on isSFTP()
dec-terminal-prompt-sftp.applescript
if getPromptText() contains sftpPromptPattern() then return true
dec-terminal-prompt-sftp.applescript
lastProcess is "sftp"
dec-terminal-prompt-sftp.applescript
end isSFTP
dec-terminal-prompt-sftp.applescript
if isShellPRompt() is false then return missing value
dec-terminal-prompt-sftp.applescript
continue getLastOutput()
dec-terminal-prompt-sftp.applescript
return regex's matchesInString(my sftpPromptPattern() & "$", textUtil's rtrim(_history))
dec-terminal-prompt-sftp.applescript