Fix compile errors in AppleScript scripts, which gets NetNewsWireTests building, running, and passing.

This commit is contained in:
Brent Simmons 2024-11-16 13:51:52 -08:00
parent 1091d63923
commit a74ee8e544
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
exists feed 1 of account 1
exists webfeed 1 of account 1
end tell
on error message
return {test_result:false, script_result:message}

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
opml representation of feed 1 of account 1
opml representation of webfeed 1 of account 1
end tell
on error message
return {test_result:false, script_result:message}

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
{name, url} of every feed of every account
{name, url} of every webfeed of every account
end tell
on error message
return {test_result:false, script_result:message}

View File

@ -2,7 +2,7 @@
-- and that the returned list is greater than 0
try
tell application "NetNewsWire"
set namesResult to name of every author of every feed of every account
set namesResult to name of every author of every webfeed of every account
end tell
set test_result to ((count items of namesResult) > 0)
on error message

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
title of every article of feed "Six Colors" where read is true
title of every article of webfeed "Six Colors" where read is true
end tell
on error message
return {test_result:false, script_result:message}