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

Errors from directly interacting with AppleScript properties allFeeds and selected articles #2332

Open
gdbing opened this issue Aug 12, 2020 · 1 comment

Comments

@gdbing
Copy link

gdbing commented Aug 12, 2020

Common operations, like count and select, don't work on the lists of feeds and articles returned by allFeeds and selected articles unless the value is first assigned to a variable.

This might be an issue with AppleScript, not NNN, I can't recall a specific case but I think I've had similar issues before with different applications.

Count

This works:

tell application "NetNewsWire"
	set myArticles to selected articles
	get count of myArticles
end tell

but this returns

selected articles doesn’t understand the “count” message.

tell application "NetNewsWire"
	get count of selected articles
end tell

Type specifier

This works:

tell application "NetNewsWire"
	set myFeeds to allFeeds of account 1
	get item 1 of myFeeds
end tell

but this returns

Can’t make item 1 of allFeeds of account 1 into type specifier.

tell application "NetNewsWire"
	get item 1 of (allFeeds of account 1)
end tell

Version

I am using version 5.0.3 (2618)

@francisfeng
Copy link

I think this issue still persists in version 6.0.3 (6035).

I can do with this:

tell application "NetNewsWire"
	get selected articles
end tell

But this would threw an error error "NetNewsWire got an error: Can’t make title of selected articles into type specifier." number -1700 from title of selected articles to specifier:

tell application "NetNewsWire"
	get title of selected articles
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants