Re: Copying the path of files selected in Finder
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