Fix or re-implement scripting automation #126
Labels
No labels
2230
2243
App version
Apple OS errata
Apple SDK
bug
bugsnag
build
dlt
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: chris/Cog#126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe
The scripting automation files in the project now are 15 years old, and haven't been touched since major interface changes have happened. They seem to partially work, but are not maintainable in their current state, and need to be redone using the newer XML definition method that compiles to the equivalent of the two files currently in the repo and app.
@kode54 What scripts are to be updated?
Maybe some of them more important now?
The current files are in the Cog.script* files in the root folder, but from what I can tell from Apple documentation, writing those two files manually is an old way to do it, and the new way involves writing an XML formatted .sdef or so file, which Xcode compiles to produce the correct result.
It requires declaring arrays/dictionaries and their member properties that are compatible with AppleScript, and what type the variables are.
Maybe optionally remove it entirely, it doesn't seem all that useful.
Bumping this issue, it should be fixed. For instance, so that @kddlb 's lyrics fetching app can interact with the player.
@kddlb enjoy.