• 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: Irwin Poche <email@hidden>
  • Date: Mon, 16 Feb 2004 19:46:52 -0600

On Feb 15, 2004, at 3:22 PM, Michelle Steiner wrote:

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.

Yes, that's what I suspected. But being hidden is inconsistent with respect to application / window. It would make more sense if the application wouldn't be returned either - but I'm an optimist.

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.

Thank you Michelle. What you suggested worked.
_______________________________________________
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.

References: 
 >Windows of hidden Applications (From: Irwin Poche <email@hidden>)
 >Re: Windows of hidden Applications (From: Michelle Steiner <email@hidden>)

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