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

Re: Finder Selection Bug in Lion


  • Subject: Re: Finder Selection Bug in Lion
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 26 Aug 2011 20:13:47 -0700

Hey there, on Fri Aug 26 18:41:14 2011, Christopher Stone wrote the following interesting missive:

tell application "Finder"
close every window
open home
set the_selection to (select items 1 thru 3 of front window)
open folder "Documents" of home
set the_selection to (select items 1 thru 3 of front window)
end tell
______________________________________________________________________

Unfortunately not.  The object of the exercise is to work with an existing selection.

Oh, in that case, there's no problem; I tested it with existing selections and it works just fine.

That's why I used system events in my script - to simulate a manual selection.

The simulation doesn't work, but the real thing does.

But if you need to keep the simulation, this works:

tell application "Finder"
close windows
open home
select items 1 through 3 of front window
activate
end tell
--pause the script here for a second; otherwise, it sometimes doesn't work.
tell application "Finder"
tell me to activate
selection
end tell

-- Michelle

--
if u cn rd ths u cn gt a gd jb, bt if u rt lk ths u r a mrn.

 _______________________________________________
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: Christopher Stone <email@hidden>
References: 
 >Finder Selection Bug in Lion (From: Christopher Stone <email@hidden>)
 >Re: Finder Selection Bug in Lion (From: Axel Luttgens <email@hidden>)
 >Re: Finder Selection Bug in Lion (From: Michelle Steiner <email@hidden>)
 >Re: Finder Selection Bug in Lion (From: Christopher Stone <email@hidden>)
 >Re: Finder Selection Bug in Lion (From: Michelle Steiner <email@hidden>)
 >Re: Finder Selection Bug in Lion (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Finder Selection Bug in Lion
  • Next by Date: Re: Finder Selection Bug in Lion
  • Previous by thread: Re: Finder Selection Bug in Lion
  • Next by thread: Re: Finder Selection Bug in Lion
  • Index(es):
    • Date
    • Thread