WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Incremental number with number of pages (Read 380 times)
duck
YaBB Newbies
*
Offline



Posts: 17
Incremental number with number of pages
Jan 17th, 2017 at 6:55pm
 
Hello
it's possible create a script to work in Watchdirectory with this situation.

Rename the pdf files to Year_Month_DAY_Sequence_Numberofpagesthatthepdfhave.pdf

Imagine you have a pdf with 144 pages
rename to
2017_01_17_1_144.pdf

Second pdf with 178 pages, rename to

2017_01_17_2_178.pdf

Etc, etc.


Thank you for your support.

Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Incremental number with number of pages
Reply #1 - Jan 18th, 2017 at 6:45pm
 
Hello,

That would be hard to implement. WatchDirectory typically reacts to individual file events. How can WD know if it detects a file there will be 178 (your example) more files to follow and this file is page 2 out of 178 pages (files)?

Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1