Re: Script that "Tells" Finder just Focuses on Finder instead of running
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