[Gambas-user] Execute script from ide
bsteers4 at gmail.com
Wed Sep 20 10:00:29 CEST 2023
On Wed, 20 Sep 2023, 08:39 Marco Ancillotti, <gambas at servinfo.it> wrote:
> Hi all ,
> I usually have some script on a project because I use that to make some
> internal processing or to load the binary to the
> right server.
> When I right click on that from the ide I see the usual stuff ( open ,
> open with , duplicate , ... ) .
> Is possible to add a menu item to run the script on a window ?
> It will speed up my works a lot since I write script directly from the
> ide and every time I need to run one I need to go to tools ,
> open terminal , run script by hand and then close the terminal.
> I think we need simply to check if file have execute permission and
> launch it the default terminal app.
> Thanks in advance,
There is an option to run a command when you hit "make executable"
Maybe you can use that?
I have "external tools" like the pluma plugin with my gambas so I could
just use that.
You should also be able to right click the script and select "open in file
manager" then just double click the script to run it. (On systems that
allow script execution from double click)
Ps. If you use the command..
Then it don't need to be executable or need a shebang.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User