Re: creating your own commands
Re: creating your own commands
- Subject: Re: creating your own commands
- From: 2551 <email@hidden>
- Date: Sat, 26 Dec 2015 16:39:21 +0700
> On 26 Dec 2015, at 14:31, Shane Stanley <email@hidden> wrote:
>
> On 24 Dec 2015, at 11:14 PM, 2551 <email@hidden> wrote:
>>
>> i. the video doesn’t tell you that you need to include the 'use framework “Foundation”’ line (you don’t on 10.9, but on 10.11 I couldn’t get it to compile otherwise);
>
> I don't think you should have to include 'use framework "Foundation"'. That fact that adding it got your code to compile suggests you might have had a clash of four-letter codes or terminology with a loaded scripting addition, which the "use..." statement effectively hid.
Thanks for responding to this point; this has been worrying me.
I guess it would be the four letter codes; I don’t think at that point I had any scripting additions in the script; it was pretty bare bones. In fact, it was exactly the script used in the video, including the four letter codes.
I don’t quite understand the mechanism behind the explanation, though, in two respects:
i. How would the same script and the same SDEF file have a clash on 10.11 but not on 10.9?
ii. and how would adding ‘use framework “Foundation” serve to avoid a clash in Apple Event codes?
Best
Phil
_______________________________________________
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