Skip to content

Instantly share code, notes, and snippets.

@hvrauhal
Created April 26, 2015 19:25
Show Gist options
  • Save hvrauhal/70ed81093765648383d4 to your computer and use it in GitHub Desktop.
Save hvrauhal/70ed81093765648383d4 to your computer and use it in GitHub Desktop.
HWC Henkilökohtaiset jäsenmaksusähköpostit Mail.appia käyttäen
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
hwc@helsinkiwindsurfingclub.fi
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
#!/bin/bash
osascript jasenmaksut_2015.applescript testi.surffari@example.com 20159876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment