getDesktopFolder

Hi all,

var dd = plugins.file.getDesktopFolder()

On Windows this returns:

C:\Documents and Settings\UserName\Desktop

On Mac it returns:

/

The Mac version does not seem to point to the desktop folder at all… bug or feature?

Thanks,

Rich Coiulombre

I think this is a bug. I had the same issue.

You can use the tools plugin Servoy Components – Plugins, Beans, Web Components, Angular Services & Servoy Developer Consulting to get the user home dir and add the desktop folder to the path…

Hi Rich,

Servoy Developer
Version R2 2.2.3-build 335
Java version 1.5.0_05-48 (Mac OS X)

I’ve come across similar issues with the save dialogue on Mac !

I pick up a filename entered through a dialogue and then use it in the following method step:

plugins.file.showFileSaveDialog(file_name + '.csv');

This works fine on Win but shows an empty filename in the save dialogue on Mac !

Maybe I’ll spend some time checking all the other file plugin functionality between platforms !:idea:

Cheers
Harry [/b]

Hi Harry & Marcel,

First thanks for your help! I’ve used Marcel’s indespensible Tools plugin and it is working brilliantly!

Thanks,

Rich Coulombre

Harry Catharell:
This works fine on Win but shows an empty filename in the save dialogue on Mac !

Maybe I’ll spend some time checking all the other file plugin functionality between platforms !:idea:

Hi Harry, this is a known bug, we are all waiting for Apple to fix it. :cry: