Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to: open every file in a folder and run macro
#1
Hello,

My publisher send me request: convert 650 pdf files to outlines.
I have created macro, that is triggered by F3 key.
Now I need to open every file to run a macro.

Could be possible to automate such process and make all files automatically?

Files are stored in path: D:\KATALOG_DE
I need only pdf files to be processed.

Any help appreicated

Best,
Piotr
#2
Macro Macro2657
Code:
Copy      Help
str folder="D:\KATALOG_DE"
str files="*.pdf"

ARRAY(str) a; int i
GetFilesInFolder a folder files
for i 0 a.len
,sub.File a[i]


#sub File
function str&file_

sel mes(file_ "" "YNC")
,case 'N' ret
,case 'C' end

out file_
spe 100

;Move here your macro that processes a single file.


Forum Jump:


Users browsing this thread: 1 Guest(s)