[SOLVED]: Applescript using Indigo variable

Posted on
Fri Aug 01, 2014 8:15 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

[SOLVED]: Applescript using Indigo variable

I want to use an Indigo variable (e.g. myText) from the variable list to perform an action in an applescript.

First I defined myText as variable and added some text into it using the 'insert device state into variable command'.
Then I wrote the applescript:

set myspeaktext to variable named "myText"
say myspeaktext

I am getting the error: Can't make <<class Vrbl>> "myText" into type Unicode text

Posted on
Fri Aug 01, 2014 10:01 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Applescript using Indigo variable

Maybe try:

set myspeaktext to value of variable "myText"
say "myspeaktext"

Carl

Posted on
Sat Aug 02, 2014 11:34 am
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: Applescript using Indigo variable

this worked! I tried so many combinations but must have missed this one.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 20 guests