Re: Select None in the Finder
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."