Re: Capturing username for script that mounts server
Re: Capturing username for script that mounts server
- Subject: Re: Capturing username for script that mounts server
- From: John Stewart <email@hidden>
- Date: Wed, 30 Mar 2005 16:18:10 -0500
On 03/30/05 at -0500 Ed Wiederer said this
>I'm trying to come up with
>something that will pop up a dialog box that will capture their user
>name. But I only want that box to come up the very first time they run
>the script, and have the script retain that information from there on
>out.
You don't need the dialog box either -
--> cut <--
property myUser : missing value
if myUser is missing value then set myUser to do shell script "whoami"
--> cut <--
The above script will capture the user's name the first time it's run. After that if you need to change the name you will need to re-compile the script and run it again. Make sure you re-compile just before you send your script so you don't inadvertently send it loaded with your name.
JBS
--
I don't know how I got over the hill without getting to the top. — Will Rogers
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden