Apple script question

Ken Ray kray at sonsothunder.com
Sat Jan 8 23:41:11 CST 2005


On 1/8/05 12:04 PM, "Yves COPPE" <yvescoppe at skynet.be> wrote:

> local a_variable
> on mouseUp
>    put "tell application "&quote&"ovolab Phlink"&quote&cr&\
>    "copy number of party to <a_variable>&cr&\
>    "end tell" into tAScript
>    do tAScript as applescript
> end mouseUp
> 
> then further use the variable a_variable in my (local) script
> 
> Is it possible ??

Yes, but you should use "get" and then check "the result", like so:

 local a_variable
 on mouseUp
    put "tell app" && quote & "ovolab Phlink" & quote & cr &\
    "get number of party" & cr &\
    "end tell" into tAScript
    do tAScript as applescript
    put the result  into a_variable
 end mouseUp

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list