• 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
selection bug in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

selection bug in Finder


  • Subject: selection bug in Finder
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 16 Jan 2013 14:57:29 -0600

I have a handler that starts ...

on getSelection()
tell application "Finder"
activate
set selList to get selection


It has worked flawlessly in Leopard, Snow Leopard and Lion.
But, in Mt Lion there is a problem:
1. Open a folder (folder 1)
2. Double click a sub-folder, opening folder 2
(which leaves its icon selected in folder 1)
3. Select an item in folder 2.
4. run the script above.
The selList should contain the item selected in step 3.
But, it does not!
selList contains the folder selected in step 2.
If you run the script as second time it will respond correctly.

This has been causing me a problem all afternoon.
It was damn hard to find because I thought the problem was my script.
But it's there.
I've tried all sorts of fixes, but nothing worked.
Putting a 'display dialog' after activate will fix it, but I don't want that.

The first time you run the script, selection is in the window behind
the window displayed as frontmost. Which is NOT correct!

Does anyone else get this result in Mt Goat?


 _______________________________________________
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: selection bug in Finder
      • From: Christopher Stone <email@hidden>
    • Re: selection bug in Finder
      • From: Lists <email@hidden>
    • Re: selection bug in Finder
      • From: Robert Poland <email@hidden>
  • Prev by Date: Re: turning on print options when printing a file
  • Next by Date: Re: selection bug in Finder
  • Previous by thread: Re: GUI Scripting in Mail
  • Next by thread: Re: selection bug in Finder
  • Index(es):
    • Date
    • Thread