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

AppleScript: Fix Minor Issues in Example Scripts #4046

Open
wants to merge 3 commits into
base: detour2023
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AppleScript/Excel-CreateFeedStatisticsSpreadsheet.applescript
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- This script creates an Excel spreadsheet with statistics about all the feeds in your NetNewsWire
-- This script creates an Excel spreadsheet with statistics about all the feeds in your NetNewsWire

-- the exportToExcel() function creates a single line of data in a spreadsheet

Expand Down Expand Up @@ -34,9 +34,9 @@ end tell

set totalFeeds to 0
tell application "NetNewsWire"
set allAccounts to every account
repeat with nthAccount in allAccounts
set userFeeds to allFeeds of nthAccount
set allActiveAccounts to every account where active is true
repeat with nthAccount in allActiveAccounts
set userFeeds to allWebFeeds of nthAccount
repeat with nthFeed in userFeeds
set feedname to name of nthFeed
set articleCount to count (get every article of nthFeed)
Expand Down
12 changes: 6 additions & 6 deletions AppleScript/Safari-OpenAllStarredArticles.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ to openTabInSafari(theUrl)
if (my safariWindow is missing value) then
-- first time through, make a new window with the given url in the only tab
set newdoc to make new document at front with properties {URL:theUrl}
-- because we created the doucument "at front", we know it is window 1
-- because we created the document "at front", we know it is window 1
set safariWindow to window 1
else
-- after the first time, make a new tab in the wndow we created the first tim
-- after the first time, make a new tab in the window we created the first tim
tell safariWindow
make new tab with properties {URL:theUrl}
end tell
Expand All @@ -25,7 +25,7 @@ end openTabInSafari


-- the script starts here
-- First, initialize safariWindow to be missing value, so that the first time through
-- First, initialize safariWindow to be missing value, so that the first time through
-- openTabInSafari() we'll make a new window to hold all our articles

set safariWindow to missing value
Expand All @@ -36,9 +36,9 @@ set safariWindow to missing value
--for each one of those, open a new tab in Safari

tell application "NetNewsWire"
set allAccounts to every account
repeat with nthAccount in allAccounts
set userFeeds to allFeeds of nthAccount
set allActiveAccounts to every account where active is true
repeat with nthAccount in allActiveAccounts
set userFeeds to allWebFeeds of nthAccount
repeat with nthFeed in userFeeds
set starredArticles to (get every article of nthFeed where starred is true)
repeat with nthArticle in starredArticles
Expand Down