Send variables back to Rev from Applescript

Marian Petrides mpetrides at earthlink.net
Fri Aug 20 08:39:56 EDT 2004


Thanks. That's just the kind of thing I had in mind.

M
On Aug 20, 2004, at 8:34 AM, Thierry Arbellot wrote:

> I haven't too much experience with Applescript in Rev, but I can help 
> in a simple script.
> I use the following script to get the physical ram of the computer and 
> I get the returned value into "the result" variable.
>
>     do "get (system attribute " &quote& "ram " &quote& ") / 1048 div 
> 1000" as appleScript
>     put the result into theRAM
>
> Thierry
>
> On Friday, Aug 20, 2004, at 14:21 Europe/Paris, Marian Petrides wrote:
>
>> Richard's query about Applescript got me thinking about ways to use 
>> Applescripts in Rev code.  One thing that isn't clear to me, however, 
>> is whether if you execute an Applescript using:
>>
>> do fld 1  as applescript
>>
>> and that Applescript  returns a value, is there a way to capture that 
>> value and use it in other Revolution code?  If so, how would one send 
>> a value (or better yet a list of values) back from Applescript to 
>> Rev?
>>
>> Thanks.
>>
>> M
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list