Page 1 of 1

Name a report after parent fodler.

Posted: 05 May 2023 18:20
by sl23
I have found some code, maybe in the help file, quite some time ago, and have adapted it to this in order to create Playlist files:
"Create Playlist|:cliptext" writefile("Report.m3u", report("{Basename}.{ext}<crlf>", ,));

It's not a big deal, but would help if I could create the report using the name of the parent folder. But whatever I put inside the double quotes gets turned into the filename! How do I go about making it work how I would like it to?

Thanks for any advice.

Re: Name a report after parent fodler.

Posted: 05 May 2023 18:38
by highend
There is <curfolder>?

Re: Name a report after parent fodler.

Posted: 05 May 2023 19:01
by sl23
Ah, so I need to use this: new() ?

Re: Name a report after parent fodler.

Posted: 05 May 2023 19:04
by highend
Why should you need that?

Re: Name a report after parent fodler.

Posted: 05 May 2023 19:18
by sl23
Haha! I dunno what I need tbh!

Re: Name a report after parent fodler.

Posted: 13 May 2023 12:38
by kiwichick
sl23 wrote: 05 May 2023 19:18 Haha! I dunno what I need tbh!
Replace "Report.m3u" with "<curfolder>.m3u"

Re: Name a report after parent fodler.

Posted: 17 May 2023 18:30
by sl23
Oh I didn't realise highend was being so literal! Not used to that! :oops:
Thanks to you both.

Re: Name a report after parent fodler.

Posted: 18 May 2023 05:48
by kiwichick
sl23 wrote: 17 May 2023 18:30 Thanks to you both.
You're welcome ☺️