Feature suggestion: Referencing Pascal Script in the File System

General Discussion in English
Post Reply
Nikolai
Posts: 6
Joined: Fri Apr 09, 2021 3:43 pm

Feature suggestion: Referencing Pascal Script in the File System

Post 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.

tobias
Posts: 1635
Joined: Tue Mar 31, 2020 7:37 pm

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

Post by tobias »

Great, I'll add this in the next update.

tobias
Posts: 1635
Joined: Tue Mar 31, 2020 7:37 pm

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

Post 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.

Rene
Posts: 46
Joined: Mon Aug 02, 2021 10:49 am

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

Post by Rene »

Must be file name extension .pas or can it deviate?
Syncovery für Windows, MacOS (Silicon) und Synology

tobias
Posts: 1635
Joined: Tue Mar 31, 2020 7:37 pm

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

Post by tobias »

Hi,
the filename extension does not matter.

Post Reply