Re: Apple System Profiler not closed
Re: Apple System Profiler not closed
- Subject: Re: Apple System Profiler not closed
- From: Michelle Steiner <email@hidden>
- Date: Sat, 10 Mar 2001 08:04:22 -0800
On 3/10/01 7:34 AM, Robert Poland <email@hidden> wrote:
>
I tried the following script, everything works as expected and is
>
reported as expected. Except the Apple System Profiler is left open.
>
>
Can anyone explain this to me?
>
>
tell application "Apple System Profiler"
>
set The_IP_Address to TCPIP address as string
>
close
>
end tell
"close" is for windows. You would have to write
tell application "Apple System Profiler"
set The_IP_Address to TCPIP address as string
close window 1
end tell
Unless you actually want the application to quit rather than to only
close the window, in which case you would have to write
tell application "Apple System Profiler"
set The_IP_Address to TCPIP address as string
activate
(*for some reason, "quit" will not work if the aplication is in the
background
*)
quit
end tell
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------