do script from applescript
Thomas McGrath III
3mcgrath at comcast.net
Tue Sep 23 15:56:36 EDT 2008
Well, after quite a few attempts and tweaks I can now send AS do
script to the IDE and I can also send it to a Standalone.
One point:
I have to send to the stack name if the command is located on the
stack and/or to the card if the command is located on the card. This
seems very odd to me. It's like the message path is not being followed
on it's own.
So these do not work:
do script "HandlerName" does not work for me
or:
do script "send \"HandlerName\""
But this doeswork:
do script "send \"HandlerName\" to stack \"TestStack\""
or if on the card then:
do script "send \"HandlerName\" to card \"TestCard\" of stack
\"TestStack\""
-------------------
Now I can control my iPhone Prototype Standalone from the actual iPhone.
My prototype is an iPhone UI and I emulate the iPhone in Rev and so
now I can control that from an image of the UI on the iPhone itself.
Almost like having the actual stack running, a little bit any way.
Certainly during a demo of the UI anyway.
I am using iRed 2 (and without the need for the iTrans driver, atleast
for Rev contro)
This is the coolest thing I've seen in a long time. I can "Fully"
control my TV, Robosapien Robot, Cable Box, EyeTv on my computer,
iTunes, Safari, Powerpoint, Keynote, and Revolution all from my
iPhone. And I can do this via WiFi and not Bluetooth or IR or Radio.
Way Cool.
Thanks all,
Tom McGrath
On Sep 23, 2008, at 2:41 PM, Thomas McGrath III wrote:
> Bernd or BNig, smile
>
> That worked. I am not sure why a simpler version worked for others????
>
> Since that worked I am going to adapt it to my project and see how
> it goes.
>
> Thanks again,
>
> Tom
>
>
> On Sep 23, 2008, at 2:15 PM, BNig wrote:
>
>>
>> Hi Tom,
>>
>> I only get it to work if I set the calling applescript to
>>
>> tell application "Revolution"
>> activate
>> do script "send \"testIt \" to stack \"NameOfYourStack\""
>> set x to the result
>> end tell
>> x
>>
>> the last x optional to see the result
>>
>> in the stackscript of my stack "NameOfYourStack"
>>
>> ----
>> on testIt
>> answer "got it"
>> beep 2
>> return "OK"
>> end testIt
>> ----
>>
>> I saw others had success with your version, I never got it to work
>>
>> hth
>>
>> Bernd
>>
>>
>
> _______________________________________________
> 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