Re: applescripted login
Re: applescripted login
- Subject: Re: applescripted login
- From: "John C. Welch" <email@hidden>
- Date: Wed, 28 May 2003 19:49:57 -0400
On 05/28/2003 17:44, "jesse cash" <email@hidden> did proclaim:
>
On Wednesday, May 28, 2003, at 07:21AM, Robert C. Jacobson
>
<email@hidden> wrote:
>
>
> At 06:24 AM -0700 5/28/03, jesse cash wrote:
>
>> I am the administrator of a mac lab at my college. We are trying to
>
>> make the macs login the same way as the pc's (to an nt server). We
>
>> know that this can be done with dave or another thursby product but
>
>> do not have that kind of money. We have come up with another idea
>
>> using applescript but have no actual skill using applescript. In
>
>> order to implement our idea we need to know whether applescript can
>
>> be used to login to servers [snip]
>
>
>
> Could you be more specific about what you are trying to accomplish?
>
> To the Macs login to a Mac OS X Server? Are you trying to mount
>
> network shares on login? If you have Mac OS X Server, you can do
>
> that using the server configuration... if not, then yes, applescript
>
> may be your answer.
>
>
>
>
No we do not have OS X Server, as much as I wish we did. I am essentially
>
trying to write a script that accepts a name and password and then mounts
>
various shares from various servers (the users home folder, teachers
>
submission folders, etc). It would also be helpful if we could mount another
>
server long enough to append date, time, and user name to a text file and then
>
unmount that drive. (however, usage information is only secondary at this
>
point) We would also need a script that unmounts those drives when the user
>
"logs out." We would like to disable the actual logout option so that they
>
would instead simply be running a script called log out that unmounts their
>
drives and calls the login script. I hope this helps, and once again, any help
>
would be useful.
Okay, yes, you can do this, and easily.
I would take a look at the keychain scripting dictionary, as that is a far
better place to store this info than in a script. The advantage is that you
can reference the key information for a mount, even if the mount changes.
So you pull the server, the path, the protocol, the password, and the user
id via variables. This way, you can change the mount info in the keychain,
without changing the script.
The temp mount is easy enough as well, and then it's just a file write
option from there, and an unmount.
You *could* disable the logout option via some tweaking of the logout
process, but I would really caution against this. But theres nothing that
says you can't preset people's logins.
john
--
I'm listening to electroniche by mr. c off of mr c presents subterrain
_______________________________________________
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.