Accessing AddressBook.data: javascript?
Martin Baxter
mb.ur at harbourhost.co.uk
Thu Jan 12 05:44:37 EST 2006
Raymond Griffith wrote:
> Try this:
>
> put "Core.pick(*Pick a Boy:*,[*Manny*,*Moe*,*Jack*])" into js
> do replacetext(js,"*",quote) as javascript
> put the result
>
> This is a favorite trick of mine. Having to put in all those "es and
> commas into a do-statement is tedious, and often makes the script
> unreadable. Using an unneeded symbol in the place of a quote and replacing
> it later improves readability tremendously.
>
> Cheers!
>
> Raymond E. Griffith
That's a nice tip Raymond. Worth remembering, and not just for do either
as there are numerous situations where this sort of thing happens.
Martin
More information about the use-livecode
mailing list