Re: Getting a link from a safari window
Re: Getting a link from a safari window
- Subject: Re: Getting a link from a safari window
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 24 May 2010 07:58:23 -0400
I think I would do that adjustment inside the handler. If you're
looping over a collection in pure AS, it's one-based, and I see no
need to expose the implementation detail of JavaScript's 0-based
arrays to the AS code. It makes for an inconsistent API.
On Monday, May 24, 2010, Axel Luttgens <email@hidden> wrote:
> Le 23 mai 2010 à 10:38:35, Axel Luttgens a écrit :
>
>> [...]
>> repeat with I from 1 to CountLinks()
>> [...]
>
> Of course, collections are zero-based, so that the above should have read:
>
> repeat with I from 0 to CountLinks() - 1
>
> Sorry for that careless mistake,
> Axel
>
> _______________________________________________
> 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
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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