Re: Multi-line do shell script. How?
Re: Multi-line do shell script. How?
- Subject: Re: Multi-line do shell script. How?
- From: Christopher Nebel <email@hidden>
- Date: Wed, 21 Apr 2004 14:52:22 -0700
On Apr 21, 2004, at 8:23 AM, Graff wrote:
If all you want to do is to check your environment variables then just
do this:
do shell script "declare"
Maybe on your system, but not a standard one. Try 'do shell script
"set"' instead.
If you want to know the value of any single environment variable, such
as PATH, you can do:
do shell script "echo $PATH"
Of course, this gives you your environment as sh knows it; you can use
'system attribute' to get the environment as the application knows it.
(sh adds a bunch of its own stuff.) For example, 'system attribute
"PATH"' returns your PATH; 'system attribute' with no parameters
returns a list of all defined variable names.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.