• 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: order in which the files are listed in droplet file list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: order in which the files are listed in droplet file list


  • Subject: Re: order in which the files are listed in droplet file list
  • From: Jason Bourque <email@hidden>
  • Date: Tue, 21 Aug 2001 17:49:40 -0400

On 8/21/01 12:03 PM, "Zsolt Magyar" <email@hidden> wrote:

> Thanks Jason, but
>
> this doesn't work:
>
> tell application "Finder"
> activate
> sort files of folder "Mac OS X:Users:zmagyar" by name
> end tell
>
> and I get:
>
> --> Finder got an error: every file of folder "Mac OS X:Users:zmagyar"
> doesn't understand the sort message.
>
> Maybe this is due to OSX (I'll try this tonight on 9)
>
> But even if it would work, I would need to sort and alias list i get from
> "on open" handler. Should sort command work on this kind of list?
>
> Tx,
>
> Zsolt
>
>> Subject: Re: order in which the files are listed in droplet file list
>>
>> Well the finder has the power to change the order. Below is by name but you
>> can sort anyway a window can.
>>
>>
>>
>> on open these_items
>>
>>
>> if (count of these_items) > 1 then
>> tell application "Finder"
>> set these_items to sort these_items by name
>> end tell
>> end if
>>
>> end
>>
>>
>>
>> Jason Bourque

Yeah that was OS 9 code I sent you that I use often.

The code was specific to a list of aliases. The code would be different for
a window.

Record the action in the finder to see the syntax.

Good luck.

Jason


References: 
 >Re: order in which the files are listed in droplet file list (From: Zsolt Magyar <email@hidden>)

  • Prev by Date: filemaker show and count events
  • Next by Date: Re: filemaker show and count events
  • Previous by thread: Re: order in which the files are listed in droplet file list
  • Next by thread: Re: order in which the files are listed in droplet file list
  • Index(es):
    • Date
    • Thread