Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How many seconds since I logged in



Or:
set the_user to do shell script "whoami" -- even shorter ;-)

Regards,
Jasper.


On Jul 06, 2005, at 1:12 AM, Gary (Lists) wrote:

"I" wrote:

set the_user to the second word of ¬
  (characters (offset of "Users" in path to preferences as string) ¬
      through (length of (path to preferences as string)) of ¬
      (path to preferences as string) as string)


...is obviously silly. :)

set the_user system attribute "USER"

or

set the_user to do shell script "echo $USER"

is far less so.
--
Gary

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Re: How many seconds since I logged in (From: "Gary (Lists)" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.