• 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
mail.app, bottom post, applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail.app, bottom post, applescript


  • Subject: mail.app, bottom post, applescript
  • From: Scott Haneda <email@hidden>
  • Date: Tue, 26 Feb 2008 20:17:08 -0800

Below is a script, I hate it, it is a big huge kludge and uses clicking around in a menu to make it work, but it does almost work. I have to maintain my sigs all the same amount of lines, and move the cursor around, but I get a "bottom post" reply when I need it.

tell application "Mail" to activate
tell application "System Events"
	tell process "Mail"
		tell menu bar 1
			click menu bar item "Message"'s menu "Message"'s ¬
				menu item "Reply"
		end tell
		delay 1.3
		key code 117 -- Forward Delete
		delay 0.1
		key code 125 using command down -- down arrow
		key code 126
		key code 126
		key code 126
		key code 126
		key code 36 -- Return
	end tell
end tell

now, I got this script from someone else, Gruber I think. I see in the dict there is a reply verb, but every time I use it, I get one window of the reply, and an empty one, what is the fix for this?

Then, is it possible to get find "--" which is my sig delimiter, and put the cursor just above it? Any suggestions on who to get mail.app to bottom post on a reply, and I would be grateful.
--
Scott
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
  • Prev by Date: Out of memory
  • Next by Date: Re: a date is not a date? Or: Why I sometimes hate AppleScript...
  • Previous by thread: Out of memory
  • Next by thread: mail.app, bottom post, applescript
  • Index(es):
    • Date
    • Thread