I created an email script in AppleScript, but it is not working.(Read below as well)
I created an email script in AppleScript.
Here is the code:
set recipentNamePrompt to display dialog "What is the name of the recipient?" default answer "Cookie Monster"
set recipientAddressPrompt to display dialog "What is the email of the recipient?" default answer "[email protected]"
set subjectPrompt to display dialog "What is the subject of the email?" default answer "Change Cookie Recipe"
set contentPrompt to display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!"
set recipientName to recipentNamePrompt
set recipientAddress to recipientAddressPrompt
set theSubject to subjectPrompt
set theContent to contentPrompt
--Mail Tell Block
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 {name:recipientName, address:recipientAddress}
--Send the Message
send
end tell
end tell
But when I type in my info, the created message is written in Chinese. Someone please help me!
The result of a display dialog is a record that contains the properties button returned, text returned (if default answer is used), and gave up (if giving up after is used). Since you are passing the entire record to the Mail fields, it looks like it is getting interpreted as some Unicode text. The solution is to get rid of your intermediate prompt variables and just get the desired property (the text returned), for example:
set recipientName to text returned of (display dialog "What is the name of the recipient?" default answer "Cookie Monster")
set recipientAddress to text returned of (display dialog "What is the email of the recipient?" default answer "[email protected]")
set theSubject to text returned of (display dialog "What is the subject of the email?" default answer "Change Cookie Recipe")
set theContent to text returned of (display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!")
Similar Messages
-
I have recently created a website for my family's business. When we bought the Macbook the guy in Apple said the best way to send an email campaign to our mailing list was to publish a hidden page, find it in the browser on Safari, then share it via email, so that is what I do. For most of my customers this works fine, however I have a number of people each month who cannot see any of the content of the email. I have added an 'If you can't see this email properly...' link at the top of the page, with no shapes or images etc near it, but even that does not appear for them.
I am a self-taught novice unfortunately, so haven't a clue what the problem is. I'm not sure of the operating system, but we bought the Macbook in May and it has all the recent updates installed. I have just had a new baby so can't get into the store fdor a one-to-one, so if anyone could explain why this happens / what I can do about it, I would be very grateful! Thanks!If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
This one will create the form, database and send out the emails...
http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
"I may receive some form of compensation, financial or otherwise, from my recommendation or link." -
My camera and iBooks have stopped sending emails, the function and ability to create the email is still there but my iPad will no loner send the email or even store a draft on my account to suggest the email was ever written; please help I really need this functionality.
Can you send any emails at all indicating that the mail app is working? Did you try any basic stuff yet?
Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
Close those affected apps and restart the iPad. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
HT204053 My email address was verify, but it will not verify icloud ?
My email address was verify, but it will not verify for iCloud?
If the messages says that it is a valid Apple ID but not an iCloud ID, it's becaure you are trying to create an iCloud account on a PC. You can only create the account on an iOS device or Mac (running Lion or Mountain Lion). After creating the account, you can then sign in with the ID on your PC, but you can't create the account on a PC.
-
TS3276 I created a new mailbox in mail, but it does not show up in my list
I created a new mailbox in mail, but it does not show up in my list of mailboxes. Now I cannot change it or delete it. I keep getting an error message that I must resolve conflicts, but it won't let me change anything. Can you help me fix this?
Found it, thanks to the answer Vixen-of-Venus gave - thanks.
-
Dear sirs,
Could you please help me on my problem with my apple ID
I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
My account have 50$ and still didn't buy anythingYou need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(100546) -
I changed my email because I deleted the other one and I also forgot my security answers so I send a reset to my new email but it's not working it's going to the old one how do I send it to my new email
You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
(91761) -
I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration
Contact the email provider and obtain the correct setup information.
-
I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client
weblogic credentials are different.
and using thode credentials I am able to login to weblogic server
the users I am talking about is the process users defined in realm.
in realm those users are defined as Default authenticator and OID authenticator.
and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g -
I am creating input tax code in FTXP,BUT i am not getting tax code whil
Dear EXpert,
I am creating input tax code in FTXP,BUT i am not getting tax code while doing PO? what is the reason?
thanks& Regards,
saran.Hi Saravana
Please make sure you have done all the following settings in SPRO.
SPRO>Basic Settings->Taxes->
1)Define Tax determination rule
2)define regional codes
3)Assign Delivering Plants For Tax Determination
4)Define Tax Relevancy Of Master Records
5)Maintain Sales Tax Identification Number Determination
regards
Yogesh -
I delete an email on my iphone but it does not delete the same email on my laptop. Any suggestions to help?
Yes, There are actually 4 calendars listed under my iCloud account. The listing on my iPhone is exactly like the listing on my iPad. The iPad is updating but not the iPhone. It's odd because the iPhone did work at one time so I'm assuming it some setting I've changed. I have checked and double checked that the settings on both devices are the same. Do you have any other ideas?
Thanks for your help. -
I just got my macbook air and i thought i'd set up my email but it is not working and I do not understand anything on the website. I have a gmail account if that helps.
The warranty entitles you to complimentary phone support for the first 90 days of ownership.
-
Waht is the email address to report a refund. I paid monthly subscription for Fring but it does not work and Fring support asked me to report this to Apple support? I'm not aable to report this issue to the right people??
For issues with an iTunes Store purchase, email:
http://apple.com/support/itunes/contact/ -
I already had verify an alternate email address but it seems not working for changing my security question
<Email Edited by Host>An alternate email address is not the same thing as a rescue email address.
If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551 -
I forgot my security questions for my apple ID I've tried to send a Rescue email for my Apple idea but it did not work
Account Security Team (AST)
Check the AppleCare number for your country here:
http://support.apple.com/kb/HE57
Call them up, and let them know you would like to be transferred to the Account Security Team.
Maybe you are looking for
-
Won't print more than 1 copy at a time 7525 wireless or connoted with my MAC
I am able to print fine from my MAC wirelessly. I just cannot print more than one copy at a time. HELP!!!
-
Has anyone gotten a message when trying to access their itunes that says this version of Itunes has not been correctly localized for this language. Please run the English version
-
Am now getting this message when i try to call up itunes: this copy of itunes is corrupted or not installed correctly. please reinstall itunes. updated itunes about a week ago and have used it without problems ever since. any way of reinstalling with
-
How to write a function to move MC
I am not really experienced in AS. I would like to write a simple function which would move a MC on _x or _y coordinates, both ways - left to right, right to left, up to down, down to up. Than I want to call this function whenever I need to move some
-
Bring Back the Records From R/3 To BW
Hi Friends We have a Generic data source and define ERDAT as Delta Field of type Calender day.after data coming to BW,we delete some records by using routine.we bring back these records from R/3 to BW. For Example : 01.03.2006 and 02.03.2006 records