• 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: Another Applescript noob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Applescript noob


  • Subject: Re: Another Applescript noob
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 26 May 2010 15:03:08 -0400

You can run the script inside Terminal with 'tell application "Terminal" to do script "...."', instead of 'do shell script', and then the script can interact with the user as needed.

Or if the script just expects certain things on its input but doesn't need a terminal, you can prompt for them with 'display dialog' and then use "echo" or <<< as part of the shell command to feed the input to it.

On Wed, May 26, 2010 at 2:52 PM, Joy <email@hidden> wrote:
I have a shell script that I know I can call from Applescript and I have successfully done that.

What the problem is, the shell script requires user input and I'm not sure how to call it, so that the user can enter in the information they need to in order for the script to be executed completely.

Is this possible?

Thank you!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



--
Mark J. Reed <email@hidden>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another Applescript noob
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Another Applescript noob (From: Joy <email@hidden>)

  • Prev by Date: Another Applescript noob
  • Next by Date: Re: Need an icon
  • Previous by thread: Another Applescript noob
  • Next by thread: Re: Another Applescript noob
  • Index(es):
    • Date
    • Thread