|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| References: | |
| >Capturing username for script that mounts server (From: Ed Wiederer <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.