Hi Darren,
Thanks for testing. I'll check the "return" problem.

On Thu, Feb 26, 2009 at 12:31 AM, Darren Mahaffy <[email protected]> wrote:

>
> LOVELY! Composition of a test message is good!
>
> Problem I'm encountering is when I compose the body. The & return &
> return do not put in returns any more in the content.
>
> When I compose a message (such as below) the result is all sentences
> together in one line rather than three separate lines.
>
> tell application "Mailplane"
>        set m to make new outgoing message with properties
> {directlySend:false}
>        tell m
>                 set sender to "[email protected]"
>                 set r to make new to recipient at end
>                tell r
>                         set address to "[email protected]"
>                        set name to "Tester TO"
>                end tell
>                set subject to "Testing Subject Line"
>                set content to "Tester-" & return & return & "This is a test
> message." & return & return & "Have a good night."
>        end tell
>        compose m
>        set bounds of window 1 to {254, 127, 1212, 810}
> end tell
>
> The result of that script (message content) is:
>
> "Tester-This is a test message.Have a good night."
>
> Should be this:
>
> "Tester-
>
> This is a test message.
>
> Have a good night."
>
> Any ideas on why it is truncated to one line?
>
> Thanks, Ruben!
>
> Darren
>
> On Feb 25, 4:18 am, Ruben Bakker <[email protected]> wrote:
> > Hi Darren,
> > This version adds two new things:
> http://mailplaneapp.com/downloads/Mailplane_1074.tbz
> >
> > - set sender to "[email protected]" to choose a different sender - the
> > sender must be in a the Gmail "From" drop down list
> > - Optional directlySend property on outgoing message to send the message
> as
> > soon as it is composed.
> >
> > Please let me know how this version work for you - thanks!
> >
> > Example:
> >
> > *tell* application "Mailplane"
> >
> > *set* m *to* make new outgoing message with properties
> {directlySend:false}
> >
> > *tell* m
> >
> > *set* sender *to* "[email protected]"
> >
> > *set* r *to* make new to recipient at *end*
> >
> > *tell* r
> >
> > *set* address *to* "[email protected]"
> >
> > *set* name *to* "Ruben"
> >
> > *end* *tell*
> >
> >  *set* r *to* make new cc recipient at *end*
> >
> > *tell* r
> >
> > *set* address *to* "[email protected]"
> >
> > *set* name *to* "Monique"
> >
> > *end* *tell*
> >
> >  *set* r *to* make new bcc recipient at *end*
> >
> > *tell* r
> >
> > *set* address *to* "[email protected]"
> >
> > *set* name *to* "Urs"
> >
> > *end* *tell*
> >
> >  *set* subject *to* "test subject"
> >
> > make new mail attachment with properties {path:"Macintosh
> > HD:Users:ruben:Desktop:logo.gif.png"}
> >
> > *end* *tell*
> >
> > compose m
> >
> > *end* *tell*
> >
> > On Sun, Feb 22, 2009 at 8:45 PM, Ruben Bakker <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> > > Hi Darren,
> > > This version adds cc/bcc recipients.
> > >http://mailplaneapp.com/downloads/Mailplane_1071.tbz
> >
> > > I think you wrote it correctly, here's what I tested:
> >
> > >               set r to make new cc recipient at end
> > >               tell r
> > >                       set address to "[email protected]"
> > >                       set name to "Dude"
> > >               end tell
> >
> > >               set r to make new bcc recipient at end
> > >               tell r
> > >                       set address to "[email protected]"
> > >                       set name to "Dude"
> > >               end tell
> >
> > > Sender: I'll get back to you.
> > > Best,
> >
> > > On Sun, Feb 22, 2009 at 8:25 PM, Darren Mahaffy <[email protected]
> >wrote:
> >
> > >> Hi Ruben,
> >
> > >> Thanks for the reply.
> >
> > >> Yes, would like to test the beta out.
> >
> > >> And yes, setting the sender would be extremely useful to me.
> >
> > >> Rather than manually pulling down the "From" in a new message window,
> > >> it would be great to be able to script it.
> >
> > >> And would the syntax I wrote below about the "cc" work in the beta?
> >
> > >> Thanks,
> > >> Darren
> >
> > >> On Feb 22, 8:04 am, Ruben Bakker <[email protected]> wrote:
> > >> > Hi Darren,
> > >> > Yes, you're right CC/BCC doesn't work. I have corrected it and could
> > >> provide
> > >> > you a preview version if you like (2.1-beta). Just let me know.
> >
> > >> > Setting the sender isn't supported, yet. It's always the default
> sender.
> > >> Do
> > >> > still need to set the sender?
> >
> > >> > Thanks,
> >
> > >> > On Sat, Feb 21, 2009 at 12:37 AM, Darren Mahaffy <
> [email protected]>
> > >> wrote:
> >
> > >> > > In my previous post I asked about setting a specific sender with
> an
> > >> > > AppleScript ...
> >
> > >> > > I also want to know how to set a CC, and a BCC.
> >
> > >> > > I tried to follow the "to recipient at end" syntax and replace
> with
> > >> > > "cc recipient at end" but that didn't work.
> >
> > >> > > So with a message, can I have a "to", a "cc", and a "bcc" (or
> multiple
> > >> > > instances of one/all)?
> >
> > >> > > Thanks again,
> > >> > > Darren
> >
> > >> > > tell application "Mailplane"
> > >> > >       set m to make new outgoing message
> > >> > >       tell m
> > >> > >               set sender to "[email protected]" --doesn't work,
> > >> > > tried in
> > >> > > different places in this script, too
> > >> > >               set r to make new to recipient at end
> > >> > >               tell r
> > >> > >                       set address to "[email protected]"
> > >> > >                       set name to "Dude"
> > >> > >               end tell
> > >> > >               set subject to "Testing"
> > >> > >               set content to "Hi Dude-" & return & return & "This
> is
> > >> > > a test
> > >> > > email." & return & return & "Cordially," & return & return "The
> > >> > > Management"
> > >> > >       end tell
> > >> > >       compose m
> > >> > > end tell
> >
> > >> > --
> > >> > Rubenhttp://mailplaneapp.com/bloghttp://www.twitter.com/Mailplane
> >
> > > --
> > > Ruben
> > >http://mailplaneapp.com/blog
> > >http://www.twitter.com/Mailplane
> >
> > --
> > Rubenhttp://mailplaneapp.com/bloghttp://www.twitter.com/Mailplane
> >
>


-- 
Ruben
http://mailplaneapp.com/blog
http://www.twitter.com/Mailplane

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mailplaneapp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mailplaneapp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to