Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.filemaker > #1677 > unrolled thread
| Started by | Tom E <tevanoff65@gmail.com> |
|---|---|
| First post | 2014-01-28 09:32 -0800 |
| Last post | 2016-05-23 21:30 -0700 |
| Articles | 18 — 6 participants |
Back to article view | Back to comp.databases.filemaker
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
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-01-28 09:32 -0800 |
| Subject | Need Help - Current Date in the File Name when export |
| Message-ID | <b1c9db1d-4af2-40ed-9e35-6376c2efae07@googlegroups.com> |
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!
[toc] | [next] | [standalone]
| From | clkaufmann@gmx.ch (Christoph Kaufmann) |
|---|---|
| Date | 2014-01-28 20:12 +0100 |
| Message-ID | <1lg798u.101bqhoxdfvwN%clkaufmann@gmx.ch> |
| In reply to | #1677 |
Tom E <tevanoff65@gmail.com> 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 a variable $path (or whatever) for the full file path and put it in the Specify Output file dialogue. -- Christoph Kaufmann http://clk.ch
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-01-28 13:47 -0800 |
| Message-ID | <666d85fd-032f-43a6-952a-a0a8fd354500@googlegroups.com> |
| In reply to | #1677 |
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? > > > > Any help would be greatly appreciated!
[toc] | [prev] | [next] | [standalone]
| From | Howard Schlossberg <howard@nospam.fmprosolutions.com> |
|---|---|
| Date | 2014-01-28 14:50 -0800 |
| Message-ID | <lc9c8a$ean$3@news.motzarella.org> |
| In reply to | #1679 |
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 ]
[toc] | [prev] | [next] | [standalone]
| From | Helpful Harry <HelpfulHarry@BusyWorking.com> |
|---|---|
| Date | 2014-01-29 13:08 +1300 |
| Message-ID | <290120141308265673%HelpfulHarry@BusyWorking.com> |
| In reply to | #1680 |
In article <lc9c8a$ean$3@news.motzarella.org>, Howard Schlossberg
<howard@nospam.fmprosolutions.com> 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)
[toc] | [prev] | [next] | [standalone]
| From | Howard Schlossberg <howard@nospam.fmprosolutions.com> |
|---|---|
| Date | 2014-01-28 20:18 -0800 |
| Message-ID | <lc9vdm$e9e$3@news.motzarella.org> |
| In reply to | #1681 |
On 1/28/2014 4:08 PM, Helpful Harry wrote:
> In article <lc9c8a$ean$3@news.motzarella.org>, Howard Schlossberg
> <howard@nospam.fmprosolutions.com> 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)
>
Oops, yes. Thanks for catching that, Harry. I usually use the 'x' when
there is only one variable in my Let() calcs, but I started out writing
it today with 'dt' for clarification. Turned out to be less clarifying
then intended. I also should have included FileMaker's file "protocol"
(filewin or filemac) for purposes of the export path. It should be:
Set Variable [ $filePath ;
"filewin:" & get(desktopPath) & "MyFile_" &
Let( dt = get(currentdate);
year(dt) &
right("00" & month(dt); 2) &
right("00" & day(dt); 2)
) & ".ext"
]
And the result of that, if run right now on my Windows machine, would be:
filewin:/C:/Users/Howard/Desktop/MyFile_20140128.ext
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-01-29 10:25 -0800 |
| Message-ID | <34714e81-425c-4a55-af1c-816f745d8bfc@googlegroups.com> |
| In reply to | #1677 |
Howard, Harry Thanks for your help! Sorry for all the questions I'm new to this...do I put this script in the Specify Output File box of the script Save Records as PDF? Do you know of any example files I can look at? Thanks! Tom 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!
[toc] | [prev] | [next] | [standalone]
| From | JayBee <Jennifer_Beecroft@hotmail.com> |
|---|---|
| Date | 2014-01-30 02:02 -0800 |
| Message-ID | <47c8c5c7-6be8-47e2-bf1d-76444b5f1257@googlegroups.com> |
| In reply to | #1685 |
.do I put this script in the Specify Output File box of the script Save Records as PDF? Do you know of any example files I can look at? Hi Tom Use the script step 'set variable'. Give it whichever name you want but make sure that it is preceded by a '$' sign to make sure it can be referenced from within the script! e.g. $filepath. Put the calc from Howard/Harry in the specify value part of your variable dialog box, clicking specify will bring up a dialog box for you to enter the calculaiton. Then in your save records as pdf dialog for output file you should just need to type: $filepath or whatever you called your variable... Just don't forget to precede it with a '$' character. HTH
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-05 18:44 -0800 |
| Message-ID | <dc6bec15-84db-49ac-bb63-3ca17b370c32@googlegroups.com> |
| In reply to | #1677 |
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!
I have tried & tried - I must be missing something?
Set Variable:
Name: $TechHolds
Value:
"filewin:" & Get(DesktopPath) & "$TechHolds_" &
Let( dt = Get(CurrentDate);
Year(dt) &
Right("00" & Month(dt); 2) &
Right("00" & Day(dt); 2)
) & ".ext"
Save Records as PDF:
Output File: file:TelePresence/Holds/$TechHolds_.pdf
[toc] | [prev] | [next] | [standalone]
| From | Howard Schlossberg <howard@nospam.fmprosolutions.com> |
|---|---|
| Date | 2014-03-05 20:47 -0800 |
| Message-ID | <lf8ukd$i4r$3@news.motzarella.org> |
| In reply to | #1741 |
On 3/5/2014 6:44 PM, Tom E wrote:
> Set Variable:
>
> Name: $TechHolds
>
> Value:
>
> "filewin:" & Get(DesktopPath) & "$TechHolds_" &
> Let( dt = Get(CurrentDate);
> Year(dt) &
> Right("00" & Month(dt); 2) &
> Right("00" & Day(dt); 2)
> ) & ".ext"
>
>
> Save Records as PDF:
> Output File: file:TelePresence/Holds/$TechHolds_.pdf
Two things:
1) Since you are setting $TechHolds to include the full path, you don't
want to set the output to be a partial path plus the full path.
2) In your Save Records as PDF step, you should just enter the variable
name as your path. Nothing more, nothing less, since the variable
already has the full path.
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-06 10:30 -0800 |
| Message-ID | <8082f118-ae5d-4b97-bb42-c2910f252855@googlegroups.com> |
| In reply to | #1677 |
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!
[toc] | [prev] | [next] | [standalone]
| From | Howard Schlossberg <howard@nospam.fmprosolutions.com> |
|---|---|
| Date | 2014-03-06 10:49 -0800 |
| Message-ID | <lfafvm$8iq$3@news.motzarella.org> |
| In reply to | #1743 |
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!
>
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-06 10:44 -0800 |
| Message-ID | <cab9986d-9a30-4caf-9f9a-c08d6024f794@googlegroups.com> |
| In reply to | #1677 |
> 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!
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-06 10:47 -0800 |
| Message-ID | <716ddc2a-c1e6-4110-a2f8-495e3180517d@googlegroups.com> |
| In reply to | #1677 |
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"
> 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!
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-06 11:17 -0800 |
| Message-ID | <da5c7001-13b2-498e-bbae-879d0d7a45c0@googlegroups.com> |
| In reply to | #1677 |
One other thing I have noticed when it pushes the file name it puts .ext (hidden) at the end of the filename?
[toc] | [prev] | [next] | [standalone]
| From | Howard Schlossberg <howard@nospam.fmprosolutions.com> |
|---|---|
| Date | 2014-03-06 12:49 -0800 |
| Message-ID | <lfan0o$1fe$1@news.motzarella.org> |
| In reply to | #1747 |
That's because you had .ext in your variable path/file name. In my last post, I changed it to .pdf On 3/6/2014 11:17 AM, Tom E wrote: > One other thing I have noticed when it pushes the file name it puts .ext (hidden) at the end of the filename? >
[toc] | [prev] | [next] | [standalone]
| From | Tom E <tevanoff65@gmail.com> |
|---|---|
| Date | 2014-03-06 11:28 -0800 |
| Message-ID | <a49232b7-0f56-4427-a339-1cadec5e7289@googlegroups.com> |
| In reply to | #1677 |
Got it! Thank you!
[toc] | [prev] | [next] | [standalone]
| From | jesusruiz@macfix.mobi |
|---|---|
| Date | 2016-05-23 21:30 -0700 |
| Message-ID | <911cfec0-c686-4d58-b6ea-45369e40464a@googlegroups.com> |
| In reply to | #1677 |
El martes, 28 de enero de 2014, 11:32:40 (UTC-6), Tom E escribió: > 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! Funciono para mi, (works for me) saludos Set Variable [ $Date ; Value: Substitute ( Get ( CurrentDate ) ; "/" ; "_" ) ]
[toc] | [prev] | [standalone]
Back to top | Article view | comp.databases.filemaker
csiph-web