Re: AppleScriptObjC -- List Folder Handler
Re: AppleScriptObjC -- List Folder Handler
- Subject: Re: AppleScriptObjC -- List Folder Handler
- From: Christopher Stone <email@hidden>
- Date: Tue, 04 Dec 2018 14:56:39 -0600
On 12/03/2018, at 17:17, Shane Stanley <email@hidden
<mailto:email@hidden>> wrote:
>> 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.
>
> Did you test it with a file where Hide Extension is clicked in its Get Info
> box?
Hey Shane,
Yes.
>> And this is exactly what I want. I want the true file name
>
> Who knows what the *true* file name is? It's irrelevant. What matters is that
> the API you use to get the name is the same API used by the code you're going
> to use it in.
This is true in the functional environment we currently find ourselves in
vis-à-vis Objectve-C (I don't know about Swift), but I think it's plenty
bizarre that a programming language omits an easy method of producing absolute
file names.
> List folder uses the old Carbon APIs, which are now deprecated.
Yes, and that's why I set out to write an ASObjC hander to take its place.
> The «class furl» is a good example. (Last I looked, System Events returned
> lastPathComponent for the name property, including : instead of /.)
It does. I tested that out day before yesterday.
--
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