DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: More Autonaming tokens  (Read 5,872 times)

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
More Autonaming tokens
« on: January 08, 2013, 03:59 PM »
Salvete!  Firstly, let me say that I absolutely love Screenshot Captor.  Since I started using it, I have no longer been interested in trying out other screenshot programs!

Now, for my request.  I would like to see some more autonaming tokens.

The one I would like at the moment is similar to %nicename% or %windowtitle% - but I would like some automated cleanup.
I am using some of the files in Sharepoint, and Sharepoint doesn't always like the file names.
I would like an option called %webname% or %cleanwindowtitle% where all the spaces and non-letter/number characters are removed or swapped for - or _ , and the words are CamelCased.

It might be better if, when you add a %webclean% token to the "Default New File Name" box, that the token tells SC to work the magic on your definition.  That is, you could put %windowtitle%_%datetime%%clean% and you would get a cleaned version of %windowtitle%_%datetime%  - so %clean% isn't acually a token, but a command to run on whatever text preceeds the command.

In this fashion you could have %swap[|-%%swap]|-%  which could swap all the [] for - characters in the string.

Some ideas here!

x16wda

  • what am I doing in this handbasket?
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
    • Participated in NANY Challenge Once
Re: More Autonaming tokens
« Reply #1 on: January 08, 2013, 04:17 PM »
I like those ideas, especially the %clean% idea!  (Although my condolences for having to work in SharePoint! :P)
vi vi vi - editor of the beast

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: More Autonaming tokens
« Reply #2 on: January 08, 2013, 04:24 PM »
Ah, yes, SharePoint.  I sort of got drafted into that.  However, I am making the best of it!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: More Autonaming tokens
« Reply #3 on: January 10, 2013, 07:40 PM »
I'm happy to add additional tokens like this.. putting it on my todo list and i'll try to get to it soon.  a new official SC release is overdue.

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: More Autonaming tokens
« Reply #4 on: January 10, 2013, 07:44 PM »
Thanks, Mouser, you're great.  :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: More Autonaming tokens
« Reply #5 on: February 19, 2013, 03:19 AM »
Do you think you could give me a list of characters that need to be cleaned up?

BGM

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 566
    • Participated in NANY Challenge Seven Times
Re: More Autonaming tokens
« Reply #6 on: February 19, 2013, 03:27 AM »
Mouser - whew - I forgot all about this...  Give me a few days and I'll see what I can come up with.  I'll have to remember what I wanted to do.

Original address: https://www.donationcoder.com/forum/index.php?topic=33609.0