Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Can you do this in applescript?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1300866" data-attributes="member: 71075"><p>Take a look at <a href="https://discussions.apple.com/thread/3295540?start=0&tstart=0" target="_blank">this</a> script - it looks like it might get the job done for you. Instead of content though, you'd have to modify it to be "sender" and "subject":[code]tell application "Mail"</p><p> set unreadMessages to (get every message of mailbox "INBOX" of account "Gmail" whose read status is false)</p><p> repeat with eachMessage in unreadMessages</p><p> say (get sender of eachMessage)</p><p> say (get subject of eachMessage)</p><p> end repeat</p><p>end tell[/code]You'll also need to modify that "set" like to the appropriate values for your email account.</p></blockquote><p></p>
[QUOTE="vansmith, post: 1300866, member: 71075"] Take a look at [URL="https://discussions.apple.com/thread/3295540?start=0&tstart=0"]this[/URL] script - it looks like it might get the job done for you. Instead of content though, you'd have to modify it to be "sender" and "subject":[code]tell application "Mail" set unreadMessages to (get every message of mailbox "INBOX" of account "Gmail" whose read status is false) repeat with eachMessage in unreadMessages say (get sender of eachMessage) say (get subject of eachMessage) end repeat end tell[/code]You'll also need to modify that "set" like to the appropriate values for your email account. [/QUOTE]
Verification
How many occurrences of a n-u-m-b-e-r between "d" and "f" in this example...(sdgs6ngklu3gd#f9%)?
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Can you do this in applescript?
Top