text
stringlengths
0
15.7k
source
stringlengths
6
112
set contents of text field "registerErrorText" to "You provided no confirmation password."
register copy.applescript
set contents of text field "registerErrorText" to "You provided no password."
register copy.applescript
set contents of text field "registerErrorText" to "You provided no alias."
register copy.applescript
set contents of text field "registerErrorText" to "You provided no email."
register copy.applescript
if (contents of text field "registerErrorText" of window "registerWindow") is "" then
register copy.applescript
set myCreationURL to (homeRootURL & "createMe.php") as string
register copy.applescript
set myCreation to ("curl --data-urlencode " & quoted form of ("myEmail=" & myReg_email) & " --data " & quoted form of ("myAlias=" & myReg_alias) & " --data " & quoted form of ("myPassword=" & myReg_password) & " --data " & quoted form of ("myGender=" & myReg_gender) & " -e 'audiMate.makeYourself' " & quoted form of (myCreationURL))
register copy.applescript
set myCreation to (do shell script myCreation)
register copy.applescript
set (contents of text field "registerErrorText" of window "registerWindow") to myCreation
register copy.applescript
end createMe
register copy.applescript
on deleteMe(myDelEmail, myDelPassword)
register copy.applescript
set myDeleteURL to (homeRootURL & "deleteMe.php")
register copy.applescript
set myDeletionResult to (do shell script ("curl --data " & quoted form of ("email=" & myDelEmail & "&password=" & myDelPassword) & " -e 'audiMate.deleteMe' " & quoted form of myDeleteURL)) as string
register copy.applescript
return myDeletionResult
register copy.applescript
end deleteMe
register copy.applescript
on clicked theObject
register copy.applescript
if the name of theObject is "registerCancelButton" then
register copy.applescript
set title of window "loginWindow" to "Login"
register copy.applescript
close panel window "registerWindow"
register copy.applescript
else if the name of theObject is "registerCreateButton" then
register copy.applescript
createMe()
register copy.applescript
else if the name of theObject is "register18Check" then
register copy.applescript
if (the state of theObject as string) is "0" then
register copy.applescript
set enabled of button "registerCreateButton" of window "registerWindow" to false
register copy.applescript
set enabled of button "registerCreateButton" of window "registerWindow" to true
register copy.applescript
end clicked
register copy.applescript
on choose menu item theObject
register copy.applescript
set windowOneName to (the name of window 1)
register copy.applescript
if windowOneName is "homeWindow" then
register copy.applescript
if visible of progress indicator 1 of window "homeWindow" is false then
register copy.applescript
if the name of theObject is "locationMenuItem" then
register copy.applescript
set chosenAlias to (contents of text field "loggedInAsText" of window "homeWindow")
register copy.applescript
set appsup to ((POSIX path of (path to me)) & ("Contents/Resources/")) as string
register copy.applescript
set title of window "homeWindow" to "Edit Location"
register copy.applescript
getMyLocation()
register copy.applescript
display panel window "locationWindow" attached to window "homeWindow"
register copy.applescript
if the name of theObject is "deleteMeMI" then
register copy.applescript
tell window "loginWindow"
register copy.applescript
set myEmail to (contents of text field "loginEmailInput")
register copy.applescript
set myPassword to (contents of text field "loginPasswordInput")
register copy.applescript
display dialog ("Are you sure you wish to delete yourself?") buttons {"No", "Yes"} default button 1
register copy.applescript
if ((button returned of result) as string) is "Yes" then
register copy.applescript
display dialog ("You must manually forget each conversation, or they will stay there. All other information about you will be deleted automatically.") buttons {"Cancel", "Continue"} default button 1
register copy.applescript
if ((button returned of result) as string) is "Continue" then
register copy.applescript
display dialog ("This cannot be reversed!
register copy.applescript
You can not change your mind about this!
register copy.applescript
Are you still sure?") buttons {"No...", "Yes!"} default button 1
register copy.applescript
if ((button returned of result) as string) is "Yes!" then
register copy.applescript
set delRes to (deleteMe(myEmail, myPassword)) as string
register copy.applescript
if delRes is "You now cease to exist." then
register copy.applescript
show window "loginWindow"
register copy.applescript
hide window windowOneName
register copy.applescript
display alert "You now cease to exist..." attached to window "loginWindow"
register copy.applescript
display alert "There was an error with the deletion process." attached to window windowOneName
register copy.applescript
else if the name of theObject is "activateMeMI" then
register copy.applescript
open location (homeRootURL & "activate")
register copy.applescript
end choose menu item
register copy.applescript
set theDelim to "|"
Export groups cron.applescript
set theDate to do shell script "date '+%m-%d-%Y'"
Export groups cron.applescript
set defName to "group_export_" & theDate & ".txt"
Export groups cron.applescript
set outputFileName to "Danger Mouse:Users:bgebhardt:Documents:Backups:address_book_groups:" & defName
Export groups cron.applescript
tell application "Address Book"
Export groups cron.applescript
set theList to (get people)
Export groups cron.applescript
set theFile to "person id, last name, first name, company, organization, group name, group id"
Export groups cron.applescript
repeat with thePerson in theList
Export groups cron.applescript
set grps to groups of thePerson
Export groups cron.applescript
repeat with grp in grps
Export groups cron.applescript
set theLine to id of thePerson & theDelim & name of grp & theDelim & id of grp & theDelim & last name of thePerson & theDelim & first name of thePerson & theDelim & ¬
Export groups cron.applescript
company of thePerson & theDelim & name of thePerson
Export groups cron.applescript
log (get theLine)
Export groups cron.applescript
set theFile to theFile & return & theLine
Export groups cron.applescript
set outputFile to open for access outputFileName with write permission
Export groups cron.applescript
write theFile to outputFile
Export groups cron.applescript
close access outputFile
Export groups cron.applescript
on new_tab()
duplicateFinderTab.applescript
tell application "System Events" to tell application process "Finder"
duplicateFinderTab.applescript
tell front menu bar to tell menu "File" to tell menu item "New Tab"
duplicateFinderTab.applescript
on run {}
duplicateFinderTab.applescript
if (count of Finder windows) > 0 then set duplicate_me to target of front Finder window
duplicateFinderTab.applescript
new_tab()
duplicateFinderTab.applescript
set target of front Finder window to duplicate_me
duplicateFinderTab.applescript
set ScriptName to "iPhoto SED"
iPhoto SED.applescript
on substitute(sedCommand, theText)
iPhoto SED.applescript
return do shell script "echo " & quoted form of theText & " | sed -e " & quoted form of sedCommand
iPhoto SED.applescript
end substitute
iPhoto SED.applescript
tell application "iPhoto"
iPhoto SED.applescript
set thePics to selection
iPhoto SED.applescript
id of item 1 of thePics -- only pictures have ID
iPhoto SED.applescript
display dialog ScriptName & return & return & "First you must select the pictures" buttons {"Ouch!"} with icon 2
iPhoto SED.applescript
set userChoices to display dialog ScriptName & " - " & (count selection) & " pictures selected" & return & return & "Type the full SED command:" default answer "s/this/that/" buttons {"Quit", "Edit Comments", "Edit Title"} default button 3 with icon 1
iPhoto SED.applescript
set userText to the text returned of the userChoices as string
iPhoto SED.applescript
set userAction to the button returned of the userChoices as string
iPhoto SED.applescript
if userAction is "Edit Title" then
iPhoto SED.applescript
repeat with thisPic in thePics
iPhoto SED.applescript
set the title of thisPic to my substitute(userText, title of thisPic)
iPhoto SED.applescript
else if userAction is "Edit Comments" then
iPhoto SED.applescript
set the comment of thisPic to my substitute(userText, comment of thisPic)
iPhoto SED.applescript
tell application "Things3"
things-to-fantastical.applescript
set todos to to dos of list "Logbook"
things-to-fantastical.applescript
set onDate to current date
things-to-fantastical.applescript