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

macOS specific usage questions
scrutinizer1
Blank Cone
Blank Cone
Posts: 24
Joined: 06 Aug 2017 00:43

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

Postby scrutinizer1 » 17 May 2022 14:58

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?

Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 41 guests