• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
BBEdit to Entourage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BBEdit to Entourage


  • Subject: BBEdit to Entourage
  • From: phildobbin <email@hidden>
  • Date: Fri, 26 Sep 2003 21:08:21 +0100

Hi, all.

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).

============================================================

set ret_text to button returned of (display dialog "Attach to new or current
message?" buttons {"New", "Current", "Cancel"} default button "New")

if ret_text is "New" then
tell application "BBEdit"
set the_file to file of window 1
end tell
tell application "Microsoft Entourage"
make new message window
make new enclosure at end of window 1 with properties
{file:the_file}
activate
end tell
end if

if ret_text is "Current" then
tell application "BBEdit"
set the_file to file of window 1
end tell
tell application "Microsoft Entourage"
set current_message to first message window

make new enclosures at end of current_message with properties
{file:the_file}

set index of current_message to 1
activate
end tell
end if

=================================================================

Regards,

Phil.
--
'Tis a far better place I go to. Although, I admit, this one has had its
moments.
-- Anon.
_______________________________________________
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.

  • Follow-Ups:
    • Re: BBEdit to Entourage
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Usage of OPI setup in Quark
  • Next by Date: Re: Handler defies logic
  • Previous by thread: Re: UI Scriptibility of Cocoa
  • Next by thread: Re: BBEdit to Entourage
  • Index(es):
    • Date
    • Thread