• 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: Find and replace space by the Terminal equivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find and replace space by the Terminal equivalent


  • Subject: Re: Find and replace space by the Terminal equivalent
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 3 Oct 2005 08:21:00 -0400

When you log into a Terminal, lots of extra setup gets run for you
before you ever type a command, including adding /usr/local/bin to
your command search path.  None of that is done for you when you run
"do shell script".  One quick workaround that might work, although
it's probably overkill, is to force the shell to do all the login
stuff before running whatever it is you want:

do shell script "bash --login -c 'setiocn ...'"



On 10/3/05, Jay Louvion <email@hidden> wrote:
>  le 2/10/05 17:39, Barry Wainwright à email@hidden est réputé(e) avoir
> écrit :
>
>  > Note that you are probably being confused by how SE is displaying the
> result
>
>  Quite right, but even more so when the script, run from the SE, displays:"
> sh: line 1: seticon: command not found "
>  Is my syntax wrong ? The seticon is stored in '/usr/local/bin', do I have
> to specify that path ? (if I do, it fails silently)
>  When I run the line in Terminal, no problemo. I have logged out, thinking
> my  install was too fresh not to cause problems...But to no avail.
>  My guess is that do shell only refers to certain commands nested in a
> particular directory ?
>
>  I know I've explained this badly, but I don't know how
>  > to say it better!
>
>  Not at all. Thanks for the info.
>
>  J.
>
>  Jay Louvion
>  Studio Casagrande
>  3, rue Müller-Brun
>  1208 Geneva
>
>  T+4122 840 3272
>  F+4122 840 3271
>
>  skypeme:
>  jaylouvion
>
>  www.studiocasagrande.com
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Find and replace space by the Terminal equivalent (From: Barry Wainwright <email@hidden>)
 >Re: Find and replace space by the Terminal equivalent (From: Jay Louvion <email@hidden>)

  • Prev by Date: Mail Sig Scripting bug?
  • Next by Date: Re: escape sequence for delete
  • Previous by thread: Re: Find and replace space by the Terminal equivalent
  • Next by thread: Re: Find and replace space by the Terminal equivalent
  • Index(es):
    • Date
    • Thread