mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
support for permalink and external url
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’
This commit is contained in:
1 parent
dcd2ee94f9
commit
43cfb54437
14 files changed
+371
-78
No files matched your search
@@ -0,0 +1,37 @@
|
||||
property uparrowKeyCode : 126
|
||||
property downarrowKeyCode : 125
|
||||
property rightarrowKeyCode : 124
|
||||
property leftarrowKeyCode : 123
|
||||
|
||||
to activateEvergreen()
|
||||
tell application "Evergreen"
|
||||
activate
|
||||
end tell
|
||||
end activateEvergreen
|
||||
|
||||
to multipleKeyCodes(keycode, numberOfKeys)
|
||||
tell application "System Events"
|
||||
tell process "Evergreen"
|
||||
repeat numberOfKeys times
|
||||
key code keycode
|
||||
end repeat
|
||||
end tell
|
||||
end tell
|
||||
end multipleKeyCodes
|
||||
|
||||
to establishMainWindowStartingState()
|
||||
activateEvergreen()
|
||||
multipleKeyCodes(downarrowKeyCode, 2)
|
||||
multipleKeyCodes(rightarrowKeyCode, 2)
|
||||
multipleKeyCodes(leftarrowKeyCode, 2)
|
||||
multipleKeyCodes(uparrowKeyCode, 50)
|
||||
end establishMainWindowStartingState
|
||||
|
||||
try
|
||||
establishMainWindowStartingState()
|
||||
-- hit the down arrow a few times to get into the feeds
|
||||
on error message
|
||||
return {test_result:false, script_result:message}
|
||||
end try
|
||||
|
||||
return {test_result:true, script_result:"established starting state"}
|
||||
Reference in new issue
Block a user