text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
end doUnmountIfMounted
|
Thunderbird%20Launcher.applescript
|
set pathFile to "cd " & pathFile
|
openSelectedFolder.scpt
|
write text pathFile
|
openSelectedFolder.scpt
|
set destinationFolderName to "ADN Photos"
|
Download%20ADN%20Photos%20Daily.scpt
|
set allPhotoTypes to {"com.alwaysallthetime.sprinter", "net.app.ohai.journal.photo", "com.yourhead.favd.image"}
|
Download%20ADN%20Photos%20Daily.scpt
|
set downloadedTag to "AppleScript Downloaded"
|
Download%20ADN%20Photos%20Daily.scpt
|
set containerFolder to folder "Pictures" of (path to home folder)
|
Download%20ADN%20Photos%20Daily.scpt
|
set destination to (make new folder at containerFolder with properties {name:destinationFolderName}) as alias
|
Download%20ADN%20Photos%20Daily.scpt
|
set destination to folder destinationFolderName of containerFolder as alias
|
Download%20ADN%20Photos%20Daily.scpt
|
wait for load -- Waits until FileBase has completely downloaded the list of files available from App.net
|
Download%20ADN%20Photos%20Daily.scpt
|
set allPhotos to {}
|
Download%20ADN%20Photos%20Daily.scpt
|
repeat with photoType in allPhotoTypes
|
Download%20ADN%20Photos%20Daily.scpt
|
set selectedPhotos to (adnFiles where adn type is photoType)
|
Download%20ADN%20Photos%20Daily.scpt
|
set allPhotos to allPhotos & selectedPhotos
|
Download%20ADN%20Photos%20Daily.scpt
|
set undownloadedPhotos to {}
|
Download%20ADN%20Photos%20Daily.scpt
|
repeat with photo in allPhotos
|
Download%20ADN%20Photos%20Daily.scpt
|
if tags of photo does not contain downloadedTag then
|
Download%20ADN%20Photos%20Daily.scpt
|
set end of undownloadedPhotos to photo
|
Download%20ADN%20Photos%20Daily.scpt
|
download undownloadedPhotos to destination
|
Download%20ADN%20Photos%20Daily.scpt
|
repeat with photo in undownloadedPhotos
|
Download%20ADN%20Photos%20Daily.scpt
|
add tag downloadedTag to photo
|
Download%20ADN%20Photos%20Daily.scpt
|
on textualcmd(nick1)
|
toalla.scpt
|
set chopea to words of nick1
|
toalla.scpt
|
set nick2 to item 1 of chopea
|
toalla.scpt
|
ok(nick2)
|
toalla.scpt
|
on ok(nick2)
|
toalla.scpt
|
set userHome to (short user name of (system info))
|
toalla.scpt
|
set destino to (("/Users/" & userHome & "/Library/Application Scripts/com.codeux.apps.textual/") & "toalla.txt")
|
toalla.scpt
|
set curler to "/usr/bin/curl" as string
|
toalla.scpt
|
set existe to "false" as boolean
|
toalla.scpt
|
tell application "Finder" to if exists destino as POSIX file then set existe to true
|
toalla.scpt
|
set algo to read destino using delimiter "
|
toalla.scpt
|
set link to {"%1%", "%RNICK%", "%NETWORK%"}
|
toalla.scpt
|
set toalla to round {(random number from 1 to count algo)}
|
toalla.scpt
|
set textu to item toalla of algo
|
toalla.scpt
|
set largo to length of textu
|
toalla.scpt
|
set nick2 to replaceText(link, nick2, textu)
|
toalla.scpt
|
end ok
|
toalla.scpt
|
on getInput(promptText, defaultValue)
|
Rename Substitution.applescript
|
tell application "Finder" to display dialog promptText default answer defaultValue with icon note
|
Rename Substitution.applescript
|
set renameCommand to homeFolder & ".local/bin/rename-sub"
|
Rename Substitution.applescript
|
set pattern to my getRequiredInput("Enter pattern:", "")
|
Rename Substitution.applescript
|
set replacement to my getInput("Enter replacement:", "")
|
Rename Substitution.applescript
|
set renameCommand to renameCommand & " -P " & quoted form of pattern
|
Rename Substitution.applescript
|
set renameCommand to renameCommand & " -R " & quoted form of replacement
|
Rename Substitution.applescript
|
set renameCommand to renameCommand & " " & my quotePathes(theFiles)
|
Rename Substitution.applescript
|
set difftool to "/usr/bin/opendiff"
|
Compare%20Two%20Notes.applescript
|
if (count of selected_notes) = 2 then
|
Compare%20Two%20Notes.applescript
|
set firstNoteId to my getNoteId(local id of (item 1 of selected_notes))
|
Compare%20Two%20Notes.applescript
|
set secondNoteId to my getNoteId(local id of (item 2 of selected_notes))
|
Compare%20Two%20Notes.applescript
|
set evernoteLibPath to (POSIX path of (path to library folder from user domain as string)) & "Application Support/Evernote/accounts/Evernote/"
|
Compare%20Two%20Notes.applescript
|
set evernoteUserid to name of (get current account)
|
Compare%20Two%20Notes.applescript
|
set contentPath to evernoteLibPath & evernoteUserid & "/content/"
|
Compare%20Two%20Notes.applescript
|
do shell script difftool & " '" & contentPath & "/" & firstNoteId & "/content.enml' '" & contentPath & "/" & secondNoteId & "/content.enml'"
|
Compare%20Two%20Notes.applescript
|
display alert "Compare Two Notes:" message "Please select only 2 notes to compare"
|
Compare%20Two%20Notes.applescript
|
display alert "Compare Two Notes: ERROR" message "Error running script (" & error_number & ") : " & error_message as warning
|
Compare%20Two%20Notes.applescript
|
on getNoteId(note_id)
|
Compare%20Two%20Notes.applescript
|
set the id_items to every text item of note_id
|
Compare%20Two%20Notes.applescript
|
return last item of id_items
|
Compare%20Two%20Notes.applescript
|
end getNoteId
|
Compare%20Two%20Notes.applescript
|
set operaIsRunning to isRunning("Opera") of me
|
InsertNowBrowsingSiteInfo.scpt
|
set marsEditIsRunning to my isRunning("MarsEdit")
|
InsertNowBrowsingSiteInfo.scpt
|
if (operaIsRunning and marsEditIsRunning) then
|
InsertNowBrowsingSiteInfo.scpt
|
to do()
|
InsertNowBrowsingSiteInfo.scpt
|
set u to URL of window 1
|
InsertNowBrowsingSiteInfo.scpt
|
set oldClipboard to the clipboard
|
InsertNowBrowsingSiteInfo.scpt
|
key down "v"
|
InsertNowBrowsingSiteInfo.scpt
|
key up "v"
|
InsertNowBrowsingSiteInfo.scpt
|
set the clipboard to oldClipboard
|
InsertNowBrowsingSiteInfo.scpt
|
to isRunning(appname)
|
InsertNowBrowsingSiteInfo.scpt
|
if _files is {} then return display alert "No files selected!" as warning giving up after 5
|
Compress with Keka.applescript
|
set _pathnames to _pathnames & " " & quoted form of POSIX path of (f as alias)
|
Compress with Keka.applescript
|
do shell script "open -b 'com.aone.keka' " & _pathnames & " --args -action 2 &>/dev/null &"
|
Compress with Keka.applescript
|
version
|
version.applescript
|
tell O to toggleConsider(selectedItems())
|
Considered.applescript
|
if argv is "set" then
|
Considered.applescript
|
tell O to setConsider(selectedItems())
|
Considered.applescript
|
else if argv is "clear" then
|
Considered.applescript
|
tell O to clearConsider(selectedItems())
|
Considered.applescript
|
repeat with i from (count of documents) to 1 by -1
|
Close-All-Un-Saved-Documents.applescript
|
set thisDocument to document i
|
Close-All-Un-Saved-Documents.applescript
|
if path of (get properties of thisDocument) = missing value or name of thisDocument contains "Untitled" then
|
Close-All-Un-Saved-Documents.applescript
|
close thisDocument without saving
|
Close-All-Un-Saved-Documents.applescript
|
display alert "Error" message errMsg as critical buttons {"Cancel", "OK"} default button "OK" cancel button "Cancel"
|
Close-All-Un-Saved-Documents.applescript
|
property bd_list : {}
|
OmniBirthdays.applescript
|
property birth_date : missing value
|
OmniBirthdays.applescript
|
property the_date : missing value
|
OmniBirthdays.applescript
|
property existing_list : {}
|
OmniBirthdays.applescript
|
property bd_project : "Birthdays"
|
OmniBirthdays.applescript
|
property bd_context : "Communications"
|
OmniBirthdays.applescript
|
birthday_list()
|
OmniBirthdays.applescript
|
create_birthday_project()
|
OmniBirthdays.applescript
|
check_existing()
|
OmniBirthdays.applescript
|
make_task()
|
OmniBirthdays.applescript
|
on birthday_list()
|
OmniBirthdays.applescript
|
set person_list to every person whose birth date is not missing value
|
OmniBirthdays.applescript
|
repeat with new_person in person_list
|
OmniBirthdays.applescript
|
set end of bd_list to {name:name of new_person, birth_date:birth date of new_person}
|
OmniBirthdays.applescript
|
end birthday_list
|
OmniBirthdays.applescript
|
on create_birthday_project()
|
OmniBirthdays.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.