Script to move messages to a specific folder

S

sselden13

Hello,
Here's what I'm trying to do:
1. Select one or more messages
2. Run script to move them to a specific folder, where the folder name
is included in the script
(want to avoid having to select the folder each time)

I don't know applescript so I'm hoping someone out there can help.

thanks very much in advance!!!!!!!!
 
D

deathdruid

Hello,
Here's what I'm trying to do:
1. Select one or more messages
2. Run script to move them to a specific folder, where the folder name
is included in the script
(want to avoid having to select the folder each time)

Here you go:

tell application "Microsoft Entourage"
set destFolder to folder "Archive"
set currMsgs to (current messages)
move currMsgs to destFolder
end tell

1. Paste the above into Script Editor
2. Change the name "Archive" to whatever you want
3. Save the script to ~/Documents/Microsoft User Data/Entourage Script
Menu Items, optionally with a key shortcut at the end (I use "\c A" for
Ctrl-A)

Hope this helps,
Rahul
 
S

sselden13

Thank you!!!!!!!!!!

I realized though that I don't think it will work because my folders on
exchange server. So when I run it I get an error Entourge can not find
folder "Archive".
 
S

sselden13

Excellent -- I got it working -- quicker than I thought I could. Thank
you!!! This will save me so much time keeping organized.

The only change I had to make is to add this after the folder name --
of Exchange account "Exchange account name" --

tell application "Microsoft Entourage"
set destFolder to folder "2007" of Exchange account "Exchange account
name"
set currMsgs to (current messages)
move currMsgs to destFolder
end tell
 
Top