• 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
Re: Mail Applescript Error in Mail 10.1.5 and not in 10.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail Applescript Error in Mail 10.1.5 and not in 10.2?


  • Subject: Re: Mail Applescript Error in Mail 10.1.5 and not in 10.2?
  • From: cricket <email@hidden>
  • Date: Wed, 20 Nov 2002 15:20:21 -0800

The old syntax is still in the dictionary in the message editor class, which will be removed in a future release. It's called 'OLD message editor' to indicate that it is deprecated. To make your script compatible with 10.1, you could add these two lines to your script after you've set up the outgoing message object:

set theMessageEditor to make new OLD message editor at beginning of OLD message editors
set outgoing message of theMessageEditor to newMessage

- cricket

On Wednesday, November 20, 2002, at 11:55 AM, John Cebasek wrote:

Hi All:

I wrote a little script that starts mail, attaches a document, and
fills a couple of fields. I've integrated into our product and it
works fine in 10.2.x with Mail 10.2.x. (Which is where I developed it)

Along comes the boss and tries it in 10.1.5 with 10.1.5 mail and the
script doesn't create a mail message. I run the script in 10.1.5's
script editor and I get an error NSCantCreateScriptCommandError on the
line:

set newMessage to make new outgoing message with properties
{subject:subjectvar, content:bodyvar & return & return}

I'm guessing that make "new outgoing message()" doesn't work in 10.1.5
Mail?

Is there a syntax that I can use that works between both 10.2 and
10.1.5.

Thanks in advance for your time

----->
Software Entomologist  Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
http://www.holemusic.com/speech/
_______________________________________________
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.

References: 
 >Mail Applescript Error in Mail 10.1.5 and not in 10.2? (From: John Cebasek <email@hidden>)

  • Prev by Date: Re: Just curious
  • Next by Date: Re: Dialogs (Open file (indesign) without dialog missing fonts & missing)
  • Previous by thread: Mail Applescript Error in Mail 10.1.5 and not in 10.2?
  • Next by thread: Re: Script Editor Alternative?
  • Index(es):
    • Date
    • Thread