Title: Re: Pdf-script
The syntax for dealing with messages and attachments is different between mail & Entourage. Try this:

on open these_items
   tell application "Microsoft Entourage"
        set new_message to (make new outgoing message)
        repeat with aFile in these_items
           make new attachment at new_message with properties {file:aFile}
        end repeat
   end tell
end
open

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the Entourage FAQ pages? - Check them out:
  <http://www.entourage.mvps.org/toc.html>






From: Paul van den Hooven <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
Date: Mon, 17 Feb 2003 21:46:17 +0100
To: Entourage mac Talk <[EMAIL PROTECTED]>
Subject: Pdf-script

Hi.

I installed the OSX 10.2.4 updater and found out about the PDF workflow on the AppleScript site. Seemed kinda nice to start exploring AppleScript, so I copied the script on that page, and entered Microsoft Entourage instead of Mail. The script is:

on open these_items
   tell application "Microsoft Entourage"
        set the new_message to (make new outgoing message with properties {visible:true})
        tell the new_message
           tell content
               repeat with i from 1 to count of these_items
                   set this_file to item i of these_items
                   make new attachment with properties {filename:this_file} at before the first character
               end repeat
           end tell
       end tell
   end tell
end
open

I saved it as a compiled script.

When using the script the application I print from crashes. Is there something wrong with this script?

TIA!



-- Paul van den Hooven
OSX 10.2.4, EvX 10.1.1.

Never forget your dreams. When dreams end, legends end. And when legends end, greatness ends. (Korczak Ziolkowski)




Reply via email to