• 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: Christopher Nebel <email@hidden>
  • Date: Thu, 20 Sep 2007 10:56:08 -0700

On Sep 20, 2007, at 5:23 AM, Doug McNutt wrote:

Does anyone know when "system attributes" was added? Can I use it in 10.3.9? The earlier stuff back in March was talking about a variable called "sysv". I don't see that in my environment variables as $sysv so "system attributes" must have other options. What are they?

"System attribute" was added in Mac OS X 10.0 as a replacement for the classic Finder's "computer" verb, which was used to get information from the Gestalt system call. The support for environment variables was added in Mac OS X 10.1.


And why is this list the only place in the world where such information gets published with a subject line like "Two quick questions"?

From the Standard Additions dictionary:

system attribute v : Test attributes of this computer
system attribute [any] : the attribute to test (either a “Gestalt” value or a shell environment variable).
[has integer] : test specific bits of response (ignored for environment variables)
→ any : the result of the query (or a list of all environment variables, if no attribute is provided)


I'm betting that a new Terminal session does not get my current environment as a starting point even in Tiger, Are we really sure that my environment is transferred to osascript?

Environment is transferred to child processes. The shell created by "do shell script" qualifies; Terminal.app does not.



--Chris Nebel AppleScript Engineering

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

  • Prev by Date: Re: Check if app exists
  • 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