Re: AppleScriptObjC -- List Folder Handler
Re: AppleScriptObjC -- List Folder Handler
- Subject: Re: AppleScriptObjC -- List Folder Handler
- From: Shane Stanley <email@hidden>
- Date: Mon, 03 Dec 2018 12:57:25 +1100
On 3 Dec 2018, at 12:35 pm, Christopher Stone <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.
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.
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.
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.
For developers, the rules are simple: work in POSIX paths, but when displaying
names to the user, use the display names. It only becomes messy for scripters
because they have to resort to deprecated HFS paths at times.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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