• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with terminal script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with terminal script


  • Subject: Re: Help with terminal script
  • From: "dan d." <email@hidden>
  • Date: Fri, 3 Nov 2017 19:58:09 -0400 (EDT)

Hello Axel,

Thanks for the response.

As I dimly recall, the 2nd of your "do shell script" versions below was used in
the script in qquestion.

As I have been trying to recall other of the syntax, these bits came to mind:

tell application "System Events"
I saw that in an example script on the web and it rang a bell..

I think, perhaps in error, that was the first line.

Then there was perhaps something about 'set frontmost to true' also.'

The line 'tell application "Terminal' you have below was there also.

I haven't a clue about the exact syntax compisition nor in what order they
appeared before the 'do shell script'.

Does this make any sense to you,?  Sorry for the poor recall.

Thanks.


On Fri, 3 Nov 2017, Axel Luttgens wrote:

>
> > Le 2 nov. 2017 ?? 20:43, dan d. a ??crit :
> >
> >
> > Hello scripters,
> >
> > At least a year ago some kind person with far more experience scripting
> > then I; did a script for me to use in terminal applications.
> >
> > I used it to run a shell script by using a voiceover key commander; which
> > then ran the script in the terminal even when in a gui application.
> >
> > It used a 'do shell script', but Icann't for the life of me recall the
> > preceding lines of syntax except one included "terminal".
> >
> > I have a use for this again, having lost the original somehow.
> >
> > Can anyone recall having done it and/or provide such an apple script please.
>
> Hello Dan,
>
> Do you mean something like this:
>
>       tell application "Terminal"
>               do script "/usr/bin/say 'Hello world!'"
>       end tell
>
> On the other hand, is it really needed to have the shell script run in
> Terminal.app?
> If not, this one directly executes the shell script:
>
>       do shell script "/usr/bin/say 'Hello world!'"
>
> HTH,
> Axel
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>

--
XB
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Next by Date: Re: What is Best Method To Determine Duplicate Items in a Large List?
  • Previous by thread: Re: Help with terminal script
  • Next by thread: Re: saving Mail messages as ?
  • Index(es):
    • Date
    • Thread