Explain applescript vs terminal script vs shell scripts and Automator

Friends:

I see the words Applescript and terminal script used almost interchangeably. So what is the major difference between them? Can any Applescript run in the terminal? I thought terminal scripts were shell scripts. And why are shell scripts referenced to Bash?

My personal goal: I would like to use Automator to prompt for user input (using ask for text), then use this user input in a terminal script called by run shell script.

Where can I learn more about all this in a non-pull-out-my-hair mode?

I have made some Automator workflows, and even put a simple (not made by me) applescript into an automator workflow with success, but now I want to move forward.

Thanks amigos!

Migs

Dual 2 GHz PowerPC G5/ 5.5 Gb SDRAM, Mac OS X (10.5.5), Using C++ under XCode 3.0

Posted on Apr 2, 2009 3:48 PM

Reply
6 replies

Apr 2, 2009 4:39 PM in response to Miguel Reznicek

Applescript is Apple's scripting language. Apple has also implemented an Open Scripting Architecture (OSA) that allows scripts to be called interchangeable within each other. I think there is more to it, but that's as much as I know. So, in shell script, you can call an Applescript, and in an Applescript, you can call a shell script.

The 'shell' is any of several unix shells that allow you to create interface with the OS to do tasks. Bash is one of those shells and is the default shell since Tiger, I think. The Terminal opens up a 'shell' within which you can run commands.

I can't offer any sources on unix shell programming, but I learned Applescript with two books:
+Danny Goodman's Applescript Handbook+ and +Applescript: The Definitive Guide+ by Matt Neuburg.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Explain applescript vs terminal script vs shell scripts and Automator

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.