From: Jerry <list_email@icloud.com>
Subject: Re: How to run a GNAT program without starting a terminal session
Date: Wed, 18 Jul 2018 23:59:47 -0700 (PDT)
Date: 2018-07-18T23:59:47-07:00 [thread overview]
Message-ID: <ac4e0071-3a6d-47ad-a9bb-2f7ca36620fc@googlegroups.com> (raw)
In-Reply-To: <pioar6$vha$1@dont-email.me>
On Wednesday, July 18, 2018 at 2:18:31 PM UTC-7, Jeffrey R. Carter wrote:
> Several techniques are discussed here:
>
> https://superuser.com/questions/360247/run-a-shell-script-on-os-x-without-having-a-terminal-window-appear#612072
>
> Platypus is one of them.
Thanks for that.
The Automator suggestion works just like trying to call the shell command from an Applescript--I think it's pretty much the same thing; the app seems to run, delaying for the total of several delay commands, but does not emit any sound.
However, my "Beep" function uses Character'val(7), the ASCII bell--macOS normally interprets this to play the default system sound which for some reason is not making it to my speakers when run from Automator/Applescript but does work when run from terminal. But I have a function called Execute_Shell() which binds to the C command like this: pragma Import(C, system). Then if I put
say hello
as the command string for Execute_Shell and drop it into the Automator workflow as described in your link, it _does_ work correctly. Applescript probably gets the same result.
The Alfred method looks interesting but I'm not going to try it out right now.
The method using the line
/usr/bin/automator /path/to/the/file.workflow
Also works the same--"say" works but not playing ASCII bell. However, it requires launching from a terminal.
Sort-of-bottom-line: Calling the Ada executable in Applescript or Automator without invoking a terminal will allow "say" and probably "afplay" to work but not ASCII bell . ASCII bell works when executing Ada from a terminal and also "say" and probably "afplay".
Jerry
next prev parent reply other threads:[~2018-07-19 6:59 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-17 1:20 How to run a GNAT program without starting a terminal session Jerry
2018-07-17 4:35 ` Jerry
2018-07-17 9:55 ` AdaMagica
2018-07-17 10:08 ` Jerry
2018-07-17 10:23 ` Jerry
2018-07-17 13:13 ` Dennis Lee Bieber
2018-07-17 12:46 ` Björn Lundin
2018-07-17 16:20 ` Jeffrey R. Carter
2018-07-17 21:10 ` Jerry
2018-07-18 6:27 ` Jeffrey R. Carter
2018-07-19 1:41 ` Jerry
2018-07-19 2:31 ` Dennis Lee Bieber
2018-07-17 21:07 ` Jerry
2018-07-17 21:12 ` Shark8
2018-07-17 21:56 ` Jerry
2018-07-18 1:33 ` Shark8
2018-07-18 7:37 ` Björn Lundin
2018-07-18 16:41 ` Shark8
2018-07-18 21:18 ` Jeffrey R. Carter
2018-07-19 6:59 ` Jerry [this message]
2018-07-19 15:25 ` Dennis Lee Bieber
2018-07-19 16:50 ` Jeffrey R. Carter
2018-07-19 20:47 ` Jerry
2018-07-19 1:47 ` Jerry
2018-07-17 18:21 ` Shark8
2018-07-17 20:53 ` Jerry
2018-07-18 16:34 ` Shark8
2018-07-18 20:30 ` Björn Lundin
2018-07-18 21:09 ` Dan'l Miller
2018-07-18 21:41 ` Bill Findlay
2018-07-19 2:13 ` Dan'l Miller
2018-07-19 2:40 ` Jerry
2018-07-19 3:19 ` Dan'l Miller
2018-07-19 2:57 ` Jerry
2018-07-19 7:20 ` Björn Lundin
2018-07-19 11:30 ` Jerry
2018-07-19 16:40 ` Björn Lundin
2018-07-19 20:46 ` Jerry
2018-07-20 7:32 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox