• 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
Finder Selection Bug in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder Selection Bug in Lion


  • Subject: Finder Selection Bug in Lion
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 25 Aug 2011 15:23:18 -0500

Hey Folks,

Would someone help me out and test this for me?

I've been having weird intermittent problems in the Finder where the selected items in the front window were NOT acted upon as they should be.  (This never happened on Snow Leopard.)

This afternoon I noticed that if I opened a folder with LaunchBar and manually selected something the new selection was NOT acted upon when using 'selection as alias list'.

While experimenting with this I manually selected some items in the front Finder window before opening the new folder with LaunchBar, and the selection in the background window was acted upon!

I want to be certain this problem is general to Lion and not some aberration on my system before I file a bug.

The script opens and resizes the home folder;
Selects the first three items in the home folder via Finder scripting;
Opens and resizes the the documents folder and closes it, so it will open there when the shell script opens it again.
Opens the documents folder via the shell.
Uses System Events to select the first 3 items in the documents folder.
Uses the Finder to change the label index of the selection (which should be in the front window).

If this malfunctions on your system as it does on mine the three items selected in the home folder (in the background) will be the ones whose label color is changed - when in fact the label color of the selected items in the foreground window should be changed.

This bug is very serious for me, because I do many things in the Finder dependent upon the selection.

Thank you.

--
Best Regards,
Chris

______________________________________________________________________


set homeFlAlias to path to home folder
set docFlAlias to path to documents folder
set downArrow to (ASCII character 31)
try
tell application "Finder"
activate
delay 0.2
open homeFlAlias
select items 1 thru 3 of front window
set bounds of front window to {0, 44, 870, 520}
open docFlAlias
set bounds of front window to {550, 44, 1420, 520}
close front window
end tell
do shell script "open ~/Documents/"
delay 0.3
tell application "System Events"
tell process "Finder"
keystroke downArrow
keystroke downArrow using {shift down}
keystroke downArrow using {shift down}
end tell
end tell
tell application "Finder"
delay 2
set sel to selection as alias list
if sel ≠ {} then
repeat with i in sel
set label index of i to 2
end repeat
update target of front window
end if
end tell
on error errMsg number errNum
set sep to "=============================="
set e to sep & return & "Error: " & errMsg & return & sep & return ¬
& "Error Number: " & errNum & return & sep
beep
display dialog e
end try

 _______________________________________________
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: Finder Selection Bug in Lion
      • From: Axel Luttgens <email@hidden>
    • Re: Finder Selection Bug in Lion
      • From: Simon Topliss <email@hidden>
  • Prev by Date: Re: Display dialog and select button after so long
  • Next by Date: Re: Finder Selection Bug in Lion
  • Previous by thread: Re: Lion Bugs
  • Next by thread: Re: Finder Selection Bug in Lion
  • Index(es):
    • Date
    • Thread