In the very first I just Select 1 Photo.jpg file Then want to Click a button
This button will Copy the selected file 1 Level UP
Then Rename the photo in to folder.jpg then duplicate the file in the same location and rename in to coverart.jpg
Copy TO ..
Go UP
Rename TO folder.jpg
Copy DUPLICATE AS coverart.jpg
The First Line of this command Copy TO .. Works fine. That Copied The Selected Photo.jpg 1 Level UP.
The 2nd Line of This Command Go UP Works Fine.
Now I Need some Command for auto Select That Copied FileThis is the part Where I am Stuck
If some command Select that File Then
3r & 4th Line will do the rest of Job
The Copy command has an AS argument which you can use to specify the new name of the file.
You can copy the file to folder.jpg and then move it to coverart.jpg in two simple lines. No need for separate renames, and definitely no need to move the file display up to the parent folder.
I'm leaving the exact solution as an exercise as I think you need practise working this stuff out, and handing out complete solutions has not been helping you to learn how to solve things yourself, after such a long time and many questions.
Yes I exactly Need copying a file to that folder it is already in. This is why I Need this duplicate argument.
Yes I know TO .. command to copy things to the parent folder. But the Problem is that after creating the 2 files coverart.jpg and folder.jpg theses files is deselect. But I need to keep Theses files be Selected Then TO .. command can work properly. Can I make my self clear now?
Hi Leo Thanks for the code. But there is a little problem. This Code does not keep my Original file Which file I select before use this button. I need to keep my source file as it is. But This code does not keep my file as it is.
Re-read Leo's code very carefully and think about the problem that you are having. Think about what each word does and does it pertain to the current problem
Thank you Crash for you comments
I have solve this problem but in a different way. I Think maybe there is a easy code can do the same Thing. Here is my Code
This Code does exactly what I want, but maybe it can be simpler, but I can't.
Copy DUPLICATE AS coverart.jpg
Copy DUPLICATE AS folder.jpg
Select NONE
Select coverart.jpg
Select folder.jpg
Copy MOVE TO ..
Go UP
Nicely done that you got it to work! but it could all run with 2 lines. Leo's code will work if you just remove 1 word and 1 space that is attached to the word (5 characters)
Whats the difference between line 1 and line 2? Line 1 is leaving the original file in place so line 2 can run on the original file as well. What is line 2 then doing to the original file that line 1 is not?
Either Leo went to sleep or he was waiting for you to figure it out on your own. I just wanted to encourage his teachings a little since it was an easy fix I don't understand coding very well but this one even I could see Glad you stuck with it and figured it out.