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
Apple Computing Products:
macOS - Apps and Programs
An applescript to automagically mark message as "junk"
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="voiceofra" data-source="post: 354623" data-attributes="member: 28040"><p>While trying to help someone over on another mac forum (because nobody else was offering anything useful to the topic originator) , I wrote my first <em>useful </em>Applescript (up until now, I'd modified existing scripts or done VERY basic things with it) and thought others here might find it of use.</p><p>What he was looking for:</p><p></p><p>What I came up with:</p><p>[CODE]tell application "Mail" to activate</p><p>tell application "System Events"</p><p> keystroke "j" using {command down, shift down}</p><p> </p><p>end tell[/CODE]</p><p>After your 'junk' rule criteria are met, this script will automagically "press" command-shift j - the Mail.app shortcut for selecting an item as junk mail.</p><p>Feel free to modify it, expand on it, etc.</p></blockquote><p></p>
[QUOTE="voiceofra, post: 354623, member: 28040"] While trying to help someone over on another mac forum (because nobody else was offering anything useful to the topic originator) , I wrote my first [I]useful [/I]Applescript (up until now, I'd modified existing scripts or done VERY basic things with it) and thought others here might find it of use. What he was looking for: What I came up with: [CODE]tell application "Mail" to activate tell application "System Events" keystroke "j" using {command down, shift down} end tell[/CODE] After your 'junk' rule criteria are met, this script will automagically "press" command-shift j - the Mail.app shortcut for selecting an item as junk mail. Feel free to modify it, expand on it, etc. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
An applescript to automagically mark message as "junk"
Top