Re: assistance with script
Re: assistance with script
- Subject: Re: assistance with script
- From: Bob Damm <email@hidden>
- Date: Tue, 11 Mar 2003 10:03:40 +1100
Hello Ross,
This is why I joined this list.
Assuming you have Microsoft Entourage, you could do this to be simple:
Tell application "Microsoft Entourage"
connect Pop Account 1 --for POP Account 1
--connect IMAP Account 1 --for IMAP account 1
--connect Hotmail Account 1 --for Hotmail account 1
End tell
Or, the script I wrote last night and am currently still working on...
tell application "Microsoft Entourage"
activate
try
connect to POP account 1 --get new mail in my pop account
end try
set MyFOlders to every folder
set AllCount to 0 as number --running totals of unread messages, reset
repeat with MyFolder in MyFOlders
set MyCount to the (number of (messages in MyFolder whose read
status is untouched)) as number --How many unread in this folder?
set AllCount to AllCount + MyCount --Running total of unread so far
end repeat
if AllCount = 0 then
quit --we have nothing to show so get lost
else
display dialog (AllCount as string) & " new messages" --display a
little dialog
end if
end tell
On 11/3/03 9:37 AM, "Ross Hunter" <email@hidden> wrote:
>
I have just recently made my first attempt to write some AppleScript
>
code to check email when the computer starts up in the morning. While
>
the script works in a manner of speaking, it needs some help.
>
>
Is this list the place to post the script and ask for guidance?
>
>
Ross Hunter
>
Orange, Virginia
>
_______________________________________________
>
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.
_______________________________________________
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.