mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-18 12:28:37 +01:00
43cfb54437
Consolidate GetURL AppleEvent handling into AppDelegate+Scriptability file Add scripting access groups to sdef Add exists command Add ‘permalink’ and ‘external url’ properties to the article scripting object Add a unit test to verify the behavior of ‘current article’
19 lines
461 B
AppleScript
19 lines
461 B
AppleScript
-- this script sets up Evergreen so it is ready to be tested
|
|
-- to get a current article
|
|
|
|
to activateEvergreen()
|
|
tell application "Evergreen"
|
|
activate
|
|
end tell
|
|
end activateEvergreen
|
|
|
|
tell application "System Events"
|
|
set isFrontmost to frontmost of process "Evergreen"
|
|
repeat while isFrontmost is false
|
|
my activateEvergreen()
|
|
set isFrontmost to frontmost of process "Evergreen"
|
|
end repeat
|
|
end tell
|
|
|
|
return {test_result:true, script_result:"finished"}
|