• 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
Milliseconds in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Milliseconds in OS X?


  • Subject: Milliseconds in OS X?
  • From: bill <email@hidden>
  • Date: Sat, 23 Mar 2002 12:12:57 +0800

Hello,

An interesting exploitation this morning:

try
do shell script "defaults read b"
on error errorText
errorText
end try

-- "2002-03-23 12:02:04.583 defaults[1706]
Domain b does not exist"

The digits .583, can we interpret it as 583 milliseconds?

Or, this one:

on markTime()
try
do shell script "defaults read b"
on error errorText
text 12 thru 23 of errorText
end try
end markTime

set timeList to {}
repeat 10 times
set end of timeList to my markTime()
end repeat
TimeList

--{"12:07:55.851", "12:07:55.994", "12:07:56.131", "12:07:56.279",
"12:07:56.415", "12:07:56.551", "12:07:56.685", "12:07:56.822",
"12:07:56.959", "12:07:57.092"}

Is it a potential "ticks" in OS X?


Bye
Bill
_______________________________________________
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.

  • Follow-Ups:
    • Re: Milliseconds in OS X?
      • From: Timothy Bates <email@hidden>
  • Prev by Date: Re: search and replace
  • Next by Date: Re: "do script" working in AppleScript 1.8.2b1
  • Previous by thread: Re: what is the best way to 'unset' a variable
  • Next by thread: Re: Milliseconds in OS X?
  • Index(es):
    • Date
    • Thread