Re: Unixy question
Re: Unixy question
- Subject: Re: Unixy question
- From: Philip Aker <email@hidden>
- Date: Sat, 18 May 2002 08:27:53 -0700
Paul Skinner:
Can someone translate this into the actual string I need to
give to a 'do shell script' command to get the time with
microseconds ?
This is not a very direct way but it's the only one I know right
now unless you wanted to use 'time' (as in Terminal "man
time"). You'll have to do the first 'do shell script' to get the
Tcl script file in your home directory. After that just use the
second and third lines. According to the tcl source file it's
returning the unsigned 32 bit 'lo' member of an unsigned wide.
On my setup, Script Editor chokes on this when I try to cast it
as an AS unsigned integer (when the returned value goes negative
because it is so large).
--do shell script "cd;echo 'puts [clock clicks]' > clocker.tcl;"
set tcl_timer to "tclsh clocker.tcl"
set res to (do shell script "cd;" & tcl_timer)
Philip Aker
http://www.aker.ca
'
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.