Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:57 PM.

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

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