Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access AppleScript properties of selected articles #4218

Open
michaeljtsai opened this issue Feb 15, 2024 · 0 comments
Open

Can't access AppleScript properties of selected articles #4218

michaeljtsai opened this issue Feb 15, 2024 · 0 comments

Comments

@michaeljtsai
Copy link
Contributor

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:

Script Debugger

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:

let accountFeeds = Array(nthAccount.topLevelFeeds)

we may want flattenedWebFeeds() instead of topLevelFeeds. Or, alternatively, the feed’s object specifier should include the full containment hierarchy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant