WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Incremental number with number of pages
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1484675703

Message started by duck on Jan 17th, 2017 at 6:55pm

Title: Incremental number with number of pages
Post by duck on 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.


Title: Re: Incremental number with number of pages
Post by Gert on 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)?


WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.