• 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: Script that "Tells" Finder just Focuses on Finder instead of running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script that "Tells" Finder just Focuses on Finder instead of running


  • Subject: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • From: 2551 <email@hidden>
  • Date: Sun, 04 Jan 2015 22:00:43 +0700

> On 4 Jan 2015, at 21:32, Deivy Petrescu <email@hidden> wrote:
>
>> I disagree. Yes, it's the fastest -- but as Yvan alluded to, it ignores packages.


This way of putting it could be misleading to anyone not paying close attention (i.e., it misled me the first time it was alluded to). The shell script doesn't "ignore" anything; it "sees everything" and the complaint here is that it ignores *the fact that* Finder and some other OS X applications treat packages, apps, bundles etc as special kinds of directories (by presenting them as singular items) rather than as file containers. The shell script doesn't ignore any files or items; it treats all as equal citizens.

The question then is really whether the user wants a list of OS X/Finder "items" or a list of "files" as indexed on a disk. If it's the latter, there's no question using some combination of ls -R and sed is a quick and simple way to go.

If the former is wanted, I'd suggest going into Cocoa and using the NSFileManager Foundation class (it might be interesting to play around with that using JSA).


Best


Phil





 _______________________________________________
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:
    • JavaScript for Automation curiosity (was "Script that "Tells" Finder just Focuses on Finder instead of running")
      • From: 2551 <email@hidden>
    • Re: Script that "Tells" Finder just Focuses on Finder instead of running
      • From: Shane Stanley <email@hidden>
References: 
 >Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: 2551 <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Previous by thread: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by thread: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Index(es):
    • Date
    • Thread