• 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: getting focus, slow getting icon position in window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting focus, slow getting icon position in window


  • Subject: Re: getting focus, slow getting icon position in window
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 24 Jan 2011 11:28:20 -0600

On Jan 24, 2011, at 08:59, Michelle Steiner wrote:
On Jan 24, 2011, at 3:17 AM, OzSanta wrote:

1. Is it possible in Applescript to determine if the desktop or a window is the Finders focus?

tell application "Finder"
activate
try
display dialog (get name of the front window)
on error
display dialog "Desktop is the focus"
end try
end tell
______________________________________________________________________

That's not going to work if there are minimized windows.

tell application "Finder"
try
if (windows whose visible is true) = {} then
set sel to selection
end if
on error errMsg number errNum
beep
display dialog "Error: " & errMsg & return & "Error Number: " & errNum
end try
end tell

--
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: getting focus, slow getting icon position in window
      • From: Michelle Steiner <email@hidden>
References: 
 >getting focus, slow getting icon position in window (From: OzSanta <email@hidden>)
 >Re: getting focus, slow getting icon position in window (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Case Sensitive Format
  • Next by Date: A Lookup Function?
  • Previous by thread: Re: getting focus, slow getting icon position in window
  • Next by thread: Re: getting focus, slow getting icon position in window
  • Index(es):
    • Date
    • Thread