Subject: Re: [Name Mangler Talk] combine replace with location - HowTo?

From: Erwin Panen <[email-masked]>
Date: Sun, 27 Nov 2016 07:28:12 -0800 (PST)

See my new post here 
<https://groups.google.com/d/msg/name-mangler-talk/ALNzGxo_A6k/UIfID45RCgAJ>
.
Thanks for your continuous help!

On Sunday, 27 November 2016 15:09:46 UTC+1, Many Tricks wrote:
>
> On Nov 27, 2016, at 5:50 AM, Erwin Panen <[email-masked] <javascript:>> 
> wrote: 
>
> > - problem or fact is that the Note 4 adds these photos to specific app 
> related folders and / or modifies their naming scheme. Hence the 
> Screenshot_YYYY-MM-DD etc. 
>
> > => In short: this will make it easier to also be able to use YYYY-MM-DD 
> naming style to quickly filter on the photos that I need, and also do the 
> relevant name mangling! 
>
> I'm sorry to be so bad at understanding what you want, but in your text, 
> you state that the Note 4 is already naming them in the YYYY-DD-DD style 
> ... then you say that's how you want to rename them. But to do that, all 
> you have to do is remove the "Screenshot_" bit at the front, which you've 
> already done in step one of your renaming. Just leave off step two, and 
> you'll have files that start YYYY-MM-DD... 
>
> What would help me better understand is a couple of examples of the 
> "before" and "after" filenames, as I can then see exactly how you're trying 
> to transform them. 
>
> thanks; 
> -rob.

---

From: Rob Griffiths <[email-masked]>
Date: Sun, 27 Nov 2016 06:09:44 -0800

On Nov 27, 2016, at 5:50 AM, Erwin Panen <[email-masked]> wrote:

> - problem or fact is that the Note 4 adds these photos to specific app related folders and / or modifies their naming scheme. Hence the Screenshot_YYYY-MM-DD etc.

> => In short: this will make it easier to also be able to use YYYY-MM-DD naming style to quickly filter on the photos that I need, and also do the relevant name mangling!

I'm sorry to be so bad at understanding what you want, but in your text, you state that the Note 4 is already naming them in the YYYY-DD-DD style ... then you say that's how you want to rename them. But to do that, all you have to do is remove the "Screenshot_" bit at the front, which you've already done in step one of your renaming. Just leave off step two, and you'll have files that start YYYY-MM-DD...

What would help me better understand is a couple of examples of the "before" and "after" filenames, as I can then see exactly how you're trying to transform them.

thanks;
-rob.

---

From: Erwin Panen <[email-masked]>
Date: Sun, 27 Nov 2016 05:50:26 -0800 (PST)

Well, this is in fact a stand alone question I'd like to be able to use:
Let me explain a bit:
- I use an Android phone for taking lots and lots of photo's. This is work 
related, as you know a picture is often times better than a thousand words.
- Since it is a Note 4, I specifically use it to take notes on certain 
photo's
- The Note 4 has a couple of ways to use it's S-pen. Most of the time I 
take a picture of a picture to annotate it but it also can take a partial 
screen grab that you can then annotate.
This is all fine, but I am trying to set up a workflow to:
- copy these photo's to a specific hard drive (a wifi harddisk)
- problem or fact is that the Note 4 adds these photos to specific app 
related folders and / or modifies their naming scheme. Hence the 
Screenshot_YYYY-MM-DD etc.
- In order to more easily see the relation between the photos (often you 
take some detail that later on you can not relate to what message you 
wanted to bring with the relevant photo.) I like to put them all in a 
single directory specific to the project. I then use Lightroom and 
Scrivener to build my report. Usually the annotations are made immediately 
or very shortly after taking the photo. That's why renaming them according 
to the identical scheme as the normal average photo will help to put them 
in the correct setting.

On Sunday, 27 November 2016 14:27:53 UTC+1, Many Tricks wrote:
>
>
>
> > Would you mind posting an example using YYYY-MM-DD and / or HH-MM-SS? 
> > It'd be very interesting to learn how this goes! 
>
> I'm not sure I understand ... your beginning filename already uses the 
> hyphenated version, so all you'd have to do is remove the screenshot_ bit, 
> isn't it? 
>
> regards; 
> -rob.

