I would need to see or know what your current script it. The Get(DesktopPath) & "filename.pdf" should work fine.
it is not much more than
setvariable $$desktop=(get(desktop path)
export as pdf with filename=$$desktop&"test.pdf"
Try putting the name with the variable itself, and see if that helps?
Set Variable [$path;Get(Desktop)&"test.pdf"]
Export with the filename as $path
intex kirjoitti 27.1.2013 kello 18.44:
But with FM 10 and Windows 8 we get something like "couldn´t write because of no rights or wrong filename". Of course the user has full rights to write to his desktop. So what is going wrong here ? Do we have to create different file/path names on Windows 8 ?
FM10 and Windows 8 sounds like a bad combination. FMP 10 is most probably not supported under Windows 8.
Stefan Schutt, Mouse Up, Finland
Echoing what Stefan says: don't assume that it will work on Windows 8 with a version of FM that is two cycles behind.
Having said that, Christine is close but you would need to add "file:" to the start of the variable, or "filewin:" or "filemac:" depending on the platform.
I have 10 on my laptop that has Windows 8 on it and it works fine, including the PDF generation to Desktop, it just did not like the path having text added to it in the PDF generation option.
by the way - manually it works. You can write to desktop without any problem.
I wrote an alternative script, which doesn´t work either:
set variable $$desktop=get (desktop path)&"test.pdf"
save as pdf ($$desktop)
it works without that on Win 7 since years - only I don´t have FM 10 on Win 7
FM 12 and Win 8 without "filewin:" works too
now I installed FM11 on this Windows 8 machine, changed nothing to the script and now it works like a charm. So it´s definitely some kind of bug in FM10 at least in conjunction with Windows 8.