• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script doesn't work in Leopard anymore...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script doesn't work in Leopard anymore...


  • Subject: Re: Script doesn't work in Leopard anymore...
  • From: "J. Huisman" <email@hidden>
  • Date: Mon, 7 Jan 2008 21:49:18 +0100

Hello Chris

Thanks for your response

You're right about the 'message', I'm afraid I've copied the wrong script in my mail. 
But the one giving the problems has the proper 'msg' in the script. and ran without much problems. It sometimes chrashed when there were too many mails in one time but most of the time it worked like a charm.

Do you have any idea to make this bogusscript run like a 'pro' again? Wouldn't it be a nice extra for the Mail app.?

Thanks,

Op 7 jan 2008, om 21:14 heeft Christopher Nebel het volgende geschreven:

On Dec 28, 2007, at 10:55 AM, J. Huisman wrote:

I used to run an Applescript  in Mail on a mail-rule to send an auto-reply-form to customers so they knew their mail was received and their order would be processed.
Ever since I've updated to Leopard, this script doesnt work anymore. It's not broken, no crashing software, it just doesn't wprk anymore. Me and my customers really relied on this script. I'd appreciate it if someone could take a look at this script and maybe even fix it and really help me out so I can run this again, even in Leopard. My knowledge of Applescipt is very minor eventhough I love to use it...
If it's not fixable, could somebody help me out with an alternative script? 

Thanks for your help.


Heres the script that worked perfect in Panther:

using terms from application "Mail"
on perform mail action with messages selectedMsgs
repeat with msg in selectedMsgs
set theSubject to subject of msg
set theSender to extract name from sender of msg
set theAddress to extract address from sender of msg
set theDate to date sent of message

I'm a bit surprised that this ever worked and that you never noticed the problem, since you've probably been getting blank "Verstuurd" lines forever.  In that last quoted line, try changing "message" (which is a class) to "msg" (which is your variable.)

There are a number of things that "break" in Leopard because applications have improved error checking, and therefore will explicitly fail on bogus scripts that used to fail silently.


--Chris Nebel
AppleScript Engineering


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Script doesn't work in Leopard anymore... (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Check if a file exists fails
  • Next by Date: Re: Script doesn't work in Leopard anymore...
  • Previous by thread: Re: Script doesn't work in Leopard anymore...
  • Next by thread: How to select "Copy" from an Application's Edit Menu
  • Index(es):
    • Date
    • Thread