---

From: Rob Griffiths <[email-masked]>
Date: Sun, 27 Nov 2016 05:27:52 -0800

On Nov 27, 2016, at 4:25 AM, Erwin Panen <[email-masked]> wrote:

> I couldn't find my posts after posting, so I gather my group membership needed approval or the posts maybe.

Yes, your initial post to the group needs to be approved, to prevent spammers from taking over the discussion.

> Anyway, I found this post, which led me to this construction.

Yes, that works, though it's harder to understand (given regular expressions' involvement). Note that the first step doesn't need to have the regular expression box checked; it's just removing text at the front.

> One thing went wrong: all jpg were modified to png? I still don't know why..

I don't see any reason in the screenshot, at least, that would cause the filenames to lose their extensions. The screenshot even shows the extensions remaining intact. Were there any more steps in your process?

> It'd be very interesting to learn how this goes!

I'm not sure I understand ... your beginning filename already uses the hyphenated version, so all you'd have to do is remove the screenshot_ bit, isn't it?

regards;
-rob.

---

From: Erwin Panen <[email-masked]>
Date: Sun, 27 Nov 2016 04:29:35 -0800 (PST)

Thanks a ton!

On Sunday, 27 November 2016 05:10:44 UTC+1, Erwin Panen wrote:
>
> Hi,
>
> I'm completely new to Name Mangler, so please bear with me...
>
> I have a bunch of files named like this:
> Screenshot_2016-08-22-20-45-34.jpg
>
> They need to be renamed to this:
> 20160822_204534.jpg
>
> What is the best way to go about this?
> Is there any way to use expressions like:
> Replace YYYY-MM-DD-HH-MM-SS.jpg with YYYYMMDD_HHMMSS.jpg?
>
> Thank you for helping out!
>

---

From: Erwin Panen <[email-masked]>
Date: Sun, 27 Nov 2016 04:25:44 -0800 (PST)

Hi Rob,

Thanks a ton!
I couldn't find my posts after posting, so I gather my group membership 
needed approval or the posts maybe.

<https://lh3.googleusercontent.com/-KhUtDHtJaLg/WDrQbnVqbvI/AAAAAAAAgmE/Vywu88tqoaIiB4Lyy2yK3VwFLOnLuf7dQCLcB/s1600/Picture-4.png>
Anyway, I found this 
<https://groups.google.com/d/msg/name-mangler-talk/HxvbBTf90xA/Y6KvscdvAgAJ> 
post, which led me to this construction.
I didn't fully understand at first, but understood while doing. Thanks! 
Keep up the good work!
One thing went wrong: all jpg were modified to png? I still don't know why..

On Sunday, 27 November 2016 05:38:39 UTC+1, Many Tricks wrote:
>
> On Nov 26, 2016, at 1:38 PM, Erwin Panen <[email-masked] <javascript:>> 
> wrote:\ 
>
> You can use regular expressions, which are powerful but complex. However, 
> in this case, there's a much easier way. Because the positions are the same 
> and always known, you can use a three-step renaming setup: 
>
> 1) Remove the 'screenshot_' bit. 
> 2) Find all the '-' and replace with nothing. 
> 3) Insert the underscore at the proper spot in the name. 
>
> A screenshot below shows how this looks, and the attached (zipped) Name 
> Mangler action should open in Name Mangler after unzipping. Please please 
> please test on a copy of your files. 
>
> regards; 
> -rob. 
>
> ---------- 
>
>

---

From: Rob Griffiths <[email-masked]>
Date: Sat, 26 Nov 2016 20:38:35 -0800

On Nov 26, 2016, at 1:38 PM, Erwin Panen <[email-masked]> wrote:\

> They need to be renamed to this:

You can use regular expressions, which are powerful but complex. However, in this case, there's a much easier way. Because the positions are the same and always known, you can use a three-step renaming setup:

A screenshot below shows how this looks, and the attached (zipped) Name Mangler action should open in Name Mangler after unzipping. Please please please test on a copy of your files.

regards;
-rob.

----------

---

From: Erwin Panen <[email-masked]>
Date: Sat, 26 Nov 2016 13:38:14 -0800 (PST)

Hi,