Username: Password:
Remember me
Forum InDesign Add-ons (Scripts, Scripting, and Plug-ins) Simple question. how to get output date+20 days
Simple question. how to get output date+20 days
9:45 amAugust 20, 2011
sebstck
posts 2
Hello guys,
I looked for that on google for hours but did not find anything, i guess i did not use the right keywords.
Is it possible to define a variable representing 20 days after the output date. If today we are the 2011 08 20, it would get the output: 2011 09 09 Something like yyyy MM dd+20. Any help would be more than appreciated!
2:54 pmAugust 20, 2011
David Blatner
posts 823
No, cannot be done with text variables. Sorry!
co-host, InDesignSecrets.com
4:10 pmAugust 20, 2011
John Hawkinson
Cambridge, MA
posts 4
Err, are we talking about text variables, or Javascript variables in scripting, or something else entirely (VB? Applescript)?
If we're talking about a scripting language, just add 20*86400 to the number of seconds. Exactly how depends on the language.
11:58 pmAugust 20, 2011
Thanks for your answers.
That´s a shame it cant be done with text variable as it would be something quite handy for some ppl i guess.
Anyway, is there a kind of plugin to do such a thing on indesign. I never used scripts on it before.