Accessing Exchange InBox in Entourage
Accessing Exchange InBox in Entourage
- Subject: Accessing Exchange InBox in Entourage
- From: Tim Cimbura <email@hidden>
- Date: Fri, 4 Nov 2005 12:42:16 -0700
I'm creating a script that looks at messages in Entourage and creates records in a FileMaker database after filtering them.
I'm not able to get the syntax correct for accessing the InBox for an Exchange account. Can anyone help?
Here's what I've got so far...
tell application "Microsoft Entourage"
set theList to every message of folder "InBox" -- This line works fine
-- The following line fails to work
-- Microsoft Entourage got an error: Can't get every message of inbox folder of Exchange account id 1.
set theList to every message of (the inbox folder of Exchange account id 1)
repeat with aMsg in theList
set thisSubject to (subject of aMsg) as string
if thisSubject contains ":" then
tell me to display dialog thisSubject
set thisText to (content of aMsg) as string
tell application "FileMaker Pro Advanced"
tell database "TestMe"
set thisRecord to create new record of table "TestMe"
set cell "Text" of thisRecord to thisText
set cell "Subject" of thisRecord to thisSubject
end tell
end tell
end if
end repeat
end tell
--------------------------
Tim Cimbura
16488 - 83rd Ave N
Maple Grove, MN 55311-1846
763-420-7083
612-298-0086 Mobile
email@hidden
http://www.cimbura.com
_______________________________________________
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