Re: URLByResolvingAliasFileAtURL
Re: URLByResolvingAliasFileAtURL
- Subject: Re: URLByResolvingAliasFileAtURL
- From: Shane Stanley <email@hidden>
- Date: Sat, 11 Mar 2017 21:55:16 +1100
On 11 Mar 2017, at 9:13 pm, Yvan KOENIG <email@hidden> wrote:
set theURL to current application's class "NSURL"'s fileURLWithPath:POSIXPath set {theResult, theValue, theError} to theURL's URLByResolvingAliasFileAtURL:(reference) options:{} |error|:(reference)
URLByResolvingAliasFileAtURL:options:error: is a class method -- you should see a + before it in the documentation -- so you call it on the NSURL class itself:
set {newURL, theError} to current application's class "NSURL"'s URLByResolvingAliasFileAtURL:theURL options:0 |error|:(reference)
Also options needs an enum or number, not a list. Other possible options are NSURLBookmarkResolutionWithoutUI and NSURLBookmarkResolutionWithoutMounting.
|
_______________________________________________
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