Open an OS X App from a Godot program

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tmattoneill
:warning: Old Version Published before Godot 3 was released.

I would like to have a button open an application on my computer. Is there a way to do this through the Godot script, or do i need to do it through a custom object in C++?

The use is, for example(pseudocode):

on_button_click(app_path):
    window.minimise;
    os.open(app_path); 

I am trying to build a system splash screen for my HTPC that will allow a user, from the couch, to launch various apps rather than having to go through the OS UI. Choose, for example, Steam or Plex or Browser or Netflix.

:bust_in_silhouette: Reply From: Akien

Try this:

func on_button_click(app_path):
    OS.set_window_minimized(true)
    OS.shell_open(app_path)

Cf. OS — Godot Engine (latest) documentation in English