blog advertising is good for you


blog advertising is good for you
User login

Hello, I have been searching for a solution to system_profiler scripting.

First off hi. I am hoping that I can find a solution to my dilema.

First off I am extremely new to AppleScripting. So, please be kind.

I am trying to write a script that will pull relevant system info from the system_profiler and dump it into either a xml or txt file.

Now I was under the impression that

do shell script “system_profiler -detailLevel full -xml Systemdump.xml”

would do it. When I run it it seems to work but I do not get a response.

Basically what I need is a script sitting on a USB key that I can run on a clients system and have it generate to (the key preferably) but on the desktop is fine to. Any help would be appreciated. Thanks!

Average rating
(0 votes)

you forgot the output redirect, how new are u to unix? the command should probibly go like this “system_profiler -detailLevel full -xml > Systemdump.xml”

this will put the file systemdump into whatever foulder your applescript executed from.

Unix? Oh, about 28 hours now. Still doesn’t work. It runs.. syntax checks out. Nothing happens. Doesn’t produce the xml file, though no errors.

I appreciate your help. Any idea’s?

I have solved it. If anyone wants the script. It asks for a filename and than saves it as that.

can u make attachments to blogposts?

Post new comment
The content of this field is kept private and will not be shown publicly.
14 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.