Fix or re-implement scripting automation #126

Closed
opened 2021-03-03 23:03:29 -03:00 by kode54 · 5 comments
kode54 commented 2021-03-03 23:03:29 -03:00 (Migrated from github.com)

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.

**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.
nevack commented 2021-03-04 08:19:19 -03:00 (Migrated from github.com)

@kode54 What scripts are to be updated?
Maybe some of them more important now?

@kode54 What scripts are to be updated? Maybe some of them more important now?
kode54 commented 2021-03-04 20:05:06 -03:00 (Migrated from github.com)

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.

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.
kode54 commented 2021-03-08 20:03:53 -03:00 (Migrated from github.com)

Maybe optionally remove it entirely, it doesn't seem all that useful.

Maybe optionally remove it entirely, it doesn't seem all that useful.
kode54 commented 2022-01-23 22:39:22 -03:00 (Migrated from github.com)

Bumping this issue, it should be fixed. For instance, so that @kddlb 's lyrics fetching app can interact with the player.

Bumping this issue, it should be fixed. For instance, so that @kddlb 's lyrics fetching app can interact with the player.
kode54 commented 2022-02-20 06:53:44 -03:00 (Migrated from github.com)

@kddlb enjoy.

@kddlb enjoy.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: chris/Cog#126
No description provided.