Page 1 of 1
Include Scripts folders
Posted: Thu Jan 21, 2016 2:42 am
by ranquild
Is there any option to organize scripts in project in folders? Currently I have more than 20 scripts and grouping some of them into folders could help a lot.
Re: Include Scripts folders
Posted: Thu Jan 21, 2016 5:19 am
by bokkie
The way I do it works for me but I don't know if it's the ideal approach. For example:
I created a new project and saved it. Inside the project's disk folder I created a new sub-folder with the Windows Explorer called, for example, MyScripts.
Select the Project tab in the IDE and select the Include Scripts node. Right-click and select the Create New Script. Select the folder name you just created (MyScripts) and enter a name for the new script file, for example Test123 and click the Save button. That will create a blank script file called MyScripts\Test123.mia.
Repeat for as many script files as you want to create and create new folders if you want to. After you've done that, exit from the IDE. Copy over the actual scripts files containing your code overwriting the mia files of the same name.
Open the project in the IDE. Select the Include Scripts node again. You should see all your script files that you've created. If you double-click on them you'll see your code. Select a line in any script file and include a script using the Include Script MSIcode statement and select the script file from the dropdown.
That's how I do things. A little long-winded perhaps but it's how I've done it in the past. I hope this helps you.
Re: Include Scripts folders
Posted: Thu Jan 21, 2016 12:52 pm
by FrancescoT
Instead I always use a separate folder to store all my custom scripts and when I need to use one of them, I just "Add the Existing Script" into the project.
Of course, this works for me and may not work for others.