Created
April 26, 2015 19:25
-
-
Save hvrauhal/70ed81093765648383d4 to your computer and use it in GitHub Desktop.
HWC Henkilökohtaiset jäsenmaksusähköpostit Mail.appia käyttäen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run argv | |
set recipientAddress to item 1 of argv | |
set refNumber to item 2 of argv | |
set theSubject to "HWC Jäsen- ja lautapaikkamaksut 2015" | |
set theContent to "Hei, | |
Helsinki Windsurfing Clubin maksut kaudelta 2015 ovat: | |
* Jäsenmaksu 20€ | |
* Lautapaikkavuokra 30€ | |
* Liittymismaksu 20€ | |
Ole hyvä ja maksa jäsenmaksusi ja mahdollinen lautapaikkavuokrasi, | |
sekä liittymismaksusi tilille FI41 5800 1320 2592 02 (OKOYFIHH) | |
käyttäen henkilökohtaista viitenumeroasi " & refNumber & ". | |
Surffiterveisin, | |
Heikki Rauhala / HWC | |
[email protected] | |
http://helsinkiwindsurfingclub.fi/ | |
https://www.facebook.com/groups/helsinkiwindsurfingclub/ | |
" | |
tell application "Mail" | |
##Create the message | |
set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true} | |
##Set a recipient | |
tell theMessage | |
make new to recipient with properties {address:recipientAddress} | |
# name:recipientName, | |
##Send the Message | |
send | |
end tell | |
end tell | |
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
osascript jasenmaksut_2015.applescript [email protected] 20159876 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment