Re: strange difference in compilation of two Foundation classes in ASObjC
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