Automatic naming of trec files.

  • 2
  • Idea
  • Updated 3 months ago
I wouldd like Camtasia to automatically name trec files in the same manner as Snagit names PNG files:  2020-04-15_10-42-33.png 
                 (Year-MM-DD_HH-Min-Sec)
Photo of Ed Covney

Ed Covney

  • 1042 Posts
  • 524 Reply Likes

Posted 3 months ago

  • 2
Photo of Steve Comstock

Steve Comstock

  • 13 Posts
  • 6 Reply Likes
Terrible idea. I prefer no automaic naming so I can put in meaningful names.
Photo of Ed Covney

Ed Covney

  • 1042 Posts
  • 524 Reply Likes
It already can use "20-04-15" if you elect to auto name it, else you can manually name it every time. You do know that if you start typing, it'll remove the auto generated name in favor of what you want. Why do you want to remove auto-naming for all users?
(Edited)
Photo of paulwilliamengle

paulwilliamengle

  • 420 Posts
  • 155 Reply Likes
Up-voted. To Ed's point, whenever dev time allows, I think Camtasia is fine to lead with a best practice, but give users the option to customize to their workflow. 
 
Photo of kayakman

kayakman, Champion

  • 8020 Posts
  • 2774 Reply Likes
you can change the auto name format ...

Kayakman's Screencasting Best Practices
https://www.screencast.com/t/QBXzmB0Dr

see item 04

I haven't tried adding minutes and seconds

even if you so configure the auto name, you can still have Recorder prompt for another name 
Photo of kayakman

kayakman, Champion

  • 8020 Posts
  • 2774 Reply Likes
I tried adding HH and FF; got the hour, but only FF for seconds

my auto name string ...

Recorder2019-On-20{YY}-{MM}-{DD}-{HH}-{ff}

any other thoughts for grabbing seconds?
Photo of kayakman

kayakman, Champion

  • 8020 Posts
  • 2774 Reply Likes
but this string gets both hours and minutes

Recorder2019-On-20{YY}-{MM}-{DD}-{HH}-{mm}
Photo of Dubie

Dubie

  • 1681 Posts
  • 1408 Reply Likes
{YY}-{MM}-{DD}-{hh}-{mm}-{ss}

Will give you year,month,day,24hour,minutes,seconds

So example would be

20-4-15-16-24-13       The time is 4:24 pm and 13 seconds
when I started to record the video


Dubie:)
(Edited)
Photo of Ed Covney

Ed Covney

  • 1042 Posts
  • 524 Reply Likes
(And Tech Support didn't know) - they should be paying you !!!
Seconds?
According to MS's PS documentation, "%C" (cap) is an alternate for century, i.e. "20", but using the literal "20" will last for another 980 years.
"%S" is seconds.

I found another section that documents 4 more get-XXXX: ( I like the FileDateTime or FileDateTimeUniversal - both have 4 digit milli-seconds. Both appear to come from the system clock as opposed to the precision counter, "ticks" in my original list.
  • FileDate. A file or path-friendly representation of the current date in local time. The format is yyyyMMdd (case-sensitive, using a 4-digit year, 2-digit month, and 2-digit day). For example: 20190627.

  • FileDateUniversal. A file or path-friendly representation of the current date in universal time (UTC). The format is yyyyMMddZ (case-sensitive, using a 4-digit year, 2-digit month, 2-digit day, and the letter Z as the UTC indicator). For example: 20190627Z.

  • FileDateTime. A file or path-friendly representation of the current date and time in local time, in 24-hour format. The format is yyyyMMddTHHmmssffff (case-sensitive, using a 4-digit year, 2-digit month, 2-digit day, the letter T as a time separator, 2-digit hour, 2-digit minute, 2-digit second, and 4-digit millisecond). For example: 20190627T0840107271.

  • FileDateTimeUniversal. A file or path-friendly representation of the current date and time in universal time (UTC), in 24-hour format. The format is yyyyMMddTHHmmssffffZ (case-sensitive, using a 4-digit year, 2-digit month, 2-digit day, the letter T as a time separator, 2-digit hour, 2-digit minute, 2-digit second, 4-digit millisecond, and the letter Z as the UTC indicator). For example: 20190627T1540500718Z.

Here's my reference site:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powers...

Dubie - did you find a century?

(Edited)
Photo of Dubie

Dubie

  • 1681 Posts
  • 1408 Reply Likes
Never looked in to using century Ed.

I usually name my recordings manually (Save As)  unless I have to do a run of drafts.
Then I date and time name them like I posted above.
(Edited)
Photo of kayakman

kayakman, Champion

  • 8020 Posts
  • 2774 Reply Likes
just passing on for what it's worth ...

when using this "Recorder2019-On-20{YY}-{MM}-{DD}-{HH}-{mm}" string for an auto number format, the resulting files have a more natural Julian date/time name; no more [nothing], -1, -2 etc

example ...

Recorder2019-On-2020-04-16-15-49
Recorder2019-On-2020-04-16-15-50
Recorder2019-On-2020-04-16-15-52