How do I automatically show a console window when launching a compiled app on a Mac?

3 ビュー (過去 30 日間)
Matt J Dunn
Matt J Dunn 2016 年 12 月 13 日
回答済み: Taylor 2024 年 4 月 4 日 13:47
I understand that on Windows systems, when running a compiled MATLAB app, a DOS window also appears which acts as the console. I also understand that using a Mac, it is possible to launch compiled apps from the console, by navigating to the './applauncher' file.
I fear that asking end users to navigate the filesystem using the Terminal may be a bit too advanced, and would prefer that a console window automatically appear when the app is launched, just as (I'm told) it does on a PC.
Is there some way of either specifying to the MATLAB compiler that I want a Terminal window to launch when the .app file is clicked, or some way of modifying a shortcut to the .app which brings up the Terminal window at the time of app launch?
  2 件のコメント
David
David 2024 年 3 月 25 日
Necro bump - did you ever get this figured out?
Matt J Dunn
Matt J Dunn 2024 年 3 月 26 日
Unfortunately not.

サインインしてコメントする。

回答 (1 件)

Taylor
Taylor 2024 年 4 月 4 日 13:47
Have you tried just calling
system("")
in the startup function of you app?

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by