Re: Talking to IMAP folder in Entourage
Re: Talking to IMAP folder in Entourage
- Subject: Re: Talking to IMAP folder in Entourage
- From: Beatrix Willius <email@hidden>
- Date: Tue, 6 Apr 2010 19:24:04 +0200
Hi Paul,
thanks for taking the time to answer. On 06.04.2010, at 18:41, Paul Berkowitz wrote: - Are you certain it's a top-level folder, not a subfolder of the Inbox?
Yes. - What makes you certain that the IMAP account it's in is actually what Entourage AppleScript knows as 'IMAP account 2'? Perhaps it's looking at a different IMAP account and can't find a folder called "test mailbox" there? You're better off using the name (as it appears in Tools/Accounts) until you know for sure. Also, IMAP account 2 may not even be the same as IMAP account id 2, although that does seem to be the case here. (The index number 2 will refer to whichever of your current IMAP accounts was created second. The id number will remain permanently, even if the earlier account is deleted, at least until such time as you rebuild your Entourage database, at which point you'd have to check. You will likely never have to rebuild your database.)
Yes, I'm certain. - Did you spell "test mailbox" the same way in Entourage and in AppleScript?
Quite so. - Is "test mailbox" a genuine IMAP folder that you are subscribed to? I.e. does it appear with an IMAP folder icon (green strip at left attached to blue folder) in the Folder List in the left panel? If you created it in the main window by selecting the account (or IMAP inbox) and New Folder, and it just shows up in the main window with a grayed-out icon (not yellow envelope) then it's unsubscribed, non-functioning, and Entourage AppleScript doesn't know about it. Select it in the main window, select Edit menu/Subscribe. Now it will be functioning, and the script should work. (It's easier to create a subfolder directly in the Folder List using the contextual menu with control-click or right-click, pick New Subfolder. Then it will immediately be a functioning, subscribed folder. in the Folder List. But for creating top-level IMAP folders, if your IMAP account allows this (not all do), you do have to do it the longer way, in the main window, then Subscribe.)
Also yes. I can see the mails.
I've tried some variations:
tell application "Microsoft Entourage" set theFolders to get folders of IMAP account 2 --gives all folders set theAccount to IMAP account "Imap moth" -- this is the id 2 set theFolder2 to folder 9 of theAccount -- this is "test mailbox set theName to name of theFolder2 - really "test milbox" set theFolder to folder "test mailbox" of IMAP inbox folder of IMAP account "Imap moth" --doesn't work end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden