• 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: Getting a link from a safari window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting a link from a safari window (From: "email@hidden" <email@hidden>)
 >Re: Getting a link from a safari window (From: Axel Luttgens <email@hidden>)
 >Re: Getting a link from a safari window (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Can any of you certify that this is a bug in Mail.app
  • Next by Date: Re: Problems importing the unix mailbox into Mail.app
  • Previous by thread: Re: Getting a link from a safari window
  • Next by thread: AppleScript and Valentina Database
  • Index(es):
    • Date
    • Thread