Hey Axel,
On Aug 26, 2011, at 01:51, Axel Luttgens wrote: I tried your script here and could observe the same behavior as you did.
Okay. Thanks for testing. I tried a very simplified version of your script: ... and systematically got an empty list.
That's interesting. Yesterday I thought I had success by asking the Finder to open an alias, but today I get the same results as you. Now, Simon didn't seem to encounter your (our) problem; so, could be one of those very annoying bug because elusive.
Simon and I talked yesterday, and he meant by the "expected result" that his results where the same as mine. Here, I have a mid-2010 MacBook Air with a very standard Lion (10.7.1) installation (no "Finder enhancers" or other such magic things).
I've got all sorts of good stuff on my system: Typinator, Keyboard Maestro, QuicKeys, FastScripts, various osaxen, and iStat Menus.
I also have DropBox on the system, but I don't normally run it.
I've seen weird window indexing problems similar to this before - most notably in QuickTime Movie Player and in Script Debugger.
The truly ugly workaround is to create a new window and close it as in the script below.
Thanks again Axel and everyone else for taking the time to help.
-- Best Regards, Chris
______________________________________________________________________
set homeFl to path to home folder set docsFl to path to documents folder
tell application "Finder" open homeFl select items 1 thru 3 of front window open docsFl select items 1 thru 3 of front window ################################ set win to make new Finder window close win ################################ set sel to selection as alias list end tell
|