View unanswered posts | View active topics It is currently Wed Apr 16, 2014 9:49 pm



Reply to topic  [ 2 posts ] 
 how do i log a variable value? 
Author Message

Joined: Sep 24, 2005
Posts: 511
Post 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.


Sun Dec 18, 2005 12:42 pm
Profile

Joined: Jul 10, 2005
Posts: 160
Location: Northville, Michigan
Post 
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.

_________________
Share and read automation tips and setups:
http://automation.highearthorbit.com/wiki

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


Sun Dec 18, 2005 3:14 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.