RE: Terminal Scripting
RE: Terminal Scripting
- Subject: RE: Terminal Scripting
- From: "Bill Judd" <email@hidden>
- Date: Wed, 17 Oct 2001 12:18:25 -0700
On Wed 17 Oct 2001, Eric Bowman <email@hidden> wrote:
>
I can't seem to script the Terminal/Unix layer of OS X. I am using
>
version 10.1 and can't get my scripts for the Terminal to run. I tried
>
using the dictionary for Terminal but since I am a newcomer to
>
AppleScript I am getting the syntax wrong.
>
>
Could somebody send me a simple 2 or 3 line script that sends one basic
>
command to the terminal so that I can see how it is done?
>
>
Thanks,
>
Eric
Given a shell script named "hello.sh":
#!/bin/sh
echo hello, world!
this Applescript will run it:
Tell application "Terminal"
do script with command "tcsh hello.sh"
end tell
cheers!
Bill Judd
Staff Applications Engineer, USBApps
Cypress Semiconductor
Personal Connectivity Division
3901 N. First Street M/S 4
San Jose, CA 95134
v: +1 (408) 545-7846
For USB Technical Support,
mailto://email@hidden