You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an idea that requires further thought. What if there was a command feature in Text-Script where users can write custom python scripts so that they can create custom text editing capabilities.
For example, lets say a user wants to add a custom command that looks like: !currentdate. They could create a python script called currentdate.py that accepts no input, but returns the current date in YYYY/MM/DD format.
To accomodate this, Text-Script would scan for custom python files in a specific folder. It would add the custom commands to it's command list. When it detects the command, it would call the custom script, and await the return string. It would then paste the return string the exact same way it does when it copies and pastes textblocks.
The text was updated successfully, but these errors were encountered:
This comes with the obvious issue to cause massive potential damage if a malicious python script is installed into this. A warning should advise the user if custom scripting is enabled, and should strongly recommend that their IT team checks if they are the ones who put the custom python script there.
I had an idea that requires further thought. What if there was a command feature in Text-Script where users can write custom python scripts so that they can create custom text editing capabilities.
For example, lets say a user wants to add a custom command that looks like: !currentdate. They could create a python script called currentdate.py that accepts no input, but returns the current date in YYYY/MM/DD format.
To accomodate this, Text-Script would scan for custom python files in a specific folder. It would add the custom commands to it's command list. When it detects the command, it would call the custom script, and await the return string. It would then paste the return string the exact same way it does when it copies and pastes textblocks.
The text was updated successfully, but these errors were encountered: