On 16 Jan 2014, at 18:22, Axel Luttgens < email@hidden> wrote: Does
tell application "Finder" set selection to {} end tell
or
tell application "Finder" select {} end tell
do what you are considering?
Thanks Axel, but it was the failure of ‘set selection to {}’ that caused me to post in the first place (I, too, had assumed that would work).
Doing either that or ‘select {}’ still keeps the selection, as shown by getting the properties of the front window immediately after running :
tell application "Finder" --activate select {} properties end tell
Result: {class:null, name:"Finder", clipboard:missing value, visible:true, frontmost:false, selection:{folder "Desktop" of folder "sphil" of folder "Users" of startup disk of application "Finder”},…<snip>
Which system are you running ?
Running 10.9.1, I selected two icons on the Desktop and ran the script
tell application "Finder" --activate select {} properties end tell
the result is : {class:null, name:"Finder", clipboard:missing value, visible:true, frontmost:false, selection:{}, insertion location:folder "Desktop" of folder "yvankoenig" of folder "Users" of startup disk of application "Finder", product version:"", version:"10.9.1", desktop:desktop of application "Finder", desktop picture:document file "ecsb_background_tile.png" of folder "Pictures" of folder "yvankoenig" of folder "Users" of startup disk of application "Finder", Finder preferences:Finder preferences of application "Finder", startup disk:startup disk of application "Finder", trash:trash of application "Finder", home directory:folder "yvankoenig" of folder "Users" of startup disk of application "Finder"}
Yvan KOENIG (VALLAURIS, France) jeudi 16 janvier 2014 13:56:46
|