• 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: How do I return current user information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I return current user information


  • Subject: Re: How do I return current user information
  • From: Graff <email@hidden>
  • Date: Thu, 20 Nov 2003 03:15:49 -0500

The fred is Emmanuel being cute, it's just a variable that the result is stored in I believe. :-)

From the documentation:
<http://developer.apple.com/documentation/AppleScript/Conceptual/ AppleScriptLangGuide/AppleScript.75.html>
-----
These two statements are equivalent:

set x to 3
3 returning x
--result: 3
------

And yeah, the "system attribute" way is a more AppleScript way of doing it that I didn't see at first.

- Ken

On Nov 20, 2003, at 1:10 AM, Richard Morton wrote:

On Thursday, November 20, 2003, at 10:33 AM, Emmanuel wrote:

At 11:07 AM -0800 19/11/03, Redd, Mark wrote:
Hi all. I am using OS\X on a win2k domain with admitMac. I need to
figure out a way to return the current user logged in as a variable.

system attribute "USER" returning fred

Much faster than a shell script. ;-) What's the 'returning fred' bit for? It works the same without it.

L User
-- speaking to you from a certified Fred Free Zone
_______________________________________________
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: How do I return current user information (From: Richard Morton <email@hidden>)

  • Prev by Date: Re: Getting label from a record
  • Next by Date: Getting label from a record (Reasons)
  • Previous by thread: Re: How do I return current user information
  • Next by thread: Re: How do I return current user information
  • Index(es):
    • Date
    • Thread