From 039c39f54f8ff2d56715173015b47b9390a33b59 Mon Sep 17 00:00:00 2001 From: Tynan DeBold Date: Sat, 23 May 2020 13:26:30 +0200 Subject: [PATCH 1/2] Fixes bugs in AppleScript example files --- AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript | 4 ++-- AppleScript/Safari-OpenAllStarredArticles.applescript | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript b/AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript index 9f738094f..96d1f39e1 100644 --- a/AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript +++ b/AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript @@ -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) diff --git a/AppleScript/Safari-OpenAllStarredArticles.applescript b/AppleScript/Safari-OpenAllStarredArticles.applescript index a1cba2ec0..662f7025e 100644 --- a/AppleScript/Safari-OpenAllStarredArticles.applescript +++ b/AppleScript/Safari-OpenAllStarredArticles.applescript @@ -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) From 5fffed4f40de82d1f1a07ad11b3ba3312a82191a Mon Sep 17 00:00:00 2001 From: Tynan DeBold Date: Sat, 23 May 2020 13:33:11 +0200 Subject: [PATCH 2/2] Align indentation in AppleScript example file --- AppleScript/Safari-OpenAllStarredArticles.applescript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppleScript/Safari-OpenAllStarredArticles.applescript b/AppleScript/Safari-OpenAllStarredArticles.applescript index 662f7025e..81fe85cc0 100644 --- a/AppleScript/Safari-OpenAllStarredArticles.applescript +++ b/AppleScript/Safari-OpenAllStarredArticles.applescript @@ -38,7 +38,7 @@ set safariWindow to missing value tell application "NetNewsWire" set allAccounts to every account repeat with nthAccount in allAccounts - set userFeeds to allFeeds of nthAccount + 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