Page 1 of 1

Using 'current script name' in a script

Posted: 14 Jan 2026 11:10
by JamesMcBride
Is there a Native Variable or something similar that would allow me to use the name of the currently running script inside that script?
Specifically, what I want to do is to name a log file something to the tune of: <scriptname>.log

Re: Using 'current script name' in a script

Posted: 14 Jan 2026 11:21
by highend
rtfm "idh_scripting_comref.htm#idh_sc_self";

Re: Using 'current script name' in a script

Posted: 14 Jan 2026 11:27
by Norn
This is just a question, it shouldn't be posted in the script section. . .

Re: Using 'current script name' in a script

Posted: 14 Jan 2026 12:05
by JamesMcBride
Sorry about posting in the wrong place :( Dummie move.

And thank you HighEnd for the somewhat cryptic answer that taught me another scripting command :)
I really appreciate that :)

Re: Using 'current script name' in a script

Posted: 14 Jan 2026 12:09
by admin
No worries, the place is totally okay.

Re: Using 'current script name' in a script

Posted: 14 Jan 2026 12:22
by Norn
Okay, I remember when I first started using XY, I looked for the scripts I needed in the script section. It will be difficult for new users looking for scripts unless they specify search terms... Other forums' script sections only allow script posting.