• 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
Script doesn't work in Leopard anymore...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script doesn't work in Leopard anymore...


  • Subject: Script doesn't work in Leopard anymore...
  • From: "J. Huisman" <email@hidden>
  • Date: Fri, 28 Dec 2007 19:55:17 +0100

Dear experts,

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
tell application "Mail"
set nowDate to current date
set theBody to "Uw bericht" & return & return & "Onderwerp: " & theSubject & return & "Verstuurd: " & theDate & return & return & "is ontvangen op " & nowDate & ".  


Met vriendelijke groet,
Van Hooren drukkerij en repro bv

" & return
set newMessage to make new outgoing message with properties {subject:"Ontvangstbevestiging: " & theSubject, content:theBody & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties {name:theSender, address:theAddress}
end tell
send newMessage
end tell
end repeat
end perform mail action with messages
end using terms from
 _______________________________________________
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: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: Safari Scripting Help (Newbie stuff) Complete!
  • Next by Date: Re: Modifying incoming mail subject
  • Previous by thread: Re: Safari Scripting Help (Newbie stuff) Complete!
  • Next by thread: Re: Script doesn't work in Leopard anymore...
  • Index(es):
    • Date
    • Thread