Detect a scheduled run vs manually started

General Discussion in English
Post Reply
Wombat
Posts: 23
Joined: Tue Jul 15, 2025 3:24 pm

Detect a scheduled run vs manually started

Post by Wombat »

Any way to do this in Pascalscript? Thanks.
Wombat
Posts: 23
Joined: Tue Jul 15, 2025 3:24 pm

Re: Detect a scheduled run vs manually started

Post by Wombat »

No replies so I guess it can't be done. I worked around it by checking the time before invoking a script. This is basically so I can test the backup job by hand without it performing a bunch of time consuming actions every time I do it.
tobias
Posts: 2094
Joined: Tue Mar 31, 2020 7:37 pm

Re: Detect a scheduled run vs manually started

Post by tobias »

Hi,
sorry for missing the reply! I think it's true that PascalScript doesn't expose a direct way to detect this. I was going to give it more thoughts but then I forgot. I suppose that a future update will make it possible.
Wombat
Posts: 23
Joined: Tue Jul 15, 2025 3:24 pm

Re: Detect a scheduled run vs manually started

Post by Wombat »

The OnCanRunProfile hook looked useful. I thought about doing my actions in there since it seems to be called when the scheduler is about to run a profile, but it seems to only be available on the Windows version of Syncovery.
Post Reply