• 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: URLByResolvingAliasFileAtURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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


 _______________________________________________
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

References: 
 >URLByResolvingAliasFileAtURL (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: URLByResolvingAliasFileAtURL
  • Next by Date: Rép: Another impossible feature?
  • Previous by thread: URLByResolvingAliasFileAtURL
  • Next by thread: Rép: Another impossible feature?
  • Index(es):
    • Date
    • Thread