• 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: Terminal Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: FileMaker and QuickTime movie
  • Next by Date: Re: Terminal Scripting
  • Previous by thread: Microsoft PowerPoint Slide
  • Next by thread: Re: Terminal Scripting
  • Index(es):
    • Date
    • Thread