Accessing AddressBook.data: javascript?
Ton Kuypers
tkuypers at pandora.be
Wed Jan 11 05:48:30 EST 2006
Paul, Klaus,
I found out that rev can't do javascript, but you can embed the
javascript in an applescript, "do" the applescript and let
applescript take care of the javascript...
Works like a charm, you can find instructions on the apple site on
how to do it :-)
Warm regards,
Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com
On 11-jan-06, at 11:24, Klaus Major wrote:
> Buongiorno Paul,
>
>> An old problem; other languages (as RealBasic) have classes who
>> allow to
>> access the Address Book database without opening the application
>> (applescripting method).
>>
>> My question is: the Address Book Widget (and the Easy Envelope
>> widget too)
>> can access the database using apparently some Javascript code (you
>> may find
>> it opening the widget package), and Revolution too can run
>> Javascript code
>> through the command "do".
>>
>> There is someone that, knowing the Javascript language, can
>> extract the
>> right code from these widgets in order to read the records from the
>> addressbook.data database?
>
> sorry, but Rev cannot handle JavaScript via the "do" command.
> Actually Rev cannot handle JS at all!
>
> Just had a look at the widget you mentioned and it looks like Apple
> added an external/plug-in "AddressBook.widgetplugin" there that
> gets called by the JavaScript.
>
> But i really doubt that this plugin can be used/addressed from
> within Rev.
>
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list