Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

enigma2k

macrumors regular
Original poster
May 12, 2010
189
58
I have a Applescript that builds a invoices.numbers from a csv file and saves it as a pdf.

Now i would like to save a pdf with a specific date (not the today date).

The code for saving the pdf is:
Code:
set chemin_du_gros_PDF to "" & dossier_de_stockage & (do shell script "date +invoice-%Y%m") & ".pdf"

Instead of the current month I want to save it as month-2. So 2 month before the current month.

Is there any easy way to do this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.