mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-18 12:28:37 +01:00
15 lines
521 B
AppleScript
15 lines
521 B
AppleScript
|
-- this script tests that it is possible to get the url property of the current article
|
||
|
-- it uses system event accessibility scripting to set up the main window
|
||
|
-- one needs to authorize scripting accessibility control in the System Preferences'
|
||
|
-- Privacy and security pane
|
||
|
|
||
|
try
|
||
|
tell application "Evergreen"
|
||
|
{url, permalink, external url} of current article
|
||
|
end tell
|
||
|
on error message
|
||
|
return {test_result:false, script_result:message}
|
||
|
end try
|
||
|
|
||
|
return {test_result:true, script_result:"tests passed"}
|