• 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: AOL 5.0 script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AOL 5.0 script


  • Subject: Re: AOL 5.0 script
  • From: "J.B. Stewart" <email@hidden>
  • Date: Fri, 29 Jun 2001 16:10:57 -0400

On 6/29/01 at 9:53 AM, David Jackson <email@hidden> wrote:

> Hey Everyone, yeah I'm quite new at this so maybe my first posting didn't
> make much sense. I'm trying to find out what the proper AppleScript commands
> are for (the subject - header, and the message body) in AOL 5.0. I'm not
> really sure if these are considered to be the variables or objects.
>
> This is a section from the old script for AOL 4.0, that opened a new
> message, pasted the recipients name, pasted the subject header, and the
> message body. Now with AOL 5.0 it will only paste the recipients name, then
> gets hung up on the rest of it.
>
> Any help would be much appreciated.
>
> tell application "America Online" to tell theApp
> set newMsg to make new document with properties {kind:mail}
> set newMailer to mailer of newMsg
> make new addressee at end of newMailer with properties {kind:regular,
> name:theRecipient}
> set subject of newMailer to theSubject
> set text of newMsg to theBody
> end tell
>
> Cheers,
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users

Try this one, it will work. Watch the line wrap though.

-- script
tell application "America Online"
make new document with properties {kind:mail, name:"New Email"}
set doc to result

tell first mailer of doc
set subject to "This is the subject"
make new addressee with properties {kind:regular,
name:"email@hidden"} at end
end tell

tell doc
set text of doc to "It worked"
end tell

end tell
-- end script

John


  • Prev by Date: Changing properties?
  • Next by Date: Re: repeat with i from 1 to count items of the selection (9.1)
  • Previous by thread: AOL 5.0 script
  • Next by thread: Changing properties?
  • Index(es):
    • Date
    • Thread