i'm new programming , i'm trying create cocoa-applescript application text view. idea user writes down there comments , clicks send. sends me email there comments.
think in normal apple script
set the_dialog "enter comments here"
set email text returned of (display dialog the_dialog default answer "" buttons {"cancel", "ok"} default button 2)
tell application "mail"
set themessage make new outgoing message properties {visible:false, subject:"my subject", content:email}
tell themessage
make new recipient @ end of recipients properties {name:"example", address:"example@example.co.uk"}
send themessage
end tell
end tell
how text view
what have got far? connect text view outlet in script, can use various methods such nstext's string() characters of text. rest of mail scripting same.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment