how do i log a variable value?

Posted on
Sun Dec 18, 2005 12:42 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

how do i log a variable value?

what is the as syntax to write the value of a var to the log?

i'm trying stuff, but getting var not defined errors.

tia.

Posted on
Sun Dec 18, 2005 3:14 pm
ajturner offline
Posts: 160
Joined: Jul 10, 2005
Location: Washington, DC

(No subject)

This should work

Code: Select all
   on LogAllVars()
      repeat with curVariable in variables
         set logMsg to name of curVariable & " = " & value of curVariable
         log logMsg using type "Variable"
      end repeat
   end LogAllVars


You then can call LogAllVars() from an embedded Applescript.

Control Indigo from anywhere in the world:
http://highearthorbit.com/software/indigowidget

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests