• 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 variable for do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATH variable for do shell script


  • Subject: Re: PATH variable for do shell script
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 02 Nov 2015 18:27:15 -0500

Was this ever working? I mean did you use to get your actual PATH?
As far as I know, do shell script and the Terminal environments are not the same.
I used to use the c-shell in Terminal and do shell script was bash.

I can confirm your results, for EC. I am going to check for earlier versions of the OS.

> On Nov 2, 2015, at 16:04 , Alan Harper (lists) <email@hidden> wrote:
>
> Hi
>
> When I upgraded to El Capitan some scripts stopped working because the PATH variable in AppleScripts doesn't include all the paths that I have set up for my login. For the moment, I'll just hard-wire in the path of the command in my script, but is there something I should know about this change? Is this a security issue? Are there are specific directories I should be using in order to access command line programs from AppleScript?
> do shell script "echo $PATH"
>
>
> "/usr/bin:/bin:/usr/sbin:/sbin"
>
> Thanks for any pointers
>
> A
>
> --
> Alan Harper
> email@hidden ← for people
> email@hidden ← for machines
> _______________________________________________
> 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

Deivy Petrescu
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >PATH variable for do shell script (From: "Alan Harper (lists)" <email@hidden>)

  • Prev by Date: Seeking an applescript to extract info from an email and create a calendar even with alerts repeated at certain intervals
  • Next by Date: Re: Parsing web pages
  • Previous by thread: PATH variable for do shell script
  • Next by thread: Re: PATH variable for do shell script
  • Index(es):
    • Date
    • Thread