OK I have a fairly elaborate Apple script going for exporting emails
from Entourage to a specific hard coded folder on my hard drive.
The problem I am running into and cannot seem to solve is this: My
script can only select the default folders of "Folders on My
Computers" rather than the Exchange account that I have. All else in
the rest of the scipt which is now quite lengthy, works exactly the
way I want it to except this part. Can anyone shed light on what I am
doing wrong?
Disclaimer: I did not write all of this rather I gathered bits and
pieces and wrote the parts I needed to make it work for me.
Specifically Paul's advice in this thread has proven most valuable:
http://groups.google.com/group/microsoft.public.mac.office.entourage/browse=
_frm/thread/3d09a8462c1f314d/c155a3ba685a1bf8?lnk=3Dgst&q=3Dselect+a+specif=
ic+email+account+in+Entourage+%2B+Applescript&rnum=3D4&hl=3Den#c155a3ba685a=
1bf8
Here is the script thus far:
tell application "Microsoft Entourage"
activate
tell application "Microsoft Entourage"
set def to default mail account
if def =3D "Folders on My Computer" then
set account of window 1 to Exchange account "<User Name>"
end if
end tell
set mailFolders to {} as list
set mailFolders to Exchange account "<User Name>"
set thisFolder to choose from list mailFolders with prompt =AC
"Pick a mailbox to export" without multiple selections allowed
if ((count of messages of folder named thisFolder) =3D 0) then
display dialog "'" & (thisFolder as string) & =AC
"' contains no emails" buttons "OK" default button 1
Everything after the if ((count works fine. However when it runs the
script still selects the email in "Folders on My Computer" Rather then
the Exchange Account
TIA,
Mark