Page 1 of 1

Automating streaming with AppleScript - GetURL vs OpenURL, vague purpose of the commands manipulating the UI elements

Posted: 17 May 2022 14:58
by scrutinizer1
Hello,

1. What's the difference between GetURL and OpenURL other than the same result? OpenURL is pretty intuitive and supplying a valid URL as a direct parameter works as expected. The mechanics of GetURL on the other hand is unclear: judging from its name it's supposed to get the URL of the currently played item but it runs down the drain. Giving it a URL results in a behavior identical to OpenURL, so what's the purpose? The dictionary quite ambiguously tells it receives "the object for the command" but doesn't clarify the kind of object.

2. The set of commands that share the functionality affecting the state of menu elements.
activate menu item v : Activates the currently focussed menu item.
activate menu item specifier : the object for the command

move menu focus down v : Moves the menu focus down.
move menu focus down specifier : the object for the command

move menu focus left v : Moves the menu focus to the left.
move menu focus left specifier : the object for the command

move menu focus right v : Moves the menu focus to the right.
move menu focus right specifier : the object for the command

move menu focus up v : Moves the menu focus up.
move menu focus up specifier : the object for the command
The use is obfuscated by the same murky requirement that the direct parameter is "the object for the command". What's this object? How do you get the reference to it when the scripting interface lacks even basic hierarchy other than the top application object? Could someone post a short outline on what the developers think would be a proper use of these commands, preferably with examples?