Re: Exporting shell variables to AppleScripts
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