Re: System Profiler
Re: System Profiler
- Subject: Re: System Profiler
- From: Andrew Oliver <email@hidden>
- Date: Mon, 07 Jun 2004 01:12:32 -0700
It doesn't quite work that way (simply?)
You have to first get the profile, then write it to a text file using normal
AppleScript commands. Try:
tell application "System Profiler"
set theprofile to (get system profile)
set outputFile to open for access file "Macintosh HD:profile.txt" with
write permission
write theprofile to outputFile starting at 0
close access outputFile
end tell
On 6/7/04 1:25 AM, "Chaim Koshizky" <email@hidden> wrote:
>
Hi ;
>
>
I am trying to run "System Profiler" through an applescript application and
>
create-save a file of the profile.
>
I do not succeed to save the file. Can any one help ?
>
>
tell application "System Profiler"
>
activate
>
set theproperty to properties
>
save theproperty ????????
>
end tell
>
>
Thanks
>
_______________________________________________
>
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.
_______________________________________________
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.