text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set message_dates_line to paragraph 3 of message_text
|
Script 7-11.applescript
|
set message_location_line to paragraph 4 of message_text
|
Script 7-11.applescript
|
set the_summary to text (word 2) thru -1 of message_subject_line
|
Script 7-11.applescript
|
set the_location to text (word 2) thru -1 of message_location_line
|
Script 7-11.applescript
|
set the_meeting_date to text (word 3) thru (word 5) of message_dates_line
|
Script 7-11.applescript
|
set the_start_time to text (word 6) thru (word 8) of message_dates_line
|
Script 7-11.applescript
|
set the_end_time to text (word 10) thru (word 12) of message_dates_line
|
Script 7-11.applescript
|
set start_date to date (the_meeting_date & space & the_start_time)
|
Script 7-11.applescript
|
set end_date to date (the_meeting_date & space & the_end_time)
|
Script 7-11.applescript
|
make new event at end of calendar 1 with properties {start date:start_date, end date:end_date, summary:the_summary, location:the_location, status:confirmed}
|
Script 7-11.applescript
|
var next = document.querySelectorAll('li.yt-uix-scroller-scroll-unit.currently-playing')[0];
|
play_next_yt.applescript
|
if (player && next) {
next.nextElementSibling.children[1].click();
}
|
play_next_yt.applescript
|
display dialog "Enter a long URL" default answer ""
|
Goo.gl URL Shortener.applescript
|
set longURL to text returned of result
|
Goo.gl URL Shortener.applescript
|
set shortURL to do shell script "curl -s https://www.googleapis.com/urlshortener/v1/url?key={YOUR_API_KEY} -H 'Content-Type: application/json' -d \"{\\\"longUrl\\\": \\\"" & longURL & "\\\"}\" | awk '/\"id\":/{print substr($2, 2, length($2)-3)}'"
|
Goo.gl URL Shortener.applescript
|
on perform mail action with messages selectedMessages
|
Save-Mail-Attachment.applescript
|
set attachmentsFolder to "Macintosh HD:Users:liuzikai:Downloads"
|
Save-Mail-Attachment.applescript
|
display dialog attachmentsFolder
|
Save-Mail-Attachment.applescript
|
set timeStamp to ("" & y & "-" & my pad(m as integer) & "-" & my pad(d) & " " & my pad(h) & "_" & my pad(min))
|
Save-Mail-Attachment.applescript
|
save theAttachment in savePath
|
Save-Mail-Attachment.applescript
|
run script this_source
|
Execute AppleScript.applescript
|
if count of argv > 0
|
open_url.applescript
|
set _key to (item 1 of argv)
|
open_url.applescript
|
my openUrl(_key)
|
open_url.applescript
|
set thisstr to "###########"
|
comment-line.applescript
|
set final_string to ""
|
comment-line.applescript
|
repeat 8 times
|
comment-line.applescript
|
set final_string to final_string & thisstr
|
comment-line.applescript
|
replace "^" using final_string searching in text of x options {search mode:grep}
|
comment-line.applescript
|
set lenx to length of x
|
comment-line.applescript
|
if lenx < 1 then
|
comment-line.applescript
|
if (lenx < 88) then
|
comment-line.applescript
|
set halfl to ((88 - lenx) / 2 - 1) as integer
|
comment-line.applescript
|
set thisstr to "#"
|
comment-line.applescript
|
repeat halfl times
|
comment-line.applescript
|
replace "$" using (" " & final_string) searching in text of x options {search mode:grep}
|
comment-line.applescript
|
replace "^" using (final_string & " ") searching in text of x options {search mode:grep}
|
comment-line.applescript
|
set text of front document to "Hello world!"
|
hello-textedit.applescript
|
set the Calender_Lists to {"Business", "Home", "Finance", "Personal", "Recreation", "Work"} -- Add the Calendars that you want to schedule
|
Mail%20Process%20-%20Calendar.applescript
|
set defaultCalendar to "Personal"
|
Mail%20Process%20-%20Calendar.applescript
|
set defaultCalendarTime to "9"
|
Mail%20Process%20-%20Calendar.applescript
|
set defaultCalendarDay to "Today"
|
Mail%20Process%20-%20Calendar.applescript
|
set mailAccount to "Fastmail" -- Mail account
|
Mail%20Process%20-%20Calendar.applescript
|
set alert1 to 1440 -- minutes
|
Mail%20Process%20-%20Calendar.applescript
|
set alert2 to 15 -- minutes
|
Mail%20Process%20-%20Calendar.applescript
|
set today to now - (time of now)
|
Mail%20Process%20-%20Calendar.applescript
|
set tomorrow to (today) + (24 * 60 * 60)
|
Mail%20Process%20-%20Calendar.applescript
|
set theFolder to (POSIX path of (path to temporary items))
|
Mail%20Process%20-%20Calendar.applescript
|
set noSubjectString to "Mail Event - No Subject"
|
Mail%20Process%20-%20Calendar.applescript
|
set {theDateReceived, theDateSent, theSender, theSubject, theContentText, theSource, theReadFlag} to {the date received, the date sent, the sender, the subject, the content, the source, the read status}
|
Mail%20Process%20-%20Calendar.applescript
|
set theURL to "message://%3C" & message id of theMessage & "%3E"
|
Mail%20Process%20-%20Calendar.applescript
|
if theSubject is equal to "" then set theSubject to noSubjectString
|
Mail%20Process%20-%20Calendar.applescript
|
set theText to (words of theContentText as rich text)
|
Mail%20Process%20-%20Calendar.applescript
|
if length of theText is less than 500 then
|
Mail%20Process%20-%20Calendar.applescript
|
set theContent to theText
|
Mail%20Process%20-%20Calendar.applescript
|
set theContent to rich text 1 thru 500 of theText
|
Mail%20Process%20-%20Calendar.applescript
|
(choose from list {"Now", "2 Hours", "Tonight", "Today", "Tomorrow", "2 Days", "3 Days", "4 Days", "5 Days", "6 Days", "Saturday", "Sunday", "Next Monday", "1 Week", "2 weeks", "1 Month", "2 Months", "3 Months", "Custom"} default items defaultCalendarDay OK button name "Select" with prompt "Set Event Date" with title "Time Block ")
|
Mail%20Process%20-%20Calendar.applescript
|
if reminderDate is "Now" then
|
Mail%20Process%20-%20Calendar.applescript
|
defaultCalendarTime
|
Mail%20Process%20-%20Calendar.applescript
|
else if reminderDate is "2 Hours" then
|
Mail%20Process%20-%20Calendar.applescript
|
set defaultCalendarTime to text returned of (display dialog "what time do you want to start? (Answer in decimal ie 2:30pm is 14.5)" default answer "9")
|
Mail%20Process%20-%20Calendar.applescript
|
set theStartDate to (current date)
|
Mail%20Process%20-%20Calendar.applescript
|
set time of theStartDate to 60 * 60 * defaultCalendarTime
|
Mail%20Process%20-%20Calendar.applescript
|
display dialog "How long is the Event? (minutes) " default answer 30
|
Mail%20Process%20-%20Calendar.applescript
|
(choose from list Calender_Lists default items defaultCalendar OK button name "Select" with prompt "Pick Calendar" with title "Create Calendar Event")
|
Mail%20Process%20-%20Calendar.applescript
|
set Cal to result as rich text
|
Mail%20Process%20-%20Calendar.applescript
|
make new event with properties {summary:theSubject, start date:theStartDate, end date:theEndDate, description:theContent, url:theURL}
|
Mail%20Process%20-%20Calendar.applescript
|
set theEvent to (first event where its summary = theSubject)
|
Mail%20Process%20-%20Calendar.applescript
|
tell theEvent
|
Mail%20Process%20-%20Calendar.applescript
|
make new display alarm at end of display alarms with properties {trigger interval:-alert1}
|
Mail%20Process%20-%20Calendar.applescript
|
make new sound alarm at end of sound alarms with properties {trigger interval:-alert2, sound name:"Sosumi"}
|
Mail%20Process%20-%20Calendar.applescript
|
reload calendars
|
Mail%20Process%20-%20Calendar.applescript
|
set flagged status of theMessage to false -- Remove Flag
|
Mail%20Process%20-%20Calendar.applescript
|
set mailbox of theMessage to mailbox "Archive" of account mailAccount
|
Mail%20Process%20-%20Calendar.applescript
|
if selectedDate = "Now" then
|
Mail%20Process%20-%20Calendar.applescript
|
set remindMeDate to (current date)
|
Mail%20Process%20-%20Calendar.applescript
|
else if selectedDate = "2 Hours" then
|
Mail%20Process%20-%20Calendar.applescript
|
else if selectedDate = "Today" then
|
Mail%20Process%20-%20Calendar.applescript
|
else if selectedDate = "5 Days" then
|
Mail%20Process%20-%20Calendar.applescript
|
else if selectedDate = "6 Days" then
|
Mail%20Process%20-%20Calendar.applescript
|
set diskname to "Thunderbird Profile"
|
Thunderbird%20Launcher.applescript
|
set diskpath to "~/Library/Thunderbird/Profiles/Thunderbird Profile.sparsebundle"
|
Thunderbird%20Launcher.applescript
|
set itemname to "/Applications/Thunderbird"
|
Thunderbird%20Launcher.applescript
|
if not (exists the disk diskname) then
|
Thunderbird%20Launcher.applescript
|
do shell script ("hdiutil attach " & quoted form of ¬
|
Thunderbird%20Launcher.applescript
|
POSIX path of (diskpath as string) & " -nobrowse -mount required")
|
Thunderbird%20Launcher.applescript
|
repeat until name of every disk contains diskname
|
Thunderbird%20Launcher.applescript
|
tell application "Thunderbird"
|
Thunderbird%20Launcher.applescript
|
set x to the name of every process
|
Thunderbird%20Launcher.applescript
|
if "Thunderbird" is not in x then
|
Thunderbird%20Launcher.applescript
|
doUnmountIfMounted(diskname) of me
|
Thunderbird%20Launcher.applescript
|
tell application "Thunderbird Launcher" to quit
|
Thunderbird%20Launcher.applescript
|
on doUnmountIfMounted(diskname)
|
Thunderbird%20Launcher.applescript
|
if not (disk diskname exists) then
|
Thunderbird%20Launcher.applescript
|
set devname to "disk # unknown"
|
Thunderbird%20Launcher.applescript
|
set devname to do shell script "mount | grep " & quoted form of diskname & " | cut -f1-1 -d \" \" | cut -f3-3 -d \"/\""
|
Thunderbird%20Launcher.applescript
|
do shell script ("hdiutil unmount /Volumes/" & quoted form of diskname & " -force")
|
Thunderbird%20Launcher.applescript
|
do shell script ("hdiutil detach " & devname & " -force")
|
Thunderbird%20Launcher.applescript
|
tell me to display dialog "Error " & errNum & ": " & errText & ¬
|
Thunderbird%20Launcher.applescript
|
" (" & "volName = " & diskname & "; devname = " & devname & ")." buttons {"OK"} default button {"OK"} with icon caution
|
Thunderbird%20Launcher.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.