Background Script without file
2 posters
Page 1 of 1
Background Script without file
Currently you need to create a file to use a background script. For easier setup and quick usage it would be nice to have the same option as a "Script". So you can write a smaller script directly in the plugin.
lublak- Posts : 15
Join date : 2024-01-16
Re: Background Script without file
I understand that having a text field for the script sometimes makes things a bit easier, but I decided to remove that feature when I designed the background script action. The reason is that for background scripts, the information isn't stored in the action (i.e., not stored in the profile) since the scripts should be available everywhere without the requirement to have the script button active.
Instead, the information is kept in a "global storage" maintained by Elgato. This global storage isn't meant to store this kind of information; it is meant to store authentication keys and passwords and is securely stored and encrypted. I wanted to keep the extra load on this storage as light as possible, which is why I don't want to store complete scripts there, only the script file references.
I don't think the requirement to create a script file is too bad a compromise, and I'm afraid you will have difficulty convincing me otherwise.
Instead, the information is kept in a "global storage" maintained by Elgato. This global storage isn't meant to store this kind of information; it is meant to store authentication keys and passwords and is securely stored and encrypted. I wanted to keep the extra load on this storage as light as possible, which is why I don't want to store complete scripts there, only the script file references.
I don't think the requirement to create a script file is too bad a compromise, and I'm afraid you will have difficulty convincing me otherwise.
Re: Background Script without file
It would simply have been more comfortable.
How is the file path saved?
Wouldn't it be possible to create a file automatically when using the text box? Then, for example, save it under: %appdata%/elgatomidiplugin/background_script_1.
So you would not save the whole script but only the file path and a flag that the textbox was used. So not much more than currently.
But as I said, it's more of a luxury problem. Would still be nice to have.
How is the file path saved?
Wouldn't it be possible to create a file automatically when using the text box? Then, for example, save it under: %appdata%/elgatomidiplugin/background_script_1.
So you would not save the whole script but only the file path and a flag that the textbox was used. So not much more than currently.
But as I said, it's more of a luxury problem. Would still be nice to have.
lublak- Posts : 15
Join date : 2024-01-16
Re: Background Script without file
There are, of course, endless other ways this can be done. I could spend many hours creating a more bulky interface and creating hidden files with all that comes in terms of error handling when users delete files they don't know what they are, Mac users who haven't given the plugin the rights to access the file system and other file related errors. Or I can spend my time looking at scripting for dials and other more useful features.
I'm doing this in my spare time you know. Not that I have any spare time due to all the plugin programming, but still. So sorry; you need to create four files and add the file references to the plugin...
I'm doing this in my spare time you know. Not that I have any spare time due to all the plugin programming, but still. So sorry; you need to create four files and add the file references to the plugin...
lublak likes this post
Re: Background Script without file
Everything is fine xD. It was just a wish. And as I said. It would just be a luxury. It doesn't hurt me so much to create the files myself.
lublak- Posts : 15
Join date : 2024-01-16
Similar topics
» Clear log file
» Note On/Off Translation File
» Having Trouble with Translation File
» Translation file option for Mackie Control?
» StreamDeck+ Script
» Note On/Off Translation File
» Having Trouble with Translation File
» Translation file option for Mackie Control?
» StreamDeck+ Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum