W
willmark
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/micr...e+++Applescript&rnum=4&hl=en#c155a3ba685a1bf8
Here is the script thus far:
tell application "Microsoft Entourage"
activate
tell application "Microsoft Entourage"
set def to default mail account
if def = "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 ¬
"Pick a mailbox to export" without multiple selections allowed
if ((count of messages of folder named thisFolder) = 0) then
display dialog "'" & (thisFolder as string) & ¬
"' 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
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/micr...e+++Applescript&rnum=4&hl=en#c155a3ba685a1bf8
Here is the script thus far:
tell application "Microsoft Entourage"
activate
tell application "Microsoft Entourage"
set def to default mail account
if def = "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 ¬
"Pick a mailbox to export" without multiple selections allowed
if ((count of messages of folder named thisFolder) = 0) then
display dialog "'" & (thisFolder as string) & ¬
"' 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