renaming images - possible without string manipulations? - LUA Scripting - CHDK Forum

renaming images - possible without string manipulations?

  • 1 Replies
  • 4582 Views
renaming images - possible without string manipulations?
« on: 25 / November / 2008, 23:53:52 »
Advertisements
I would like to rename the pics i'm shooting (from the same script) but i'm unsure of how to go about it without string manipulations.

i need a way to determine if a file has been processed or not. the first method to come to mind is to check whether the file starts with IMG. But I don't think there's a way to analyze substrings without the strings lib.

---

background on how i'm going about this.

running a loop and the first action inside that loop is to check for files that need renaming. then i check to see if a pic has been taken at this minute yet. if not, shoot.

*

Offline reyalp

  • ******
  • 14126
Re: renaming images - possible without string manipulations?
« Reply #1 on: 26 / November / 2008, 01:11:34 »
Could you move them to a different directory as you process them ?

I hope to get some time over the long weekend to finish the string lib stuff, but no promise.

If you are willing to mess with a little C code, hacking some simple string functions into lua wouldn't be hard.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal