Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #1746

Re: Need Help - Current Date in the File Name when export

From Howard Schlossberg <howard@nospam.fmprosolutions.com>
Newsgroups comp.databases.filemaker
Subject Re: Need Help - Current Date in the File Name when export
Date 2014-03-06 10:49 -0800
Organization FM Professional Solutions
Message-ID <lfafvm$8iq$3@news.motzarella.org> (permalink)
References <b1c9db1d-4af2-40ed-9e35-6376c2efae07@googlegroups.com> <8082f118-ae5d-4b97-bb42-c2910f252855@googlegroups.com>

Show all headers | View raw


You need to change the variable, as that is where your path is.

Something like this perhaps:

"filewin:" & Get(DesktopPath) & "TelePresence/Holds/TechHolds_" &
      Let( dt = Get(CurrentDate);
         Year(dt) &
         Right("00" & Month(dt); 2) &
         Right("00" & Day(dt); 2)
      ) & ".pdf"

That will save a file today called "TechHolds_20140306.pdf" to
your desktop/TelePresence/Holds/ folder.


On 3/6/2014 10:30 AM, Tom E wrote:
> Thanks Howard for your patience! I now see a file with current date at the end. It pushes the file to the desktop since I just use the Variable in the
> Save Records as PDF. If I want to push it to a folder do I need to change something in the script below?
>
> "filewin:" & Get(DesktopPath) & "TechHolds_" &
>       Let( dt = Get(CurrentDate);
>          Year(dt) &
>          Right("00" & Month(dt); 2) &
>          Right("00" & Day(dt); 2)
>       ) & ".ext"
>
>
>
>
> 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?
>>
>>
>>
>> Any help would be greatly appreciated!
>

Back to comp.databases.filemaker | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-01-28 09:32 -0800
  Re: Need Help - Current Date in the File Name when export clkaufmann@gmx.ch (Christoph Kaufmann) - 2014-01-28 20:12 +0100
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-01-28 13:47 -0800
    Re: Need Help - Current Date in the File Name when export Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2014-01-28 14:50 -0800
      Re: Need Help - Current Date in the File Name when export Helpful Harry <HelpfulHarry@BusyWorking.com> - 2014-01-29 13:08 +1300
        Re: Need Help - Current Date in the File Name when export Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2014-01-28 20:18 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-01-29 10:25 -0800
    Re: Need Help - Current Date in the File Name when export JayBee <Jennifer_Beecroft@hotmail.com> - 2014-01-30 02:02 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-05 18:44 -0800
    Re: Need Help - Current Date in the File Name when export Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2014-03-05 20:47 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-06 10:30 -0800
    Re: Need Help - Current Date in the File Name when export Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2014-03-06 10:49 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-06 10:44 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-06 10:47 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-06 11:17 -0800
    Re: Need Help - Current Date in the File Name when export Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2014-03-06 12:49 -0800
  Re: Need Help - Current Date in the File Name when export Tom E <tevanoff65@gmail.com> - 2014-03-06 11:28 -0800
  Re: Need Help - Current Date in the File Name when export jesusruiz@macfix.mobi - 2016-05-23 21:30 -0700

csiph-web