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: Checking for logged on guests



Dave,

Thanks for the quick reply:
>
>What about:
>------
>do shell script "who"
>set mylogons to result
>mylogons
>--> djb console Dec 30 13:13
>--> djb ttyp1 Dec 30 13:56
>------

I just came into the office to try it and all I get is the user that logged on to start the machine.

My result is:
do shell script "who"
set mylogins to result
mylogins

-->> scriptse console Dec 22 16:27

"Scriptse" is the Mac running the script and the date displayed is the last boot date.

This is an iMac running 10.3.2 sharing its "Public" folder.
At the time of running the shell script, there was one PowerBook running 10.3.2 and one powerBook running OS9.1 logged onto the shared folder. Neither of these
show up.

--

Happy New Year! :-)

Larry McMunn
President

McMunn Associates, Inc.
Specialists in automated Data Visualization through Apple products
Collingswood, NJ

(856) 858-3440
---------------------------------------------------------------
_______________________________________________
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.



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.