I have the following script make the subject of my message the same as
the attachment's name.

However, if an attachment's name is file_for_meeting.pdf, I would like
the subject to read:

 file for meeting
without the underscores or the .pdf

I think I know the syntax for replacing the underscore with spaces, and
how to delete ".pdf", but i'm not sure where in the script they should
go.

can I get a pointer?

The script as it is now:

tell application "Microsoft Entourage"
        tell window 1
                try
                        set theNames to name of every attachment
                on error
                        return -99 -- silent exit
                end try
                try
                        set the subject to theNames
                end try
        end tell
end tell
-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to