Are you using Mac, Windows, or Both?
Get (DesktopPath) is a get function that returns the file path to your current desktop folder. Using this file path in a correctly formatted calclulated file path, should cause the PDF to be saved directly to your desktop.
"... could not be created on this disk. Use a different name, make more room on the disk."
is Filemaker's message telling you that it tried to save your PDF to the specified filepath but it failed for some reason. Nine times out of ten, that error pops up because some picky little detail in your computed file path isn't quite right--so I'd check over your file path very carefully. I don't know if mac systems have to have Filemac: as the first item in the path, as I don't have a Mac system available to test, but it certainly won't fail if you include it for saving a PDF to a Mac directory...
Mac. Here's what I have:
Set Variable [$filePath; Value: Get (DesktopPath) & Lyric Sheets(double colon)PDFName & ".pdf"] (but typing a double colon here is giving me a smiley face)
Save Records as PDF [Restore; No dialog; "$filePath"; Current record]
I've also substituted the $filePath by selecting an actual path via the "Specify output file". However upon navigating there, it insists there be a save as file name, which by default is "Untitled.pdf". So the PDF does get saved there, but is named "Untitled.pdf". In the formula I've taken off the last /Untitled.pdf but then I get the error message I mentioned before.
I don't want the PDFs to be saved to the desktop but rather elsewhere.
I'm trying to figure out how to keep the path but get the file to name itself. I'm wondering if there are things in the above script that need to be replaced with actual data?
If I replace Get (DesktopPath) with Get..., what would be used in there? I tried putting a whole path but it rejected it.
I use a Mac, 10.6.2.
Set Variable[$TITLE;Value;your value]
Save Records as PDF[Restore;no dialog;"$TITLE";Records being browsed]
"Records being browsed" may not be what you want . . . set it how you like.
Your $filepath variable should be entered in the "Specify Output File" dialog. On a Mac "file:../../../Desktop/$TITLE" would put the file on your desktop without using another variable. If you like, enter other path values in place of ".." .
Thanks. Please bear with me; I need to ask this just to be clear, because I'm not that familiar with scripting yet.
What is $TITLE representing, and am I supposed to write "TITLE" like you did, or replace "TITLE" with a filename of my own/which?
And when you say "value; your value" -- which value of mine are we referring to that I'm to replace that word with?
Naturally I don't expect you to know my file names or hard drives, but I'm just asking if any of these indicators in the script are to be replaced by my own personal data, what kind of data are they standing for so that I will know what to replace them with?
Just wanted to add that when I have had that error message come up for me, it was when I had a number as the beginning of the filename variable. Once I changed that, it sorted itself out.
I'm on Mac OSX, Filemaker Pro 10 Advanced.
Look up the "Set Variable" script step in help. Then look up "Save Records as PDF". All will be explained.