• 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: Apple System Profiler not closed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Apple System Profiler not closed
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Apple System Profiler not closed
  • Next by Date: Re: Mounting volumes
  • Previous by thread: Re: Apple System Profiler not closed
  • Next by thread: Re: Apple System Profiler not closed
  • Index(es):
    • Date
    • Thread