• 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: Copying the path of files selected in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying the path of files selected in Finder


  • Subject: Re: Copying the path of files selected in Finder
  • From: Emmanuel Lévy <email@hidden>
  • Date: Sun, 30 Apr 2017 13:34:05 +0200

Christopher,

You must be right in some context, but as for me I see no difference, in both cases Finder requires 0.025 second per item selected.

All the best,
Emmanuel


> On 30 Apr 2017, at 00:40, Christopher Stone <email@hidden> wrote:
>
> On 04/29/2017, at 04:26, Jean-Christophe Helary <email@hidden> wrote:
>> tell application "Finder"
>> 	set _selectedItem to selection
>
> Hey Jean-Christophe,
>
> Rule-of-the-thumb — never get the Finder-selection without adding as alias list.
>
> (Unless you very specifically want Finder-references or text.)
>
> The as alias list form is faster, and aliases are portable while Finder-references are not.
>
> Test this for yourself by selecting 20-30 (or more) items in the Finder an alternately running these scripts:
>
> ------------------------------------------------------------------------------
> tell application "Finder"
> 	set finderSelectionList to the selection
> end tell
> ------------------------------------------------------------------------------
> tell application "Finder"
> 	set finderSelectionList to the selection as alias list
> end tell
> ------------------------------------------------------------------------------

 _______________________________________________
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

  • Follow-Ups:
    • Re: Copying the path of files selected in Finder
      • From: Christopher Stone <email@hidden>
References: 
 >Copying the path of files selected in Finder (From: Jean-Christophe Helary <email@hidden>)
 >Re: Copying the path of files selected in Finder (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Sorting characters of the text - script doesn't work as expected
  • Next by Date: Browser tab
  • Previous by thread: Re: Copying the path of files selected in Finder
  • Next by thread: Re: Copying the path of files selected in Finder
  • Index(es):
    • Date
    • Thread