At 8:20 am -0800 27/1/04, Chris Nandor wrote:


Odd.  My guess is that this is a bug in NetNewsWire.  Here is something that
does work:

   my $News = Mac::Glue->new('NetNewsWire');
   my $subscriptions = $News->prop('subscriptions');
   my @names = $subscriptions->prop('display name')->get;

All the names are in @names.  I am not sure why $subscriptions->get fails
though.  It fails in AppleScript too; if I do:

tell app "NetNewsWire" to get subscriptions

There may be a bug but I'm not sure quite what useful information is expected from this command. One way or the other all the necessary info can be got. It seems to be possible to get multiple properties of 'every subscription' and 'properties' of a single subscription but not to get 'properties' of 'every subscription'.



tell application "NetNewsWire" get {display name, unread count} of its subscriptions -- OK get properties of its first subscription -- OK --get properties of every subscription -- NO subscriptions of its subscriptions --{missing value, missing value, missing value, ... end tell

You can even get

properties of every subscription whose display name contains "a"

but not

properties of every subscription whose display name does not contain "z"

JD









Reply via email to