• 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: Exporting shell variables to AppleScripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exporting shell variables to AppleScripts


  • Subject: Re: Exporting shell variables to AppleScripts
  • From: Steve Hayman <email@hidden>
  • Date: Wed, 19 Sep 2007 22:48:46 -0400


On 19-Sep-07, at 9:45 PM, Mark J. Reed wrote:

I wouldn't want envariables to show up as AppleScript variables.  Ugh.
 Unpredictable namespace pollution = bad.


It's already there courtesy of "system attribute". You can use

	system attribute "ENVVARNAME"

to retrieve the value of an environment variable.  e.g.

	set homeDir to system attribute "HOME"

system attribute, by itself with no attribute, returns a list of the names of all the environment variables.

_______________________________________________
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: Exporting shell variables to AppleScripts
      • From: "Mark J. Reed" <email@hidden>
    • Re: Exporting shell variables to AppleScripts
      • From: Steve Hayman <email@hidden>
References: 
 >Exporting shell variables to AppleScripts (From: Mike <email@hidden>)
 >Re: Exporting shell variables to AppleScripts (From: Brian Johnson <email@hidden>)
 >Re: Exporting shell variables to AppleScripts (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Exporting shell variables to AppleScripts
  • Next by Date: Re: Exporting shell variables to AppleScripts
  • Previous by thread: Re: Exporting shell variables to AppleScripts
  • Next by thread: Re: Exporting shell variables to AppleScripts
  • Index(es):
    • Date
    • Thread