Re: Mail.app: How can I configure replied message
Re: Mail.app: How can I configure replied message
- Subject: Re: Mail.app: How can I configure replied message
- From: Taichi Matsumoto <email@hidden>
- Date: Thu, 8 Jul 2010 22:02:37 +0900
Hi, Takaaki
It worked for all machines!
On some mechine, 2,3 seconds duration is needed for delay
after call "reply" method of Mail.app.
Thank you very much for your advice.
--------------------------------------------------------------------------------
Matsumoto Taichi: email@hidden
--------------------------------------------------------------------------------
2010/7/8 Takaaki Naganoya <email@hidden>:
> I found "delay" command may help you.
> There is something wrong with sync between AppleScript and Mail.app.
> Under Mac OS X 10.6.4 (Japanese user environment), this script works.
> <AppleScript>
> tell application "Mail"
> set msg to selection
> set msg to first item of msg
>
> set replied_msg to reply msg with opening window
> delay 0.1
>
> tell replied_msg
> set subject to "replied message"
> delay 0.1
>
> set content to "this is a replied message"
> delay 0.1
>
> end tell
> end tell
> </AppleScript>
> On 2010/07/07, at 10:02, Taichi Matsumoto wrote:
>
> Hi,
>
> I'm trying to reply message automatically with applescript, and stucked.
>
> I found that I can't set content property of replied message in some
> computer.
> Simplified code is below.
>
> ---
> on run
> tell application "Mail"
> set msg to the first message of sent mailbox
> set replied_msg to reply msg with opening window
> tell replied_msg
> set subject to "replied message"
> set content to "this is a replied message"
> end tell
> end tell
> end run
> ---
>
> In some enviroment, it works fine.
> But in others, new message window open with empty content.
> I'm using only OSX 10.6.4 and Mail.app 4.3.
>
> Can you please tell me how I can fix this problem?
>
> --------------------------------------------------------------------------------
> Matsumoto Taichi: email@hidden
> --------------------------------------------------------------------------------
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
> --
> Takaaki Naganoya
> Piyomaru Software
> http://piyo.piyocast.com
> email@hidden
> PiyoCast Web (Podcasting with Music!)
> http://www.piyocast.com
> Free AppleScript Library "AS Hole"
> http://www.piyocast.com/as/
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden