-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartup.applescript
36 lines (33 loc) · 1.15 KB
/
startup.applescript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repeat with i from 1 to 5
try
do shell script "ping -o www.apple.com"
exit repeat
on error
delay 150
if i = 5 then
error number -128
end if
end try
end repeat
do shell script "say Good morning, small bastard!"
do shell script "sudo ./Users/carlamaris/Downloads/ImageSnap-v0.2.5/imagesnap"
property theMessageSubject : "Hey, Carla Maris"
property theMessageContent : "Hope your day is as beautiful as you are ;)"
property theRecipient1 : "[email protected]"
property theRecipient2 : "[email protected]"
property theMessageAttachment : "/snapshot.jpg"
tell application "Mail"
activate
set theMessage to make new outgoing message with properties {visible:true, subject:theMessageSubject, content:theMessageContent & return & return}
tell theMessage
set visible to true
set sender to "laptop"
make new recipient at end of to recipients with properties {address:theRecipient1}
make new recipient at end of to recipients with properties {address:theRecipient2}
make new attachment with properties {file name:theMessageAttachment} at after the last word of the last paragraph
end tell
delay 5
send theMessage
delay 6
quit
end tell