Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 29, 2013, 02:55 AM   #1
madsylar
macrumors member
 
Join Date: May 2010
I have a new Mail message window opened. How to set it's Subject via Applescript?

Hi,

All the examples I've found create a new message then set it's subject via applescript like this:

set newMessage to make new outgoing message with properties {account:theAccount, subject:theSubject, content:theContent}

However I'm looking for a way to set the Subject and Recipient of an existing message in the frontmost window, like this:

http://cl.ly/image/2Z0u0M0J050R

Is it possible?

Thank you.

Last edited by madsylar; Aug 29, 2013 at 05:40 AM.
madsylar is offline   0 Reply With Quote
Old Aug 30, 2013, 03:45 AM   #2
madsylar
Thread Starter
macrumors member
 
Join Date: May 2010
found the solution: ui scripting.
madsylar is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Gmail inserting old Subject and message with every email sent from Mail.app halledise Mac Applications and Mac App Store 0 Dec 1, 2013 03:15 PM
Cant set up email rule on empty subject Moraigh144 Mac Applications and Mac App Store 4 Jul 28, 2013 04:54 PM
Weird bug in Mail, message window not changing megalaser OS X Mavericks (10.9) 1 Jul 12, 2013 01:59 AM
No subject in Mail notifications joejoejoe iOS 7 1 Jun 14, 2013 03:42 PM
Current window disappears when new one is opened jc1895 Mac Basics and Help 0 Jun 13, 2012 08:56 AM

Forum Jump

All times are GMT -5. The time now is 11:29 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC