• 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: displayed path in finder OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

  • Follow-Ups:
    • Re: displayed path in finder OS X
      • From: Andreas Kiel <email@hidden>
References: 
 >displayed path in finder OS X (From: Andreas Kiel <email@hidden>)

  • Prev by Date: displayed path in finder OS X
  • Next by Date: Re: displayed path in finder OS X
  • Previous by thread: displayed path in finder OS X
  • Next by thread: Re: displayed path in finder OS X
  • Index(es):
    • Date
    • Thread