Okay, thank you! Somehow in working through this, I figured out what
I was doing wrong.
I didn't have the Set Variable portion of the script set up correctly.
Now it is working! The ability to let any user save a pdf to their
desktop is great.
It is going to save me a lot of work.
Thanks for your patience with this self-taught
filemaker user who is clearly still learning. : )
Sue
On Feb 5, 2010, at 1:16 PM, Stephen Wonfor wrote:
Sue
Sometimes it can help to prepend "filemac:" or "filewin:" to the
output path.
eg. This is a bit long winded perhaps but it is a simple cut and
paste between scripts and is easy to debug.
Set Variable [ $FileName; Value:"Application_Status.pdf" ] // I
always include the expected file extension
Set Variable [ $FilePath; Value:Get ( DocumentsPath ) ]
Set Variable [ $Platform; Value:"file" & Choose ( Abs ( Get
( SystemPlatform ) ) ; "1"; "mac:" ; "win:" ) ]
Set Variable [ $Output; Value:$Platform & $FilePath & $FileName ]
Save Records as PDF [ File Name: “$Output”; Automatically open;
Records being browsed ]
Stephen
----------
"I have discovered that there are two types of command interfaces in
the world of computing: good interfaces and user interfaces." ---
Daniel J. Bernstein
On Feb 5, 2010, at 1:11 PM, Sue wrote:
Hi all,
I posted this question before and got a couple of helpful replies,
which I sincerely appreciate.
However, for the life of me, I can not get the
solutions suggested to work.
Using the exact method below, I get the following message:
"$file_name" can not be created on this disk.
Use a different name, make more room on the disk,
unlock it or use a different disk."
I am really unsure what is wrong as I can specify my desktop
as the file path in the script where you specify the filepath,
and use the same filename for the pdf, and it works fine--no error.
That suggests that my $fiel_name is generating an incorrect filepath,
but when I compare the filepath generated by the calculation,
to the one generated when I just select a file on my desktop,
they are the identical.
What am I doing wrong?
Thank you for any help.
Sue
On Jan 6, 2010, at 11:27 AM, Jeff Almquist wrote:
Hi Sue,
I accomplish this by first setting a variable ("$file_name"), with
the following:
Case ( Abs ( Get ( SystemPlatform ) ) = 1 ; "filemac:" ;
"filewin:" ) &
Get ( DesktopPath ) & your_file_name_calculated_from_record_data
Then I just use that "$file_name" variable as the "Output File
Path List" in the "Specify output file" setting of both the
initial "Save Records as PDF" step and any subsequent "Save
Records as PDF" steps when I want to "Append to existing PDF".
Jeff
On Jan 6, 2010, at 11:06 AM, Sue wrote:
Hi Folks,
I have written some scripts that have a "Save Records as PDF"
step and subsequent steps that also have the "Save Records as
PDF" with the "Append to existing pdf" option selected.
I am able to use the script if I set the Specify Output File to a
specific file name on a specific computer, but I need multiple
users (using the file via Filemaker Server) to be able to use the
script and have the generated pdf saved to the desktops on their
own computers, and have the "append to existing pdf" steps then
save to the file that was created on their computer.
I suspect there is a way to do this without individually
identifying all their computers as options in the Specify Output
File.
Can anyone tell me how to accomplish this, or refer me to a web
page that explains how to do this?
Thanks very much for any help!
Sue