Rather special file copy question...
Posted: 02 Nov 2019 14:49
Hi,
I never did a XYplorer script before and from the docs I was unsure how to approach this:
I have a folder full of .jpg files and one file called default.jpg.pnt.
What I need to do is, for each .jpg file in the current folder, I need to create a copy of the default.jpg.pnt but with the name of the .jpg files instead of the "default".
So
filename.jpg will duplicate the default.jpg.pnt file as filename.jpg.pnt
otherfile.jpg will duplicate the default.jpg.pnt file as otherfile.jpg.pnt
and so on...
My idea is, that I have some kind of list of all the .jpg files in the folder as an array and then copy the default.jpg.pnt file for each .jpg file replacing the first part of the name with the name from the array.
If anybody has some pointers for me how to do this, I'd be thankful. In the meantime I'll try how far I can get on my own...
Thanks and cheers,
Tom
I never did a XYplorer script before and from the docs I was unsure how to approach this:
I have a folder full of .jpg files and one file called default.jpg.pnt.
What I need to do is, for each .jpg file in the current folder, I need to create a copy of the default.jpg.pnt but with the name of the .jpg files instead of the "default".
So
filename.jpg will duplicate the default.jpg.pnt file as filename.jpg.pnt
otherfile.jpg will duplicate the default.jpg.pnt file as otherfile.jpg.pnt
and so on...
My idea is, that I have some kind of list of all the .jpg files in the folder as an array and then copy the default.jpg.pnt file for each .jpg file replacing the first part of the name with the name from the array.
If anybody has some pointers for me how to do this, I'd be thankful. In the meantime I'll try how far I can get on my own...
Thanks and cheers,
Tom