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

URLByResolvingAliasFileAtURL


  • Subject: URLByResolvingAliasFileAtURL
  • From: Yvan KOENIG <email@hidden>
  • Date: Sat, 11 Mar 2017 11:13:05 +0100

As I hate the Finder I try to replace a call to Finder's alias file --> the original item pointed to by the alias
by some ASObjC code.

Alas I clearly missed something but can't guess what.

 tried with :

use AppleScript version "2.4"
use framework "Foundation"
use scripting additions


# POSIX path to a symbolic link on the desktop
set POSIXPath to POSIX path of (path to desktop as text) & "Folder Action Scripts"

set theURL to current application's class "NSURL"'s fileURLWithPath:POSIXPath
set {theResult, theValue, theError} to theURL's URLByResolvingAliasFileAtURL:(reference) options:{} |error|:(reference)


May you explain what is wrong here ?
I found nothing about the options in Xcode help.


Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) samedi 11 mars 2017 11:12:48



 _______________________________________________
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

  • Follow-Ups:
    • Re: URLByResolvingAliasFileAtURL
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Differences in output between AppleScript and Terminal
  • Next by Date: Re: URLByResolvingAliasFileAtURL
  • Previous by thread: Re: Differences in output between AppleScript and Terminal
  • Next by thread: Re: URLByResolvingAliasFileAtURL
  • Index(es):
    • Date
    • Thread