Executing an external application

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 03:32, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.5 
Platform:   Windows  ; Mac  ;  Mac OSX  ; 
Language(s) :   C.O.F.F.E.E  ;

---------
I'm using GeExecuteProgram to execute an external application. But I want the application to just open and not load any document. But it seems the GeExecuteProgram requires a filename reference. Is there any way to simply open the external application?

Rui Batista

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 05:25, xxxxxxxx wrote:

Have you tried setting it to NULL?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 05:32, xxxxxxxx wrote:

I get a

(5) Incompatible values... NIL/OBJECT

error 😞

Even so, I found a workaround. I created an empty file to load. Not perfect, but works.

Rui Batista

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 09:08, xxxxxxxx wrote:

That's not a workaround - that is how it should be done. 🙂

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 09:23, xxxxxxxx wrote:

But imagine I want to start an application that doesn't open files. Imagine, lets say, a clock application. This type of application only shows a windows and doesn't deal with any files. It doesn't even has a file type associated.
How can I cann such an application if I must provide a file? 😉

Rui Batista

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 09:27, xxxxxxxx wrote:

No, that´s a workaround. Pass an empty filename object instead. That works.

var file = new(Filename);
GeExecuteProgram(fn,file);

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 09:39, xxxxxxxx wrote:

Oh, gotcha!! 🙂
Thank you.

Rui Batista

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/03/2005 at 10:22, xxxxxxxx wrote:

Oh, I misinterpreted as an empty Filename, not an actual empty file! Sorry, eyes were still blurry, no coffee, my dog ate it and ... 😉

Yes, you use an empty Filename object.