• 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: Capturing username for script that mounts server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Capturing username for script that mounts server
      • From: Ed Wiederer <email@hidden>
References: 
 >Capturing username for script that mounts server (From: Ed Wiederer <email@hidden>)

  • Prev by Date: Re: Capturing username for script that mounts server
  • Next by Date: Re: Showing a Package's Contents
  • Previous by thread: Capturing username for script that mounts server
  • Next by thread: Re: Capturing username for script that mounts server
  • Index(es):
    • Date
    • Thread