• 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.app script help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail.app script help needed


  • Subject: Mail.app script help needed
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 18 Mar 2005 00:55:33 -0700

Here is the script:

tell application ""
set to (name of accounts)
end tell
set to (choose from list () with multiple selections allowed without empty selection allowed)
if is not false then
tell application ""
set include when getting new mail of every account to false
repeat with in
set (include when getting new mail of account ) to true
end repeat
end tell
end if


This line errors:
set (include when getting new mail of account ) to true

Here is the error:

set include when getting new mail of account "email@hidden" to true
Mail got an error: NSReceiverEvaluationScriptError: 4"


The "every account" line works, but the line that sets only one account fails.

-- Michelle

--
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mail.app script help needed
      • From: deivy petrescu <email@hidden>
  • Prev by Date: Re: Escape character problem
  • Next by Date: Re: iCal organization with dates & events & lists....
  • Previous by thread: Re: Image event scripting
  • Next by thread: Re: Mail.app script help needed
  • Index(es):
    • Date
    • Thread