Thanks Shane,

Just to clarify, I don’t need a “_” at all, anywhere? 

The reason I added them is because in uses them in the example at:

http://appscript.sourceforge.net/asoc.html 
<http://appscript.sourceforge.net/asoc.html>

Thanks a Lot and All the Best
Dave

> On 9 Nov 2015, at 22:47, Shane Stanley <sstan...@myriad-com.com.au> wrote:
> 
> On 10 Nov 2015, at 1:47 AM, Dave <d...@looktowindward.com> wrote:
>> 
>> Got it working now, tt seems you don’t need the “_” after the name for init? 
>> 
>> Are the rules for when you need a “_” or not documented anywhere?
> 
> You don't need -- and in fact cannot use -- an underscore anywhere. The 
> doThis:withThat: interleaved syntax was introduced to AppleScript in 10.9; 
> before that, you would use doThis_andThat_() (which is what happens under the 
> hood, and can still be used). But never an underscore where there is no 
> parameter.
> 
> -- 
> Shane Stanley <sstan...@myriad-com.com.au>
> <www.macosxautomation.com/applescript/apps/>
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/dave%40looktowindward.com
> 
> This email sent to d...@looktowindward.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to