Re: SV: Return character after sed
Re: SV: Return character after sed
- Subject: Re: SV: Return character after sed
- From: Emmanuel <email@hidden>
- Date: Sun, 25 Feb 2007 15:02:11 +0100
At 2:52 PM +0100 2/25/07, Axel Luttgens wrote:
So, this AppleScript command
(date "1/1/1970") + (do shell script "sysctl -n kern.boottime")
should just provide you with the required AppleScript date.
Sorry for popping up in the thread, maybe that may help someone some
day. Some distributions of Smile display the computer's uptime (and
some other information) at launch time. An excerpt of the relevant
script is:
set x to do shell script "uptime"
set s to s & " - computer was " & (ufind text " (up.*), [0-9]+ user"
in x using "\\1" with regexp and string result)
(uptime returns some string like:
2:10 up 4 days, 8:33, 2 users, load averages: 0.34 0.19 0.07)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden