Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
- Subject: Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
- From: Jim Underwood <email@hidden>
- Date: Mon, 23 May 2016 00:22:30 +0000
- Thread-topic: Where to Place [use framework "Foundation"] for ASObjC Handlers?
Due to my error in my first reply, Shane's response did NOT get sent to the group.
So, I'm forwarding it now for everyone's benefit.
From: Shane Stanley < email@hidden>
Date: Sun, May 22, 2016 at 7:08 PM
To: JMichael < email@hidden>
Subject: Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
On 23 May 2016, at 9:58 AM, Jim Underwood < email@hidden> wrote:
So, to make sure I'm understanding this correctly:
• if the handler is in a script lib file, then it would be placed in that lib file, NOT in the script file where the handler is called.
• If the handler is standalone in a main script file, then it would be in that file.
Correct?
Yes.
Does it hurt anything if I have a use framework "Foundation" in BOTH the main script, and in the script lib it is using?
I suppose there might be some theoretical millisecond-level extra delay or something, but it's a bit like including "use scripting additions" and then not calling any. It does no harm. However,
there are a few cases where alias and file coercions work a bit differently when ASObjC is on.
--
<www.macosxautomation.com/applescript/apps/>
|
_______________________________________________
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