Re: whose class is folder...
Re: whose class is folder...
- Subject: Re: whose class is folder...
- From: Jean-Christophe Helary <email@hidden>
- Date: Sat, 07 Apr 2018 11:07:31 +0900
> On Apr 7, 2018, at 10:50, Shane Stanley <email@hidden> wrote:
>
> On 7 Apr 2018, at 10:47 am, Stockly, Ed <email@hidden
> <mailto:email@hidden>> wrote:
>>
>> Let me save you some time and frustration:
>
> That works, but it's locale dependent -- run it on a system where the the
> name for a folder is different and it fails. Given that the OP is a
> translator, at the very least that's likely to offend his professional
> sensibilities.
Haha ! I did notice that the "kinds" were text strings, but I was first happy
to find something that worked. But yes, I thought that there must be something
that checks the class of the selected item, but that was when I was stuck with
whose, now that I know I can't use it on the selection I guess I can explore
that direction... I also found a "complication", since I want anything that
physically *is* a folder, including packages and aliases of folders.
But that's another story.
> You could use "info for". I'm no fan of using deprecated commands, but it
> does still work.
>
> OTOH, I'd do it using AppleScriptObjC:
Thank you.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
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