display attachments filename in replys

A

adamm

When I used Outlook the file names of all attachments were
automatically displayed in replys. There does not seem to be an option
to do this in Entourage (or am I being stupid).
Adam.
 
B

Barry Wainwright

When I used Outlook the file names of all attachments were
automatically displayed in replys. There does not seem to be an option
to do this in Entourage (or am I being stupid).
Adam.

The script below will put a tag line n the message body relating to
attachments to the message. Is this what you wanted?

Save the script as a compiled script & put it in the ŒEntourage Script Menu
Items¹ folder in your ŒMicrosoft User Data¹ folder. The script can be
manually run from the menu.

This URL should load the script into Script Editor:
http://tinyurl.com/44pko

If it doesn¹t, copy it from here:

-- Name Attachments 21 Sep 2002
-- A script for Microsoft Entourage by Barry Wainwright
-- <mailto:barry@barryw,net>

tell application "Microsoft Entourage"
if class of window 1 is draft news window or class of window 1 is draft
window then
tell window 1
try
set thenames to name of every attachment
on error
return -99 -- silent exit
end try
if (count thenames) > 1 then
set messageText to return & "Files attached: "
repeat with aName in thenames
set messageText to messageText & return & tab & "<" &
aName & ">"
end repeat
set messageText to messageText & return & return
else if (count thenames) = 1 then
set messageText to return & "File attached: " & "<" &
thenames & ">" & return & return
end if
set selection to messageText
end tell
else
display dialog "This script will only work when a draft message
window is open" with icon stop buttons {"Exit Script"} default button 1
end if
end tell
 
A

adamm

Barry,

Thanks for this but your link "http://tinyurl.com/44pko" does not work
for me also script editor wont compile the pasted script because of
syntax error "Expected expression, property or key form, etc. but found
"then". Could correct this for me as I know zilch about script.
 
B

Barry Wainwright

Barry,

Thanks for this but your link "http://tinyurl.com/44pko" does not work
for me also script editor wont compile the pasted script because of
syntax error "Expected expression, property or key form, etc. but found
"then". Could correct this for me as I know zilch about script.

The url is working OK, but you need to be online to access it.

Here is the script again:

-- Name Attachments 21 Sep 2002
-- A script for Microsoft Entourage by Barry Wainwright
-- <mailto:barry@barryw,net>

tell application "Microsoft Entourage"
if class of window 1 is draft news window or class of window 1 is draft
window then
tell window 1
try
set thenames to name of every attachment
on error
return -99 -- silent exit
end try
if (count thenames) > 1 then
set messageText to return & "Files attached: "
repeat with aName in thenames
set messageText to messageText & return & tab & "<" &
aName & ">"
end repeat
set messageText to messageText & return & return
else if (count thenames) = 1 then
set messageText to return & "File attached: " & "<" &
thenames & ">" & return & return
end if
set selection to messageText
end tell
else
display dialog "This script will only work when a draft message
window is open" with icon stop buttons {"Exit Script"} default button 1
end if
end tell

Between the Œtell¹ & Œend tell¹ there should be 22 lines ­ watch out for
false line wraps introduced through the list server
 
A

adamm

I have removed the false line wraps but only have 21 lines between the
Œtell¹ & Œend tell¹. The sript compiles OK but attachment filenames
still dont appear in the message body. Do you want to send me the
script file direct to [email protected]


Thanks for this but your link "http://tinyurl.com/44pko" gives me the
following error:
Cannot go to
"applescript://com.apple.scripteditor?action=new&script=...22%7D%20default%20button%201%0D%09end%20if%0Dend%20tell",
because Mac OS X doesn't recognize addresses starting with
"applescript:".
 
A

adamm

Barry,
Just figured the scripts dont run automatically and I need to run the
script from the menu each time. IT WORKS!!!
Thanks for your help.
Adam.
 
D

Darryl Zurn

Thanks for the script, Barry. I did have to put the cursor right where I
wanted the attachment list to show up, but after I figured that out it works
great!

(To identify an attachment that¹s dropped into an HTML message, I found I
can add the file as an attachment, run the script to identify it, then
delete attachments and drop the file back into the HMTL area.)

Thanks for a really useful script, Barry, as well as all the other great
help you offer up on a daily basis here!

Darryl Zurn


The script below will put a tag line n the message body relating to
attachments to the message. Is this what you wanted?

Save the script as a compiled script & put it in the ŒEntourage Script Menu
Items¹ folder in your ŒMicrosoft User Data¹ folder. The script can be manually
run from the menu.

This URL should load the script into Script Editor:
http://tinyurl.com/44pko

If it doesn¹t, copy it from here:

-- Name Attachments 21 Sep 2002
-- A script for Microsoft Entourage by Barry Wainwright
-- <mailto:barry@barryw,net>
....
 
H

Hannes du Plessis

Hi Barry

Very useful script indeed, one that might be tweaked to suit our needs. When
we save emails in our company we save it in text format (since we burnt our
fingers saving it in Outlook format before). It would be most useful to be
able to insert what files were attached to the mail, that we can find it
elsewhere on the drive.

We use a script to save as text any selected emails, but not knowing
anything about scripting I wonder if it is possible to combine scripts to
save selected emails as text and include a tag stating what was attached to
it (if anything).

Or is this too big an ask of Entourage?

Hannes
 
Top