[jawsscripts] Re: script that adds numbers each time it is executed

  • From: Brian Vogel <britechguy@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 15 Nov 2016 18:23:14 -0500

Hamid,
        May I ask a couple of questions:

1.  On what platform?  [Windows, Mac OS, Linux, etc.]

2.  Does this have to be a JAWS script?  I can think of ways to do this
using a Windows batch or Power Shell script or the equivalent under a
Unix/Linux environment.

3.  What are you using as the basis for when a file was created and where
it belongs in the sequence, or is that irrelevant so long as everything
from one year is numbered sequentially?

4.  Are the files organized already by year or will you be hitting random
files that could come from different years?

5.  Do you know how many years and what the year range actually is?

Brian

On Tue, Nov 15, 2016 at 6:13 PM, Hamid <aitouznaghamid@xxxxxxxxx> wrote:

Hello all,

I need your help please. I am scanning thousands of documents at work
and I have to rename them according to this specific style. the
documents that were issued for example in the year 2016 should be
renamed as follows:
first document  should be renamed: 1-2016. the second should be renamed
2-2016. The third should be renamed 3-2016 and so on
As you noticed, for all the documents of one year, it's only the first
digits before the dash that keeps increasing, the number after the dash
stays the same until I need to  scan the documents of the previous or
following year.
It sounds like a very easy task, however, when it comes to thousands of
documents it becomes very boring and needs a lot of concentration not to
make mistakes.
Now, I want to write a script that adds an increment each time it is
executed whenever I want to rename the file. I want the increment to be
added only to the number before the dash and not the number after the
dash. Is that possible? if yes, please help me write it.
Thanks to all of you in advance!!
Best regards
Hamid
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts




-- 
*Bri the Tech Guy*          *http://britechguy.com ;<http://britechguy.com>*
brite <britechguy@xxxxxxxxx>chguy@xxxxxxxxx <britechguy@xxxxxxxxx>
  phone/text:  *(540) 324-5032*
"*If it's got you screaming, I'll help you stop!!*"

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: