• 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: emailer script question....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emailer script question....


  • Subject: Re: emailer script question....
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 06 Dec 2000 17:25:25 -0500
  • Organization: [very little]

michael s. roels wrote:
> Date: Wed, 06 Dec 2000 12:59:51 -0600
> Subject: emailer script question....
> From: "michael s. roels" <email@hidden>
> To: <email@hidden>
>
> i have written a script for emailer to create a new mail message, address
> it, paste the contents of the clipboard in the body of the message, and send
> the message. everything works as planned as long as i do not try to paste
> from the clipboard. i get an error that states "claris emailer got an error:
> this command is not available while the application is in the background"
>
> i get this error while running the script in script editor and as a classic
> applet.
>
> can someone please help? i know this has to be something small that i am
> overlooking.
>
> thanks in advance for any help!
>
> michael
> ______________________________
>
> (the "{" and "}" and everything in between them are all on one line. it is
> wrapping in this email.)
>
> START OF SCRIPT
>
> tell application "Finder" to launch "claris emailer"
>
> tell application "Claris Emailer"
>
> set bodyvar to clipboard --"test message"
> set addrVar to "email@hidden"
> set addrNameVar to "me"
>
> set subjectvar to "re: "
>
> make new outgoing message with properties ,
> {subject:subjectvar, content:bodyvar, scheduled:true,
> recipient:{{address:{address:addrVar, display name:addrNameVar}, recipient
> type:to recipient}}}
> connect to "America Online" with properties and sending
>
> end tell

In put an "activate" on the line before "set bodyvar to clipboard". The
application is in the background unless you do so.

Marc [12/6/00 5:25:20 PM]


  • Prev by Date: Re: Selecting entire line in BBedit
  • Next by Date: Re: applescript-users digest, Vol 2 #106 - 15 msgs
  • Previous by thread: emailer script question....
  • Next by thread: Re: emailer script question....
  • Index(es):
    • Date
    • Thread