• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unixy question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Unixy question (From: garrett <email@hidden>)

  • Prev by Date: Re: Unixy question
  • Next by Date: Re: osascript - path to me
  • Previous by thread: Re: Unixy question
  • Next by thread: Re: Unixy question
  • Index(es):
    • Date
    • Thread