Four Js Development Tools Forum

Discussions by product => GDC => Topic started by: Gregory S. on March 24, 2009, 09:16:01 pm



Title: Mac Client
Post by: Gregory S. on March 24, 2009, 09:16:01 pm
Hello,

I was wondering if anyone had tried using fgl_putfile() and the shellexec frontend function on Mac OSX?

Thanks,

Greg


Title: Re: Mac Client
Post by: . on March 25, 2009, 08:26:19 am
Hi Greg,
What GDC version are you using ?

file transfer (put/getfile) is expected to work the same way as on the linux version (you've to be sure GDC is allowed to write where you put the file) ; the current directory is the real binary executable, i.e. inside gdc.app bundle (from memory, gdc.app/Contents/MacOS/)

For ShellExec, we're basically calling "open". So the command you pass to GDC should work when doing "open myCommand" in a terminal.
You just have to know that:
- the syntax accepted by "open" depends on OSX version: we've for instance noticed that open mailto:.... needs to be urlencoded in 10.4 (replace space with %20) while it works correctly without in 10.5
- we don't start a shell, so you've sometimes to fight with quotes.

Hope this helps,
Regards,
Pierre-Nicolas