Re: displayed path in finder OS X
Re: displayed path in finder OS X
- Subject: Re: displayed path in finder OS X
- From: Shane Stanley <email@hidden>
- Date: Wed, 06 Aug 2014 18:20:35 +1000
On 6 Aug 2014, at 6:03 pm, Andreas Kiel <email@hidden> wrote:
This is not the file path the user will see in finder:
Try something like this:
use framework "Foundation"
on getLocalizedNameFor:aPath set anNSURL to current application's |NSURL|'s fileURLWithPath:aPath set {theResult, theValue} to anNSURL's getResourceValue:(reference) forKey:(current application's NSURLLocalizedNameKey) |error|:(missing value) return theResult as text end getLocalizedNameFor:
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden