• 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: Windows of hidden Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows of hidden Applications


  • Subject: Re: Windows of hidden Applications
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 15 Feb 2004 14:22:34 -0700

On Feb 15, 2004, at 10:20 AM, Irwin Poche wrote:

Does anyone tell me what's going on here ?

I would guess that an application knows how many windows it has open, so can give the correct response, but if the application is hidden, the Finder can't see them, so it reports that zero windows are open.

This will work:

tell application "Finder"
set foo to ((application processes whose name is "Safari")'s application file as string)
end tell

tell application foo
count of windows
end

--
I am Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Windows of hidden Applications
      • From: Irwin Poche <email@hidden>
References: 
 >Windows of hidden Applications (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Opening TextEdit with a document
  • Previous by thread: Windows of hidden Applications
  • Next by thread: Re: Windows of hidden Applications
  • Index(es):
    • Date
    • Thread