• 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
Mail won't launch Applescript as part of a rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail won't launch Applescript as part of a rule


  • Subject: Mail won't launch Applescript as part of a rule
  • From: Sunil Vyas <email@hidden>
  • Date: Wed, 19 Mar 2003 01:16:49 -0500

Does anyone know why Mail won't launch the following compiled script as
a rule?
It runs fine when I hit run in Script Editor:
tell application "Mail"
set ListOfNewMessages to {}
set ListOfMessages to every message of in mailbox
repeat with i in ListOfMessages
if (is read of i is false) and (is junk mail of i is false) then
set SenderName to (sender of i)
set ListOfNewMessages to ListOfNewMessages & SenderName
end if

end repeat
try
if listofnewmail !A {} then
say "Sunil, you have new mail from " & ListOfNewMessages
end if
end try
end tell

Thanks, Sunil
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Mail won't launch Applescript as part of a rule
      • From: cricket <email@hidden>
  • Prev by Date: Scripting Acrobat 5.0
  • Next by Date: Help..
  • Previous by thread: Re: Scripting Acrobat 5.0
  • Next by thread: Re: Mail won't launch Applescript as part of a rule
  • Index(es):
    • Date
    • Thread