Desktop selection in OS X
Desktop selection in OS X
- Subject: Desktop selection in OS X
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 22 Apr 2001 19:43:12 -0700
Has anyone figured out a way of getting the selection in the OS X desktop? I
In all script editors, including OS X's Script Editor, I get the selection
of the frontmost Finder window instead, even when the desktop's selection is
more strongly highlighted. Classic editors and applications running
previously compiled attached scripts get this result: trying to recompile
such a script in Smile fails with "end of file reached", and in Script
Debugger 2.0.5 compiles fine and gets the result in raw codes. In Scripter
2.2, classic Script Editor and OS X Script Editor, it displays the result
normally, but never of the item selected in the desktop, always that of the
item selected in the front folder. And if you open a brand new folder from
the File menu, with nothing selected, then you get, e.g.
{folder "Paul Berkowitz's Computer" of application "Finder"}
Trying to specify selection of the desktop's path:
tell application "Finder"
get selection of alias "OS X HD:Users:berkowit:Desktop:"
end tell
errors.
I guess this is one of those things that will "change soon" according to the
Finder dictionary.
Does anyone know if there's (yet) a way to get the selection in the OS X
desktop?
--
Paul Berkowitz