• 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: Where to Place [use framework "Foundation"] for ASObjC Handlers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

-- 
Shane Stanley <email@hidden>
<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

References: 
 >Where to Place [use framework "Foundation"] for ASObjC Handlers? (From: Jim Underwood <email@hidden>)
 >Re: Where to Place [use framework "Foundation"] for ASObjC Handlers? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
  • Next by Date: Re: Reload Library?
  • Previous by thread: Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
  • Next by thread: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • Index(es):
    • Date
    • Thread