Page 1 of 1

Feature suggestion: Referencing Pascal Script in the File System

Posted: Thu Mar 28, 2024 2:51 pm
by Nikolai
Hello,

I'm aware that in the profile's Advanced Settings -> Job -> PascalScript section, you can input PascalScript source code.

I have numerous profiles (several dozen) all containing the same PascalScript source code.

The issue arises when even minor changes are needed in the source code, it requires opening each profile, navigating to the settings window, and implementing the change. This process is exceedingly tedious.

It would be immensely helpful to have the option to input only the absolute path to the Pascal script file in the profile. This way, any modifications made to this script file would automatically apply to all profiles upon the next run.

The advantages are clear: I would only need to make a single change in one location.

Re: Feature suggestion: Referencing Pascal Script in the File System

Posted: Thu Mar 28, 2024 8:56 pm
by tobias
Great, I'll add this in the next update.

Re: Feature suggestion: Referencing Pascal Script in the File System

Posted: Sun Mar 31, 2024 12:56 am
by tobias
Hello,
the new version 10.13.7 allows to store PascalScripts in files rather than in the profile.

The mechanism is called "include files", and it uses the syntax:
{$I filepath}

For example:
{$I C:\Scripts\dosomething.txt}

You can also have multiple lines to combine a few scripts.

Re: Feature suggestion: Referencing Pascal Script in the File System

Posted: Mon Apr 01, 2024 11:25 am
by Rene
Must be file name extension .pas or can it deviate?

Re: Feature suggestion: Referencing Pascal Script in the File System

Posted: Mon Apr 01, 2024 11:43 am
by tobias
Hi,
the filename extension does not matter.