Re: AppleScriptObjC -- List Folder Handler
Re: AppleScriptObjC -- List Folder Handler
- Subject: Re: AppleScriptObjC -- List Folder Handler
- From: Christopher Stone <email@hidden>
- Date: Mon, 03 Dec 2018 12:27:19 -0600
On 12/02/2018, at 19:57, Shane Stanley <email@hidden
<mailto:email@hidden>> wrote:
> On 3 Dec 2018, at 12:35 pm, Christopher Stone <email@hidden
> <mailto:email@hidden>> wrote:
>>
>> This mess makes me want to go back to the Finder or list folder. Neither of
>> them does anything weird to file/folder names.
>
> Oh yes they do. Finder works exactly the same as the display names variant.
Hey Shane,
Not according to my tests with Sierra.
On my system the Finder and List folder produce the same output no matter how
show filename extensions is set, although they do have different sort
characteristics.
These are both different than the display names ASObjC in the handler.
> List folder uses display names except it ignores the Finder setting for
> extension showing, so it potentially matches none of the previous examples,
> or what the user sees.
And this is exactly what I want. I want the true file name – I never, ever
want what the user sees if it differs from that.
When I say weird things I mean any alteration of the true file name.
> Most people probably don't see these issues because I suspect most scripters
> have the Finder set to always show extensions, and avoid using / in names.
True.
> It's not that hard in that any problems only happen when you're *building or
> manipulating* paths, and if you stick to doing that using POSIX paths,
> converting back to HFS when finished manipulating, the problem goes away --
> no need to worry about : or /, whether extensions are showing, or
> localization.
I should probably add the actual lastPathComponent to my handler, so there's
something to build paths with if needed.
As always – thanks for the help and input.
--
Take Care,
Chris
_______________________________________________
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