Re: Algorithms in Applescript
Re: Algorithms in Applescript
- Subject: Re: Algorithms in Applescript
- From: Shane Stanley <email@hidden>
- Date: Wed, 25 Mar 2015 12:57:00 +1100
On 25 Mar 2015, at 12:25 pm, Stockly, Ed <email@hidden> wrote:
>
> While there are some tasks where the approaches would be identical, there
> are others where the AppleScriptObjC approach would be radically
> different.
Indeed. But generally where they differ is where ASObjC either does something that AS can't do, or it provides a higher-level function that saves code/time. So you end up doing what you want by effectively talking another language. Snippets of such code are good and useful. But the rosettacode page says it aims "to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another". To me, that sounds more like how to do something with a generally low-level approach -- algorithms. So an AppleScript bubble sort might be useful here, whereas using a canned sort method in ASObjC is not really an algorithm.
But I might be reading more into it than there is, and I look forward to seeing your contributions.
> And it's probably better to have the non-AppleScriptObjC
> appleScript approach distinguished from the appleScript approach.
I have no algorithm for that sentence...
--
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