>*This message was transferred with a trial version of CommuniGate(tm) Pro*
>Try this.
>
><applescript>
>tell application "PowerMail 5.1.1a1"
>       set theMessages to current messages
>       repeat with msg in theMessages
>               --set s to source of msg
>               set s to content of msg
>   tell application "BBEdit"
>                       make new window
>                       set contents of front window to s
>               end tell
>       end repeat
>end tell
></applescript>
>
>If you select all the messages and run the script you will get a BBEdit
>window with each message's content. If you want to append the content
>together you should put all the content into s before the BBEdit part.
>
>-- 
>Andy Fragen

Thank you Andy, Cheshirekat, Ben and Marco

First of all, the Answers to Cheshirekat:

>What do you mean by automatically? 
Just as a script would do: in a glimpse without no other intervention

>Do you want to select the folder, then activate the script to act on all
messages in only that folder?
Yes, and eventually only the selected messages in that folder

>Do you want to paste each message into a BBEdit document, or all
>the selected messages into one new BBEdit document, or all the messages
>into an already open BBEdit document? There are a lot of ways to
>accomplish what you want to do with AppleScripts
All the selected messages into one new BBEdit document

I've tried the script above, but I can't get Bbedit to open a new window.
I changed the syntax with 
tell application "BBEdit Lite 6.1 for OS X"
I've got a trial version of Bbedit which is expired, so it wont open.
Am I doing anything wrong?
Another curious thing: where are PowerMail's Scripts stored?

Thank you all
Giovanni




Reply via email to