• 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: Andreas Kiel <email@hidden>
  • Date: Wed, 06 Aug 2014 11:02:12 +0200

Thanks Shane,

Seems the way to go.
I'll try that this night.

- Andreas

Andreas Kiel
spherico.com/filmtools



On Aug 6, 2014, at 10:20 AM, Shane Stanley wrote:

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
References: 
 >displayed path in finder OS X (From: Andreas Kiel <email@hidden>)
 >Re: displayed path in finder OS X (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: displayed path in finder OS X
  • Next by Date: Re: NSTask task to rsync with ssh cert authentication
  • Previous by thread: Re: displayed path in finder OS X
  • Next by thread: Trying to create an sdef
  • Index(es):
    • Date
    • Thread