Fixes bugs in AppleScript example files

This commit is contained in:
Tynan DeBold 2020-05-23 13:26:30 +02:00
parent 314df88e12
commit 039c39f54f
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)