• 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: [genuine] Re: Automating System Profiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [genuine] Re: Automating System Profiler


  • Subject: Re: [genuine] Re: Automating System Profiler
  • From: jacques couzteau <email@hidden>
  • Date: Sat, 24 Apr 2004 11:28:58 +0200

thanks.

exactly what i had in mind.

Am 22.04.2004 um 19:25 schrieb email@hidden:

I'm trying to script the System Profiler to saves profiles of machines to a database. My System Profiler (4.0.3v40 on OSX Pnther 10.3.3) doesn't create any files when i use the following script.

Versuchen Sie diesen Code:

-- Created 22 April 2004. SJWL - dual 500 MHz G4, MacOS X 10.3.2.
-- SystemProfile.scpt' - Creates a Desktop File containing the Mac's System Profile.

tell application "Finder" to set MacsName to (name of (container of startup disk)) -- Name of Mac.
set myFilePath to (((path to desktop folder) as string) & MacsName & ".txt") -- Path and File Name.

set myFile to open for access myFilePath with write permission -- Create File.
tell application "System Profiler" to set mySystemProfile to system profile -- Obtain Mac's Info.
tell application "System Profiler" to quit
write mySystemProfile to myFile -- Write to File.
close access myFile -- Close File.
_______________________________________________
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.


References: 
 >Re: Automating System Profiler (From: email@hidden)

  • Prev by Date: Identifying special characters
  • Next by Date: FolderActions bug?
  • Previous by thread: Re: Automating System Profiler
  • Next by thread: moving messages in Mail.app
  • Index(es):
    • Date
    • Thread