Re: Talking to IMAP folder in Entourage
Re: Talking to IMAP folder in Entourage
- Subject: Re: Talking to IMAP folder in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 06 Apr 2010 09:41:23 -0700
- Thread-topic: Talking to IMAP folder in Entourage
Title: Re: Talking to IMAP folder in Entourage
- Are you certain it's a top-level folder, not a subfolder of the Inbox?
- 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.)
- Did you spell "test mailbox" the same way in Entourage and in AppleScript?
- 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.)
--
Paul Berkowitz
From: Beatrix Willius <email@hidden>
Date: Tue, 6 Apr 2010 17:55:42 +0200
To: AppleScript-Users <email@hidden>
Subject: Re: Talking to IMAP folder in Entourage
I don't get it. This time the code is with real data
tell application "Microsoft Entourage"
set theFolder to folder "test mailbox" of IMAP account 2
end tell
results in "Microsoft Entourage got an error: Can’t get folder "test mailbox" of IMAP account id 2." "test mailbox" really exists.
On 06.04.2010, at 17:16, Paul Berkowitz wrote:
folder "xyz" of IMAP inbox folder of IMAP account "Its Name"
or
folder "xyz" of IMAP account 1
etc., depending on its folder hierarchy, and the various ways of referring to the account. It's all in the dictionary.
Mit freundlichen Grüßen/Regards
Trixi Willius
http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.
_______________________________________________
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
_______________________________________________
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