I remember downloading a AppleScript application from the Web called Send
PDF via Entourage. This script printed the PDF file, then immediately sent
it to Entourage as an attachment called ³Print Job.pdf².
This was written under Panther, where PDF Workflows were very few. With the
introduction of Automator in Tiger, Apple has changed all of these to
Automator Workflows, including the Mail as PDF; however, since Office 2004
does not offer any Automator actions, using the Mail As PDF will launch Mail
(even if not set as default mail client).
I cannot remember where I found the script; all I remember is I found it via
a Macworld article on ³PDF Services². Here is the code for the app. Paste
this in Script Editor, save it as an Application in your
~/Users/username/library/PDF Services folder. (Also, if you are the original
author, PLEASE let me know, so credit can be given):
on open dropped_item
set this_file to item 1 of dropped_item
tell application "Finder"
activate
set the file_name to the name of this_file
set the parent_folder to the container of this_file
repeat
display dialog "Enter a name for file:" default answer file_name
set this_name to the text returned of the result
if this_name is not "" then
if this_name does not end with ".pdf" then
set this_name to this_name & ".pdf"
end if
exit repeat
end if
end repeat
set the name of this_file to this_name
set this_file to (item this_name of the parent_folder) as alias
end tell
tell application "Microsoft Entourage"
activate
set the new_message to (make new draft window with properties
{attachment:this_file})
end tell
end open