If I select a few articles and run this script with NetNewsWire 6.1.1 (macOS 14.2.1):
tell application "NetNewsWire"
set _articles to selected articles
repeat with _article in _articles
get url of _article -- NetNewsWire got an error: Can’t get webFeed id "10947".
end repeat
end tell
it fails. Similarly, the properties don’t show up in the Script Debugger explorer:
This may also be related to issue #2332.
I think the problem may be that the webFeeds element only includes top-level feeds, but the articles I selected were from a feed that’s in a folder. It seems like here:
we may want flattenedWebFeeds() instead of topLevelFeeds. Or, alternatively, the feed’s object specifier should include the full containment hierarchy.
If I select a few articles and run this script with NetNewsWire 6.1.1 (macOS 14.2.1):
it fails. Similarly, the properties don’t show up in the Script Debugger explorer:
This may also be related to issue #2332.
I think the problem may be that the
webFeeds
element only includes top-level feeds, but the articles I selected were from a feed that’s in a folder. It seems like here:https://github.com/Ranchero-Software/NetNewsWire/blob/41ce3483833587ca92f1ff292c0c88590ab8e622/Mac/Scriptability/NSApplication%2BScriptability.swift#L80
we may want
flattenedWebFeeds()
instead oftopLevelFeeds
. Or, alternatively, the feed’s object specifier should include the full containment hierarchy.