Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Helpful Harry Newsgroups: comp.databases.filemaker Subject: Re: Need Help - Current Date in the File Name when export Date: Wed, 29 Jan 2014 13:08:26 +1300 Organization: Aioe.org NNTP Server Lines: 33 Message-ID: <290120141308265673%HelpfulHarry@BusyWorking.com> References: <666d85fd-032f-43a6-952a-a0a8fd354500@googlegroups.com> NNTP-Posting-Host: UUwpJWjmxPkcmimTIvXc7w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Thoth/1.5.4 (Carbon/OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.databases.filemaker:1681 In article , Howard Schlossberg wrote: > On 1/28/2014 1:47 PM, Tom E wrote: > > I see the output to put the file name in the Specify Output box - but not > > sure how to script the current date to each file that I export? > > > > On Tuesday, January 28, 2014 12:32:40 PM UTC-5, Tom E wrote: > >> Version FM12 > >> > >> > >> > >> Still having issues creating a script that puts the current date in a file > >> name. The current script I have saves the export to a PDF. When you > >> specify the output file name in Specify Output File I don't see any other > >> options? > > > Set Variable [ $filePath ; > get(desktopPath) & "MyFile_" & > Let( dt = get(currentdate); > year(x) & > right("00" & month(x); 2) & > right("00" & day(x); 2) > ) & ".ext" > ] > > Save as PDF [ $filePath ] I haven't used the Let function, so I'm not sure, but is there a typo there? Should the "x" in the three date functions be "dt"? Helpful Harry :o)