• 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: strange difference in compilation of two Foundation classes in ASObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange difference in compilation of two Foundation classes in ASObjC


  • Subject: Re: strange difference in compilation of two Foundation classes in ASObjC
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 19 Mar 2017 19:46:05 +0000

Mitchell L Model wrote on Sun, 19 Mar 2017 13:16:59 -0400:

>In a brief ASObjC script I used:the following successfully
>my NSFileManager's defaultManager
>However, the following:
>my NSURL's fileURLWithPath:arg
>gets compiled into:
>my (nsurl's fileURLWithPath:arg)
>which of course doesn't work. (The parentheses are misplaced and NSURL
has
>been lowercased.)
>However,
>	current application's class "NSURL"'s fileURLWithPath:arg
>does work. Why can I use "my NSFileManager" but not "my NSURL"? Is there
>some rule about when I can use my and when I have to use the "current
>application's class" construction?

You probably have the XMLLib OSAX installed, which defines its own term
'nsurl'. In that case you either have to use class "NSURL", as you've
already tried, or put bars round the variable: |NSURL| .

NG


 _______________________________________________
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


  • Prev by Date: Re: strange difference in compilation of two Foundation classes in ASObjC
  • Next by Date: Re: about PDFpenPro
  • Previous by thread: Re: strange difference in compilation of two Foundation classes in ASObjC
  • Next by thread: My script won't be running stably
  • Index(es):
    • Date
    • Thread