• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 24 Jan 2011 11:01:10 -0700

On Jan 24, 2011, at 10:28 AM, Christopher Stone wrote:

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

I don't follow:

If there are no open windows (minimized or otherwise), I get a list of selected icons on the desktop (or an empty list if nothing on the desktop is selected).

If there is an open visible window , I get no result at all regardless of whether anything in the window is selected.

Under no circumstances that I can think of, I never get the error dialog.

-- Michelle

--
Tubal Litigation: Suing because of a misconception

 _______________________________________________
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: Christopher Stone <email@hidden>
    • Re:Lookup Table
      • From: Walter Bushell <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>)
 >Re: getting focus, slow getting icon position in window (From: Christopher Stone <email@hidden>)

  • Prev by Date: passing handler problems and a resolution
  • Next by Date: Re: AppleScript-Users Digest, Vol 8, Issue 56
  • Previous by thread: Re: getting focus, slow getting icon position in window
  • Next by thread: Re:Lookup Table
  • Index(es):
    • Date
    • Thread