• 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: Set selection to null (was 'Trim Folder Names')
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set selection to null (was 'Trim Folder Names')


  • Subject: Re: Set selection to null (was 'Trim Folder Names')
  • From: "koenig.yvan" <email@hidden>
  • Date: Thu, 16 Jan 2014 13:56:52 +0100


Le 16/01/2014 à 13:47, 2551 <email@hidden> a écrit :

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



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Set selection to null (was 'Trim Folder Names') (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Set selection to null (was 'Trim Folder Names')
  • Next by Date: Re: Re "Nouns" and "Verbs"
  • Previous by thread: Re: Set selection to null (was 'Trim Folder Names')
  • Next by thread: Get property size
  • Index(es):
    • Date
    • Thread