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

  • From: Hamid <aitouznaghamid@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 16 Nov 2016 00:07:01 +0000

thanks  very much for your prompt reply Brian.


1. I am using windows eight at work.

2., No, not at all, it can be anything as long as it does the job.

3. I use a an HP scanner. When I launch the scanning utility and click 
on the scan button, a dialog appears showing the progress. then whenthe 
scanning is finished an edit box appears on the screen in which I am 
supposed to enter the increments.
Usually my sighted workmates prepare all the documents for me 
beforehand. U usually scan all the documents  of a specific year 
sequentially until i finish them then I move to the next or previous year.

4. Normally the files are organized  by year with some exceptions.

5. So far, I have done the year 2016, followed by 2015 and I am supposed 
to go backward year by year  back to the year 2000  or maybe a bit earlier.

Again thanks a million for your quick response!
On 15/11/2016 23:23, Brian Vogel wrote:

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




__________�

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

Other related posts: