From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:6803:: with SMTP id d3-v6mr3506501ioc.7.1531983587660; Wed, 18 Jul 2018 23:59:47 -0700 (PDT) X-Received: by 2002:aca:eb15:: with SMTP id j21-v6mr1757996oih.6.1531983587496; Wed, 18 Jul 2018 23:59:47 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no439861itj.0!news-out.google.com!l67-v6ni2223itl.0!nntp.google.com!d7-v6no439856itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 18 Jul 2018 23:59:47 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.209.154.211; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 71.209.154.211 References: <7461ada5-9bc3-43f5-98b0-b2930d9145bc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to run a GNAT program without starting a terminal session From: Jerry Injection-Date: Thu, 19 Jul 2018 06:59:47 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53906 Date: 2018-07-18T23:59:47-07:00 List-Id: On Wednesday, July 18, 2018 at 2:18:31 PM UTC-7, Jeffrey R. Carter wrote: > Several techniques are discussed here: >=20 > https://superuser.com/questions/360247/run-a-shell-script-on-os-x-without= -having-a-terminal-window-appear#612072 >=20 > Platypus is one of them. Thanks for that. The Automator suggestion works just like trying to call the shell command f= rom 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 no= rmally interprets this to play the default system sound which for some reas= on 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_Shel= l() which binds to the =EF=BB=BFC command like this: pragma Import(C, syste= m). Then if I put say hello as the command string for Execute_Shell and drop it into the Automator work= flow as described in your link, it _does_ work correctly. Applescript proba= bly gets the same result. The Alfred method looks interesting but I'm not going to try it out right n= ow. 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 re= quires 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 a= nd also "say" and probably "afplay". Jerry