Re: Another Applescript noob
Re: Another Applescript noob
- Subject: Re: Another Applescript noob
- From: Emmanuel LEVY <email@hidden>
- Date: Wed, 26 May 2010 21:18:39 +0200
On May 26, 2010, at 9:03 PM, Mark J. Reed wrote:
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.
Or you can use display dialog's output in line, like in:
-- tested
do shell script "ls " & (text returned of (display dialog "Enter
directory to list:" default answer "/"))
Emmanuel
_______________________________________________
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