• 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
Desktop selection in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NCSA Telnet 2.6 login script
  • Next by Date: Re: applescript-users digest, Vol 2 #614 - 15 msgs
  • Previous by thread: Re: NCSA Telnet 2.6 login script
  • Next by thread: Re: applescript-users digest, Vol 2 #614 - 15 msgs
  • Index(es):
    • Date
    • Thread