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 -- this script just tests that no error was generated from the script
try try
tell application "NetNewsWire" tell application "NetNewsWire"
exists feed 1 of account 1 exists webfeed 1 of account 1
end tell end tell
on error message on error message
return {test_result:false, script_result: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 -- this script just tests that no error was generated from the script
try try
tell application "NetNewsWire" tell application "NetNewsWire"
opml representation of feed 1 of account 1 opml representation of webfeed 1 of account 1
end tell end tell
on error message on error message
return {test_result:false, script_result: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 -- this script just tests that no error was generated from the script
try try
tell application "NetNewsWire" tell application "NetNewsWire"
{name, url} of every feed of every account {name, url} of every webfeed of every account
end tell end tell
on error message on error message
return {test_result:false, script_result:message} return {test_result:false, script_result:message}

View File

@ -2,7 +2,7 @@
-- and that the returned list is greater than 0 -- and that the returned list is greater than 0
try try
tell application "NetNewsWire" 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 end tell
set test_result to ((count items of namesResult) > 0) set test_result to ((count items of namesResult) > 0)
on error message on error message

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script -- this script just tests that no error was generated from the script
try try
tell application "NetNewsWire" 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 end tell
on error message on error message
return {test_result:false, script_result:message} return {test_result:false, script_result:message}