Launch Terminal

How can I launch the Terminal app and execute a command? I want the user to be able to see the results.

Thanks!

Use SHELL and SHELL.RESULTS

This seems somewhat unusual, but if you’re sure that’s what you really want…

How about AppleScript? Something like:

tell app "Terminal"
  do script scriptOrApp
end tell

But typically, Dave’s suggestion is how you’d handle it.

Sorry, I should have clarified. I want to launch Terminal, then close my Xojo app. The Terminal script will download the latest version of the app, then re-launch.

Ah. This is not a simple problem, but fortunately one I’ve already solved across platforms. Have you looked into the open-source Kaju project?

https://github.com/ktekinay/Kaju

If for some reason you absolutely must launch terminal you can write the script as a .sh in text edit, set it as executable with chmod, and then when you launch it with folderitem.launch the terminal should open.

But I would recommend Kem’s updater.