Re: Find and replace space by the Terminal equivalent
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