• 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: path to unix apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path to unix apps


  • Subject: Re: path to unix apps
  • From: Andrew Oliver <email@hidden>
  • Date: Sat, 17 Jul 2004 09:15:48 -0700

Read the technote

http://developer.apple.com/technotes/tn2002/tn2065.html

>... For security and portability reasons, do shell script ignores the
configuration files that an interactive shell would read, so you don't get the
customizations you would have in Terminal.

I haven't tried it, but presumably you could string the environment command
in your do shell script:

do shell script "PATH=/blah:/blah/blah:$PATH;command"

(using whatever syntax is appropriate for whatever shell 'do shell script'
uses nowadays).

Andrew
:)

On 7/17/04 9:00 AM, "Dieter May" <email@hidden> wrote:

> Hello,
>
> do shell script "echo $PATH"
> -->"/usr/bin:/bin:/usr/sbin:/sbin:/Users/dieter"
>
> gives me only this.
>
> I have some paths in /etc/profile and ~/.bashrc, in the Terminal I get
> this:
> /sw/bin:/sw/sbin:/ImageMagick-6.0.3/bin:/bin:/usr/bin:/usr/local/bin:/
> sbin:/usr/sbin:/usr/local/sbin:/Developer/Tools:/usr/local/vscanx:/opt/
> local/bin:/usr/X11R6/bin:/Users/dieter/bin
>
> Some unix apps do not work correctly even they are called with
> the full path e.g. /ImageMagick-6.0.3/bin/identify
>
> Is there a way to get more paths with the "do shell script"?
>
> Danke
> Dieter
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: path to unix apps
      • From: "John W. Baxter" <email@hidden>
    • Re: path to unix apps
      • From: Dieter May <email@hidden>
References: 
 >path to unix apps (From: Dieter May <email@hidden>)

  • Prev by Date: path to unix apps
  • Next by Date: Re: path to unix apps
  • Previous by thread: path to unix apps
  • Next by thread: Re: path to unix apps
  • Index(es):
    • Date
    • Thread