text
stringlengths
0
15.7k
source
stringlengths
6
112
sendMineServ("msg " & adminer & " Error while searching for items")
mcsong.scpt
if "[INFO] [Minecraft] <" & adminer & "> itfound" is in delta then
mcsong.scpt
set cmdargs to last item of split(delta, "[INFO] [Minecraft] <" & adminer & "> itfound ") as number
mcsong.scpt
set aral to item cmdargs of foundTracks
mcsong.scpt
set artista to last item of split(aral, "/")
mcsong.scpt
set albuma to first item of split(aral, "/")
mcsong.scpt
sendMineServ("msg " & adminer & " Error while selecting item")
mcsong.scpt
sendMineServ("msg " & adminer & " Sure that selection exists?")
mcsong.scpt
tell first window of application "Terminal" to set consoled to contents
mcsong.scpt
tell application "System Events" to my menu_click_recurse(r, ((process appName)'s Â
StrongboxShowMe.applescript
if application "Strongbox" is not frontmost then
StrongboxShowMe.applescript
tell application "System Events" to set visible of application process "Strongbox" to true
StrongboxShowMe.applescript
menu_click({"Strongbox", "Edit", "FindÉ"})
StrongboxShowMe.applescript
else if application "Strongbox" is frontmost then
StrongboxShowMe.applescript
tell application "System Events" to set visible of application process "Strongbox" to false
StrongboxShowMe.applescript
set pics to (path to pictures folder) as string
Create symlink to selected file.applescript
set macdest to (pics & "collection:") as alias
Create symlink to selected file.applescript
set photoList to the selection
Create symlink to selected file.applescript
if photoList = {} then
Create symlink to selected file.applescript
set pics to POSIX path of pics
Create symlink to selected file.applescript
set dest to POSIX path of macdest
Create symlink to selected file.applescript
set dirname to ""
Create symlink to selected file.applescript
set destPath to ""
Create symlink to selected file.applescript
repeat until dirname is not ""
Create symlink to selected file.applescript
set dirname to (choose folder with prompt "Select a folder in which to save the image(s)." default location macdest)
Create symlink to selected file.applescript
repeat with selectedPhoto in photoList
Create symlink to selected file.applescript
set photoProps to the properties of selectedPhoto
Create symlink to selected file.applescript
set photoID to the id of photoProps
Create symlink to selected file.applescript
set photoName to the filename of photoProps
Create symlink to selected file.applescript
display alert "Oops" message "Something went wrong. Are you selecting a photo in a Smart Album by chance?" & return & errMsg
Create symlink to selected file.applescript
set photoID to the first text item of photoID
Create symlink to selected file.applescript
set fname to (do shell script "find " & pics & "Fun.photoslibrary/originals -name \"" & photoID & "*\" -print")
Create symlink to selected file.applescript
do shell script "ln -s " & quoted form of fname & space & quoted form of (POSIX path of dirname & photoName)
Create symlink to selected file.applescript
return (get artist of current track) & " - " & (get name of current track)
spotifyNowPlaying.applescript
on GetCurrentApp()
marked-preview.applescript
set _app to item 1 of (every process whose frontmost is true)
marked-preview.applescript
return name of _app
marked-preview.applescript
end GetCurrentApp
marked-preview.applescript
tell application GetCurrentApp()
marked-preview.applescript
set theFilename to get the file of the document of the first window
marked-preview.applescript
open theFilename
marked-preview.applescript
 property template_file : missing value
Script 11-10.applescript
property title_font : missing value
Script 11-10.applescript
if template_file is missing value or title_font is missing value then
Script 11-10.applescript
set_preferences()
Script 11-10.applescript
display dialog "Run the script or change settings?" buttons {"Quit", "Settings", "Run"} default button "Run"
Script 11-10.applescript
if button_pressed is "Quit" then
Script 11-10.applescript
else if button_pressed is "Settings" then
Script 11-10.applescript
on set_preferences()
Script 11-10.applescript
set template_file to choose file with prompt "Pick an Illustrator template"
Script 11-10.applescript
set fonts_list to name of every text font
Script 11-10.applescript
set user_selection to choose from list fonts_list with prompt "Pick a font for the title"
Script 11-10.applescript
if user_selection is false then error number -128 -- User canceled
Script 11-10.applescript
set title_font to item 1 of user_selection
Script 11-10.applescript
end set_preferences
Script 11-10.applescript
display dialog "Project language file one"
PROJECT_LANG_1.applescript
display dialog "For: Seanpm2001/Learn-AppleScript"
PROJECT_LANG_1.applescript
display dialog "About:"
PROJECT_LANG_1.applescript
display dialog "I decided to make AppleScript the main project language file for this project (Seanpm2001/Learn-AppleScript) as AppleScript is the language this project is dedicated to, because this project is about learning the AppleScript programming language. It only makes sense to make AppleScript the official lang...
PROJECT_LANG_1.applescript
display alert "Project language file one"
PROJECT_LANG_1.applescript
display alert "For: Seanpm2001/Learn-AppleScript"
PROJECT_LANG_1.applescript
display alert "About:"
PROJECT_LANG_1.applescript
display alert "I decided to make AppleScript the main project language file for this project (Seanpm2001/Learn-AppleScript) as AppleScript is the language this project is dedicated to, because this project is about learning the AppleScript programming language. It only makes sense to make AppleScript the official langu...
PROJECT_LANG_1.applescript
say "Project language file one"
PROJECT_LANG_1.applescript
say "For: Seanpm2001/Learn-AppleScript"
PROJECT_LANG_1.applescript
say "About:"
PROJECT_LANG_1.applescript
say "I decided to make AppleScript the main project language file for this project (Seanpm2001/Learn-AppleScript) as AppleScript is the language this project is dedicated to, because this project is about learning the AppleScript programming language. It only makes sense to make AppleScript the official language for th...
PROJECT_LANG_1.applescript
property ptyAskForTags : "ON"
Evernote%20Mac%20File%20Import.AppleScript
property ptyMoveToTrash : "OFF"
Evernote%20Mac%20File%20Import.AppleScript
property ptyNotify : false
Evernote%20Mac%20File%20Import.AppleScript
property theBody : ""
Evernote%20Mac%20File%20Import.AppleScript
property ptyEN_NB_Name : "" -- Empty NB means file to be imported to your EN Default NB
Evernote%20Mac%20File%20Import.AppleScript
property ptyEN_TagList : {"EN.Import"} -- Add default Tags here inside the curly brackets, separated by commas.
Evernote%20Mac%20File%20Import.AppleScript
set scriptResults to "
Evernote%20Mac%20File%20Import.AppleScript
SOURCE DATE --- FILE NAME ---
Evernote%20Mac%20File%20Import.AppleScript
set {fnames, fexts, fdates, fppaths} to {{}, {}, {}, {}}
Evernote%20Mac%20File%20Import.AppleScript
set fileList to (get selection)
Evernote%20Mac%20File%20Import.AppleScript
repeat with oFile in fileList
Evernote%20Mac%20File%20Import.AppleScript
tell oFile
Evernote%20Mac%20File%20Import.AppleScript
set end of fnames to name
Evernote%20Mac%20File%20Import.AppleScript
set end of fexts to name extension
Evernote%20Mac%20File%20Import.AppleScript
set end of fdates to creation date
Evernote%20Mac%20File%20Import.AppleScript
set end of fppaths to POSIX path of (oFile as alias)
Evernote%20Mac%20File%20Import.AppleScript
set numFiles to count of fileList
Evernote%20Mac%20File%20Import.AppleScript
set filePural to " file"
Evernote%20Mac%20File%20Import.AppleScript
if (numFiles > 1) then set filePural to " files"
Evernote%20Mac%20File%20Import.AppleScript
set nbName to ptyEN_NB_Name
Evernote%20Mac%20File%20Import.AppleScript
if (nbName = "") then set nbName to "<Your Default NB>"
Evernote%20Mac%20File%20Import.AppleScript
set msgStr to "BEGIN Import to Evernote for " & numFiles & filePural & ¬
Evernote%20Mac%20File%20Import.AppleScript
return & "into Notebook: " & nbName
Evernote%20Mac%20File%20Import.AppleScript
if ptyNotify then
Evernote%20Mac%20File%20Import.AppleScript
say msgStr
Evernote%20Mac%20File%20Import.AppleScript
display notification (msgStr) with title ptyScriptName
Evernote%20Mac%20File%20Import.AppleScript
if ptyAskForTags is "ON" then set ptyEN_TagList to my getTagsFromUser(ptyEN_TagList, msgStr)
Evernote%20Mac%20File%20Import.AppleScript
repeat with iFile from 1 to numFiles
Evernote%20Mac%20File%20Import.AppleScript
set creationDate to item iFile of fdates
Evernote%20Mac%20File%20Import.AppleScript
set file_name to item iFile of fnames
Evernote%20Mac%20File%20Import.AppleScript
set file_ext to item iFile of fexts
Evernote%20Mac%20File%20Import.AppleScript
set posixFile to item iFile of fppaths
Evernote%20Mac%20File%20Import.AppleScript
set lsNoteTitle to file_name
Evernote%20Mac%20File%20Import.AppleScript