• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 7 Jan 2008 12:14:35 -0800

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

  • Follow-Ups:
    • Re: Script doesn't work in Leopard anymore...
      • From: "J. Huisman" <email@hidden>
  • Prev by Date: Re: Finderscript works on 10.5, but not on 10.4?
  • Next by Date: Re: Check if a file exists fails
  • Previous by thread: Re: Script doesn't work in Leopard anymore...
  • Next by thread: Re: Script doesn't work in Leopard anymore...
  • Index(es):
    • Date
    • Thread