Selecting one file at a time

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
chray32
Newbie
Posts: 1
Joined: Tue Oct 13, 2015 5:53 am

Selecting one file at a time

Post by chray32 » Tue Oct 13, 2015 6:13 am

Forgive me for being a novice at scripting but I was hoping to borrow from the community of knowledge.

I am using Macro Scheduler 14 to automate the actions of Readiris, an OCR program. My initial script was good but now I need the following:
1. Open the Redaris program (Done)
2. Open the file open box (DONE)
3. Select ONE file at a time to process and NOT a batch. The file names will change everyday. The number of files in the folder will vary everyday as well. (NEED HELP)
4. Process File (DONE)
5. Save and FTP (DONE)

I tried using the getfilelist without success and would like to know if anyone has accomplished in the past.

Thanks and Regards,

CR

hagchr
Automation Wizard
Posts: 331
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

Re: Selecting one file at a time

Post by hagchr » Tue Oct 13, 2015 7:41 am

Hi, maybe this will help:

Code: Select all

GetFileList>C:\Users\.....\*.*,strFileList,;
Separate>strFileList,;,file_names
MessageModal>Num Files: %file_names_count%
 
Let>k=0
While>k<file_names_count
  Let>k=k+1
  MDL>file_names_%k%
EndWhile

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts