• 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: Applescript to write answers to individual file names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Applescript to write answers to individual file names (From: David Thompson <email@hidden>)

  • Prev by Date: Re: [FYI] Scripting problems on new Mac
  • Next by Date: Applications not on client machines and choices
  • Previous by thread: Re: Applescript to write answers to individual file names
  • Next by thread: Applications not on client machines and choices
  • Index(es):
    • Date
    • Thread