Re: Strange Font Pasted in Mail
Re: Strange Font Pasted in Mail
- Subject: Re: Strange Font Pasted in Mail
- From: Christopher Stone <email@hidden>
- Date: Mon, 6 Jul 2009 05:20:30 -0500
On Jul 06, 2009, at 04:52, Yvan KOENIG wrote: I'm trying to rebuild an old script I wrote for Eudora to derive the salutation from the to-address. Unfortunately there's still no way to set the 'selected text' in Mail, so I'm having to use the clipboard.
The weird thing is that the pasted text is Helvetica 12 even though I have my default message text set to Courier 12, and I can't seem to find a way around this. Any ideas?
If I understand well, when you run the script, the mail document is defined as Rich Text allowing it to use several fonts.
Yes the Mail document is styled-text by default. The default font is Courier 12, so any un-styled text pasted into it should be Courier 12. It's not, so what is getting put on the clipboard is apparently styled-text. It should not be. If you define it as Text...
I'd rather not have to do that.
If you want that your correspondant receive it as Courier, when it's ready, switch to Rich Text.
Again I'd rather not have to monkey with this. The whole purpose of the script is to save me time and trouble. Having to switch modes is an ugly work-around.
If for instance I type text into Mail's 'Find' field, copy that back out, and paste it into a new message it pastes just fine as Courier. But when I copy text to the clipboard via Applescript it comes back out as Helvetica 12. It should be style-neutral, but it's not.
I just noticed that the clipboard is eating one of the 'return' characters when the message is styled-text. If I switch the message to plain-text it does not eat that character. Strange.
|
_______________________________________________
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