In appleScript this can be automated using the "print" command from the Outlook AppleScript Dictionary.
The properties to be associated with this command are "as pdf:true" and "path name: URL to the destination file".
One would expect that this would save the current message as a pdf on a predefined location (e.g. a folder on the Desktop), but this is not working.
For the sake to completeness, here is the basic script as an example:
tell application "Microsoft Outlook"
set myMessage to item 1 of (get current messages)
tell myMessage
print myMessage with properties {as pdf:true, path name:"file:///MAC HD/Users/BDJ/Desktop/FMTemp/test.pdf"}
end tell
end tell
Unfortunately, this script is sending the message to the default printer (our office printer) and we get a printed copy.
Is there anyone who can clarify?
Is it a mistake in the script, or is there a problem with this command?
Thank you.
Bernard.
Recent Comments