Re: Convert File or Path Input into NSURL, HFS path, or POSIX Path Output
Re: Convert File or Path Input into NSURL, HFS path, or POSIX Path Output
- Subject: Re: Convert File or Path Input into NSURL, HFS path, or POSIX Path Output
- From: Shane Stanley <email@hidden>
- Date: Wed, 01 Mar 2017 09:59:26 +1100
On 1 Mar 2017, at 7:11 am, Christopher Stone <email@hidden> wrote:
# return myNSURL as text -- HFS path return POSIX path of (myNSURL as text)
FWIW, I'm surprised those two work -- you shouldn't be able to coerce an NSURL to text. My guess is that, because you're running 10.11 or later, AppleScript is coercing the NSURL to to a file («class furl»), and then coercing that to a string. If you want the POSIX path, you should use the path method.
|
_______________________________________________
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