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: Shane Stanley <email@hidden>
- Date: Mon, 05 Jan 2015 10:36:19 +1100
On 5 Jan 2015, at 2:00 am, 2551 <email@hidden> wrote:
>
> 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).
Yes, I should have made it clearer.
> 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.
Right. But when you say "Finder and some other applications", I think you could say the OS above the Unix layer.
>
> 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
I assumed the former from Alex's original sample output, but I might well be wrong. However, I came to much the same conclusion about the likely fastest approach in this case, which is why I suggested ASObjC.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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