Merge pull request #2105 from tynandebold/master

Fixes bugs in AppleScript example files
This commit is contained in:
Brent Simmons 2020-05-23 11:25:14 -07:00 committed by GitHub
commit 9e48843a53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -36,8 +36,8 @@ set totalFeeds to 0
tell application "NetNewsWire"
set allAccounts to every account
repeat with nthAccount in allAccounts
set allFeeds to every webFeed of nthAccount
repeat with nthFeed in allFeeds
set userFeeds to allFeeds of nthAccount
repeat with nthFeed in userFeeds
set feedname to name of nthFeed
set articleCount to count (get every article of nthFeed)
set readCount to count (get every article of nthFeed where read is true)

View File

@ -38,8 +38,8 @@ set safariWindow to missing value
tell application "NetNewsWire"
set allAccounts to every account
repeat with nthAccount in allAccounts
set allFeeds to every webFeed of nthAccount
repeat with nthFeed in allFeeds
set userFeeds to allFeeds of nthAccount
repeat with nthFeed in userFeeds
set starredArticles to (get every article of nthFeed where starred is true)
repeat with nthArticle in starredArticles
my openTabInSafari(url of nthArticle)