Re: Mail.app script help needed
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