• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScriptObjC -- List Folder Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScriptObjC -- List Folder Handler


  • Subject: Re: AppleScriptObjC -- List Folder Handler
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 01 Dec 2018 14:39:52 +1100

On 1 Dec 2018, at 10:46 am, Christopher Stone <email@hidden>
wrote:
>
> I'm pretty happy with the result

There is one minor issue: lastPathComponent is not necessarily the true name.
There's a possibility of localization, but there's also the possibility that a
name contains a / character, which will be returned here as a :.

Whether that's an issue or not depends on what you are going to do with the
list. In some cases what you want probably *is* the lastPathComponent rather
than the name (when you plan to move it and do so using a POSIX path, for
example), but in others not.

So it's worth keeping in mind that it won't necessarily match what, say, the
Finder or System Events return for name. And getting the actual user-facing
name is a little more work in ASObjC.

--
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

References: 
 >AppleScriptObjC -- List Folder Handler (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: AppleScriptObjC -- List Folder Handler
  • Next by Date: Re: AppleScriptObjC -- List Folder Handler
  • Previous by thread: Re: AppleScriptObjC -- List Folder Handler
  • Next by thread: Re: AppleScriptObjC -- List Folder Handler
  • Index(es):
    • Date
    • Thread