• 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: Select None in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select None in the Finder


  • Subject: Re: Select None in the Finder
  • From: Mr Tea <email@hidden>
  • Date: Tue, 22 May 2001 14:49:38 +0100

This from Eric Sackett - dateline 22-05-01 1.56 AM:

> I have a script that mounts a volume, and the volume remains selected in the
> Finder at the end of the script. I'd like to deselect the volume.

This should do what you need:

tell application "Finder" to set selected of x to false

Replace 'x' with a reference to your mounted volume (if using the alias
reference form, make sure you write your script while the disk is mounted,
or it won't compile).

Alternatively, and perhaps more safely, you could just tell the Finder to
'set selected of every item of the desktop to false'.

Properties like 'selected' are listed in the Finder's AppleScript
dictionary, which you can see by dropping the Finder's icon onto the Script
Editor, or by using the Script Editor's 'Open Dictionary' menu command and
navigating to the Finder (or any other scriptable App you want to know more
about).

HTH

Mr Tea
--
"Always remember to warm the pot."


References: 
 >Select None in the Finder (From: Eric Sackett <email@hidden>)

  • Prev by Date: RE: Select None in the Finder
  • Next by Date: Re: Select None in the Finder
  • Previous by thread: Select None in the Finder
  • Next by thread: RE: Select None in the Finder
  • Index(es):
    • Date
    • Thread