Re: BBEdit to Entourage
Re: BBEdit to Entourage
- Subject: Re: BBEdit to Entourage
- From: phildobbin <email@hidden>
- Date: Fri, 26 Sep 2003 22:06:12 +0100
On 26/9/03 21:40, "Paul Berkowitz" <email@hidden> wrote:
>
On 9/26/03 1:08 PM, "phildobbin" <email@hidden> wrote:
>
>
> I'm trying to modify a script that sends the text in a BBEdit document to a
>
> Entourage X message which was originally created for BBEdit -> Mailsmith
>
> (unfortunately I can't remember who authored the script so apologies to
>
> whoever wrote it :)
>
>
>
> Unfortunately Entourage sends an error saying it can't make a message window
>
> and being the planet's worst scripter I can't figure out the problem. Any
>
> help appreciated (this on 10.2.6).
>
>
You just need top be a good reader of the Dictionary
[...]
My worst failing :)
[snip a very exact, concise and extremely helpful breakdown of Entourage's
scripting properties purely for brevities sake]
>
tell application "Microsoft Entourage"
>
>
try
>
set current_message to first draft window
>
make new attachment at current_message with properties
>
{file:the_file}
>
select current_message
>
>
on error -- ? or beep, or whatever
>
set current_message to make new draft window with properties
>
{attachment:{file:the_file}} -- will make in the front
>
end try
>
activate
>
end tell
Thanks a lot for your help, Paul. Very much appreciated.
Regards,
Phil.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.