I am receiving an error message ---
error "Mail got an error: AppleEvent handler failed." number -10000 when I run the following AppleScript.
The variable theEmailAddresses contains the correct email address from the first in the group per the log command. I am new to AppleScript. The subject and body fills correctly. Any help would be appreciated.
tell application "Address Book"
set ps to every person in group "Weekly"
repeat with i from 1 to (count every person)
set theEmailAddresses to value of email of person i
log "EMail Address " & theEmailAddresses & " " & i
--delay 10
tell application "Mail"
set theNewMessage to make new outgoing message with properties {subject:"Weekly Specials", content:"Case of Oil", visible:true}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:theEmailAddresses}
--delay 15
send
end tell
--delay 10
end tell
end repeat
end tell
You should probably put it in a try statement to get a little more detail. My guess is theEmailAddress may contain unicode text or text that chokes the script (like joe blow [[email protected]]).
So one thing to try is
set theEmailAddresses to the value of (email of person i as string)
or
set theEmailAddresses to the value of (email of person i as unicode text).
You can use "say" to help debug.
set theEmailAddresses to the value of email of person i
tell me to say "class of email address is " & class of theEmailAddress as string
In general if you put
tell application "Address Book"
try
your-script-body
on error eStr number eNum partial result rList from badObj to expectedType
log eStr & " (" & eNum as string & ") " & rList as string & " " & expectedType as string
end try
end tell
After all that, though, I can tell you I get this error too and have learned to put nothing in the on error section and just keep trying to plug ahead. For example, in the sample mail rule script that Apple ships, I get about 1 of 4 of these trying to retrieve id of mail message.
Similar Messages
-
Every time i want to sign in to my account i receive the error message that i need to contact itune support
Welcome to the Apple Community.
Did you follow the instructions in the message and contact Apple, which you can do through iTunes Store Support. If Apple have asked you to contact them, then the issue can only be resolved by them. -
i have an airport extreme and my computer runs Microsoft windows XP Media Center Edition 2005. I receive an error message saying " airport requires that your computer is running windows xp sp3 or windows vista sp1 or newer"...why?
It is required to be able to connect. Download SP3 here. http://www.microsoft.com/download/en/details.aspx?id=24
I Hope I Was Able To Help You Or Solve Your Question.
Simmm
3/12/2012
If Someone Helped You, Click
"This Helped Me"
If Someone Solved Your Question, Click
"This Solved My Question" -
While send/receive email, I have received an error message "Sending of password d"?
However with same login details, I am able to login with other application.
I have changed password still the issue remains as it is.https://support.mozilla.org/en-US/kb/cannot-send-messages
-
I can not delete old icloud back up from my old phone, keep receiving an error message "this back up can not be deleted because it's in use" it is not in use that phone is long gone!
I have the same problem here and it wont let me do another back up or delete the old one.... Please help!!!! Anyone
-
i have been using Lr for years. No recent changes to my preferences on Lr4.4 or my MacBookPro. When i tried to import RAW while traveling in Vietnam, i receive this error message
"some import operations were not performed"
then there is a list of my import files with the comment "the following files were not imported because they could not be read"
yet i have been importing RAW files from this camera (Canon D5II) for several years.
Thanks in advance for your help"Could not be read" means that the destination directory, where the photos are supposed to be copied into, does not have WRITE permission.
Change your permissions on that folder. -
I recently updated my iTunes to the most recent version and I am receiving an error message when starting up iTunes: iTunes was unable to load data class information from sync services. Reconnect or try again later. (Does anyone know what this means and if it is going to cause me issues?)
http://support.apple.com/kb/TS2690?viewlocale=en_US&locale=en_US
-
A few weeks ago my computer had lost the connection to the wireless internet. I set it up again and was able to connect to the internet, however since then I've been receiving an error message "Could not find a PPPoE Server." I went back into Preferences and unchecked the PPPoE server option but the error message still pops up.
Any idea how to fix it?In the Network pane of System Prefences, do you have duplicate services on the left column? When you "set it up again", you might have duplicated a service and both (the good working one and the previous that lost connection) might be trying to connect at the same time.
-
I noticed that firefox updated last night before I shut down my computer, then when I turned it on this morning I received the error message I described above. It will not let me open firefox.
I solved the problem by reinstalling the updated version and it now works fine. Thank you for getting back to me so quickly.
-
Not very user friendly! Where is the place to report a problem!? I have been billed for an in-app purchase but not had the goods - I received an error message telling my I hadn't been charged at the time and now it is on my bill! What can I do?
You can try contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased?
FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
Hi,
my phone is in recovery mode and wont restore. instead i receive the error message 1604. i have used alternative usb cables and am at a loss. has anyone else had this problem?Hi there hstear93,
You may find the information in the article below helpful.
iOS: Not responding or does not turn on
http://support.apple.com/kb/ts3281
-Griff W. -
I set up a passcode to ensure the security of my iPhone 5 but, when I enter it on the home screen, I repeatedly receive an error message and my phone locks. Is there a way to reset the passcode when I am unable to gain access to my phone?
I figured that was the case, but I've used the same passcode for years and I can't seem to figure out how I managed to screw it up when I set up my phone. Without being able to access my phone for a restore, how would I accomplish this? iTunes? Thank you very much for you help!
-
I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?
Same issue here, previously did work perfectly
-
Hi I have a question about shooting in Raw with my Canon EOS 6d.
I'm in the process of learning photography and my goal was to start shooting in raw.
I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The photoshop camera raw plug-in did not recognize the format. If these files are from a camera, you may need to update your camera raw plug in."
In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6. My version of CS5 is 6.0.0.205. Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
I'd appreciate any advise on which route to go and how upgrade and what it may cost. THANKS in advance!
HeatherIn researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6.
That is correct. Your camera was first supported by Camera Raw 7.3. Camera Raw 7.3 will not work with CS5. You need CS6 or CC.
Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
I'd appreciate any advise on which route to go and how upgrade and what it may cost.
It all depends on your preferred workflow and your budget.
Using the DNG converter is free. There is no monthly fee. You use the converter to convert all Raw files from the EOS 6D to DNGs then edit the DNGs in CS5. That's an extra step every time - every photo. Some people don't like the extra step. Others don't mind.
Camera raw, DNG | Adobe Photoshop CC
Or you can upgrade to CS6 (non-Cloud) and pay the upgrade fee
Creative Suite 6
Or join the Cloud and pay the monthly fee
Or join the Photoshop Photography Program (US9.99/month) and get PS CC+LR -
I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?
theres no - in "itunes" its all one word
try right clicking and running itunes as adminstrator or try on a different user account
Maybe you are looking for
-
I am getting the following error when running a report in Crystal Reports 2008: 'Database Connection Error: '42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to datetime. [Database Vendor Code: 8114 ]' I can run
-
Windows Integrated Authentication on an ABAP data source
Dear Experts, I have to implement Windows Integrated Authentication in my portal. By using Kerberos & SPNEGO, we can implement very easily if portal user id & windows (ADS) user id is same. But my scenario is windows id & portal id is different & dat
-
Hi all, is there any tool to upgrade from HE to HFM? It's a very simple HE application (very flat) Thanks in advance
-
How to automatically open date/time field (calendar) when end user tabs to that field
Have two calendar fields...calendar 1 and calendar two Is there a way to have the calendars automatcally open when field is either clicked on or tabbed to? thanks
-
Reallocation of void check. to another payment document
Hi Friends, I have an isse. Our customer has allocated the check to wrong payment document and she wants to reverse the document and allocate the same check number to another payment document number. when i reverse the payment document sysytm is tell