• 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: getting user's system info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting user's system info


  • Subject: Re: getting user's system info
  • From: Eric Geoffroy <email@hidden>
  • Date: Fri, 21 Jan 2005 16:26:24 -0800

Check out the dictionary for standard additions.
In the section "Miscellaneous Commands" there is a class called "system attribute'
According to The AppleScript Definitive Guide, there is a list of gestalt selectors that will allow you to get user environment variables and other tidbits. The link in the book didn't work for me. You'll have to search the ADC at developer.apple.com.


Shell script commands...
vm_stat 	will get you memory info
df -k 	will get you disk usage
sysctl hw.cpufrequency 	gets you CPU freq in Hertz (divide by 1,000,000)

None of these are particularly friendly, BUT, in the Tiger preview I saw at Macworld, they built these system things into AppleScript. Yahoo for that!

- Eric

On Jan 21, 2005, at 3:36 PM, Graham Anderson wrote:

is there an applescript / shell script for getting user environment variables like: ram, cpu, os, and etc
many thanks :)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________ 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
References: 
 >getting user's system info (From: Graham Anderson <email@hidden>)

  • Prev by Date: Re: iWork Pages
  • Next by Date: Re: getting user's system info
  • Previous by thread: getting user's system info
  • Next by thread: Re: getting user's system info
  • Index(es):
    • Date
    • Thread