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

Re: Mail.app script help needed


  • Subject: Re: Mail.app script help needed
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 18 Mar 2005 08:41:30 -0700

On Mar 18, 2005, at 8:22 AM, deivy petrescu wrote:

set this_account to contents of this_account --> major change

That always gets me; I really should know better, and I always forget to check for that when I encounter an error inside a loop.


Thanks.

Here's the final script:

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


-- Michelle

--
Peter pull at St. Taffy's tonight! (Or is it the other way around?)

_______________________________________________
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


References: 
 >Mail.app script help needed (From: Michelle Steiner <email@hidden>)
 >Re: Mail.app script help needed (From: deivy petrescu <email@hidden>)

  • Prev by Date: Re: Mail.app script help needed
  • Next by Date: Re: Round a number towards zero!
  • Previous by thread: Re: Mail.app script help needed
  • Next by thread: One for the experts: Serial Number of computer using Applescript Studio
  • Index(es):
    • Date
    • Thread