Stupid Mac::Glue Tricks: NetNewsWire Killfile

| | Comments (0)
This doesn't remove the article, but it marks it as read, sorta. It doesn't apparently update the UI if that subscription is currently open in the UI, and the like.

Modify to suit taste. I think this only works in the pay version of NNW.

#!/usr/bin/perl
use strict;
use warnings;
 
use Mac::Glue ':all';
 
my $nnw = new Mac::Glue 'NetNewsWire';
my $headlines = $nnw->obj(
    headlines => whose(creator => equals => 'JonKatz'),
    subscription => whose(display_name => contains => 'Slashdot')
);
print $headlines->prop('isread')->set(to => 1);

use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on May 12, 2004 1:48 PM.

Mac-AppleEvents-Simple-1.12 Released was the previous entry in this site.

WWDC '04 is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.