• 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
How can I add 'Conversation' button to Mail toolbar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I add 'Conversation' button to Mail toolbar?


  • Subject: How can I add 'Conversation' button to Mail toolbar?
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 18 Jun 2015 13:39:13 +1000

G’day scripters.

I’d like to be able to automatically add the ‘Conversation’ button to my Mail toolbar, but cannot work out how to select and drag it there.

Perhaps if I could somehow Command-click on it (which throws up a single item menu), I could then click on the menu item to copy it to the menu bar, but how?

Any advice appreciated.

Regards

Santa

tell application "Mail"
activate
tell application "System Events" to tell process "Mail"
click menu item "Message Viewer" of menu 1 of menu bar item "Window" of menu bar 1
if not (exists button "No Conversations" of toolbar 1 of window 1) and not (exists button "Conversations" of toolbar 1 of window 1) then
tell current application to delay 0.2
click menu item "Customize Toolbar…" of menu 1 of menu bar item "View" of menu bar 1
tell current application to delay 0.2
# select image 24 of toolbar 1 of sheet 1 of window "2015 06 17 — On My Mac (0 messages)"
#try
tell button "New Message" of toolbar 1 of window 1
set {xNewPosition, yNewPosition} to position
set {xNewSize, yNewSize} to size
end tell
tell image 24 of toolbar 1 of sheet 1 of window 1
set {xPosition, yPosition} to position
set {xSize, ySize} to size
end tell
-- modify offsets if hot spot is not centered:
click at {xPosition + (xSize div 2), yPosition + (ySize div 2)}
move image 24 of toolbar 1 of sheet 1 of window 1 to {xNewPosition, yNewPosition}
keystroke return
#end try
end if


end tell
end tell

 _______________________________________________
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: Re: JXA failure with delay function
  • Next by Date: Re: 'Make new attachment' dilemma
  • Previous by thread: Re: JXA failure with delay function
  • Next by thread: Re: 'Make new attachment' dilemma
  • Index(es):
    • Date
    • Thread