• 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: Creating a folder on the desktop (recap)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating a folder on the desktop (recap)
      • From: "Mark J. Reed" <email@hidden>
    • Re: Creating a folder on the desktop (recap)
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Creating a folder on the desktop (recap) (From: patrick machielse <email@hidden>)
 >Re: Creating a folder on the desktop (recap) (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Question about a recurring console message
  • Next by Date: Re: Need help from a Filemaker Ninja...
  • Previous by thread: Re: Creating a folder on the desktop (recap)
  • Next by thread: Re: Creating a folder on the desktop (recap)
  • Index(es):
    • Date
    • Thread