• 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
Expect commands in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Expect commands in Applescript


  • Subject: Expect commands in Applescript
  • From: Isaac Ordonez <email@hidden>
  • Date: Mon, 2 Feb 2004 08:58:08 -0800

Hello,

I'm messing with the do shell script command in applescript and I had a question someone might know, is there anyway to have the script pause or wait for an output before sending more commands to the script? A Very simple example is the passwd command.

I would like to have a do shell script "passwd user" and then have it wait 3 seconds (OR expect certian text a la expect unix program) and then give the passwd program my password (in a popup window) and then wait again and change the users's password.

Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Expect commands in Applescript
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Using list from text file to create folder, search, and copy
  • Next by Date: Re: Using list from text file to create folder, search, and copy
  • Previous by thread: Re: Key Caps: was (Shell-wrap a file in 2 variable strings)
  • Next by thread: Re: Expect commands in Applescript
  • Index(es):
    • Date
    • Thread