Re: Creating a folder on the desktop (recap)
Re: Creating a folder on the desktop (recap)
- Subject: Re: Creating a folder on the desktop (recap)
- From: Christopher Nebel <email@hidden>
- Date: Fri, 9 Sep 2005 12:56:29 -0700
On Sep 8, 2005, at 9:31 PM, Mark J. Reed wrote:
I'm guessing that while there are constructs in AS to get the
user's home directory etc, there's no way to read arbitrary
environment variables directly; you have to go through the shell with
something like (do shell script "echo \"$BLAH\"") ... is that true?
No. "system attribute" was extended some time ago to look for
environment variables if the Gestalt selector lookup fails:
system attribute "HOME" --> "/Users/me"
system attribute "SHELL" --> "/bin/sh"
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden