If that is all the script does then you could try clicking the 'Perform with full access privileges' box at the bottom of the script definition.
Off hand, I'd guess that the options selected for the guest account privilege set do not allow exporting data. Sorbsbuster's suggestion sounds like a very good way to resolve this.
Thanks for the help. Your suggestin sort of works.
On the IPad it will create a PDF and send an email but the PDF is misisng (not attached to the email). On my computer (PC windows 7) I still get an error message "FileName.pdf" could not be created on the disk. Use a different name, make more room on the disk, unlock it or use a different disk. I am running FM Pro using admin e.g. run as administrator
Also, when I open the PDF, it is not exactly the layout on the screen but reduced in size. When I check the origianl on my computer the PDF which has been created is the same size a the print preview. Is it possible to make the PDF the size of the layout form which is designed to fit an Ipad
Set Varilable [$FilePath; Value:"filewin:" & Get(DocumentsPath) & "FileName.pdf"]
And I prefer:
Set Varilable [$FilePath; Value:"file:" & Get(DocumentsPath) & "FileName.pdf"]
as the result will work on both mac and windows platforms. (Maybe this will help on the iPad.)
Yeah it works, using ":" was the answer to my problem is seem. Thank you very much. I can now create a PDF and email it.