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.


Sun Dec 18, 2005 12:42 pm

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

Control Indigo from anywhere in the world:

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.