• 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: SV: Return character after sed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Return character after sed (From: <email@hidden>)
 >Re: Return character after sed (From: "Mark J. Reed" <email@hidden>)
 >SV: Return character after sed (From: <email@hidden>)
 >Re: SV: Return character after sed (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: SV: Return character after sed
  • Next by Date: I need your help to decode what is in the clipboard (return clipboard info)
  • Previous by thread: Re: SV: Return character after sed
  • Next by thread: Return character after sed
  • Index(es):
    • Date
    • Thread