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

PATH variable for do shell script


  • Subject: PATH variable for do shell script
  • From: "Alan Harper (lists)" <email@hidden>
  • Date: Mon, 02 Nov 2015 13:04:53 -0800

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

  • Follow-Ups:
    • Re: PATH variable for do shell script
      • From: Shane Stanley <email@hidden>
    • Re: PATH variable for do shell script
      • From: Yvan KOENIG <email@hidden>
    • Re: PATH variable for do shell script
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: Parsing web pages
  • Next by Date: Seeking an applescript to extract info from an email and create a calendar even with alerts repeated at certain intervals
  • Previous by thread: Re: Parsing web pages
  • Next by thread: Re: PATH variable for do shell script
  • Index(es):
    • Date
    • Thread