Re: Finder Selection Bug in Lion
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