• 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: AppleScriptObjC oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScriptObjC oddity


  • Subject: Re: AppleScriptObjC oddity
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 13 Jul 2015 13:56:54 +1000

On 13 Jul 2015, at 12:48 pm, Chris Page <email@hidden> wrote:
>
> 1. Since the script doesn't use scripting additions, there's no reason to 'use scripting additions'. One of the goals of "use" is to add more structure and explicitness to the otherwise very dynamic AppleScript language, and part of this is being concise and not "use"ing things unless you actually need them. (I understand if this is an excerpt from a larger script that does use additions, but I thought this was a good opportunity to mention this.)

Although this is correct, there's a counter-argument based on practicality: if you don't include "use scripting additions", and at some stage you develop your script and change your mind, adding one can result in lots of terminology conflicts with method names and parameters you have used, and tracking them down can be quite painful. It's one of the downsides to interleaved syntax.

--
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


  • Follow-Ups:
    • Re: AppleScriptObjC oddity
      • From: Chris Page <email@hidden>
References: 
 >Re: AppleScriptObjC oddity (From: Chris Page <email@hidden>)

  • Prev by Date: Re: AppleScriptObjC oddity
  • Next by Date: Re: AppleScriptObjC oddity
  • Previous by thread: Re: AppleScriptObjC oddity
  • Next by thread: Re: AppleScriptObjC oddity
  • Index(es):
    • Date
    • Thread