Re: Applescript to write answers to individual file names
Re: Applescript to write answers to individual file names
- Subject: Re: Applescript to write answers to individual file names
- From: Håvard Graudo <email@hidden>
- Date: Thu, 8 Dec 2005 20:41:22 +0100
Den 7. des. 2005 kl. 22:01 skrev David Thompson:
take the input from a popup window: enter your user name, and takes
the answer and writes it into a file in /tmp/uname
I also would like the popup window to ask for the users" password
and take that answer and write it to a file in /tmp/passwd
I need to have 2 separate files.
The reason I need this is I need to have a user friendly interface
in order to question users for their username and passwords and
then take those 2 answers and write them into another file within
the system.
[...]
Others have showed how to write to a file.
If you are after the users full name or account name you don't need a
dialog:
tell application "System Events"
set shortName to name of current user
set longName to full name of current user
end tell
Writing users passwords to a textfile and then copy it around...
hmmmm... are you by any chance working on Sonys new copy protection
scheme for audio CDs? :-)
Håvard
_______________________________________________
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