AnsweredAssumed Answered

using a date in a filename...

Question asked by GeoffreyMartin on May 19, 2011
Latest reply on May 19, 2011 by GeoffreyMartin

Title

using a date in a filename...

Post

Hello all,

I've created a variable to make a file name for a PDF created in FM to then send out to a group of folks via email in a script.  I would like to use the date in the filename, but it appears that "/" aren't allowed in filenames.  The file is a report over a period of days so I am trying to identify it is as such.  Any ideas?

This is the current variable.

"file:" & Get (DesktopPath) & "FS Rpt ending //" & ".pdf"

It returns an error message stating 

“.pdf” could not be created on this disk.  Use a different name, make more room on the disk, unlock it or use a different disk.

Here's another iteration:

"file:" & Get (DesktopPath) & "FS Rpt ending" & Get (CurrentDate) & ".pdf"

Here's that error:

“2011.pdf” could not be created on this disk.  Use a different name, make more room on the disk, unlock it or use a different disk.

Outcomes