Ian,

Apple script might be able to interract with the Terminal app itself. But it really depends on what you are trying to achieve. If Terminal has a dictionary, then you can use those objects, methods, properties to work with Terminal. Since I am not on my MAC. I cannot tell you straight away if this is possible at all.


Be aware, Apple Script isn't a quick learning curve due to the nature of the syntax and information you have to find out about in regards to an App. A good book is really necessary if you are not used to Apple script or programming.

Before anyone can give you a good direction. You need to let us know what your goal is.

In terminal you are accessing the CLI which is BSD Unix which the MAC is based upon. Inside this world you have many different options to choose from.

such as Bash shell scripting, Perl, ruby, etc. But this isn't interacting with the Terminal. Rather you are using the Unix OS directly.

Looking forward to here from you.

Sean
----- Original Message ----- From: "Ioana Gandrabur" <igandra...@gmail.com>
To: <macvisionaries@googlegroups.com>
Sent: Friday, December 02, 2011 7:10 AM
Subject: Re: where to start i I want to automate terminal commands


Hi,

Thanks for the tips. I am afraid I don't know about shell and chmod.
Sorry for being so clueless. Any pointers are as usually very appreciated.
Take care,

Ioana
On Nov 30, 2011, at 10:03 AM, Chris Blouch wrote:

You could just do the script in the shell as well and skip automater. Just put each command line by line in a text file and then modify the text file to be executable with

chmod a+x

after that you can just run that text file and it will execute all the commands inside as though you had typed them. I often use this for repetitive tasks and just name the file "g" for "Go". One tricky bit is the shell will look in certain places (directory paths) for files to run and often times this is not your present directory. So unless I add the present directory (usually denoted as a dot or period) to my path I have to specify it when doing my "g" command:

./g

If you want I can give you the commands to add . to your path and avoid the ./ nonsense.

CB

On 11/29/11 8:52 PM, Ioana Gandrabur wrote:
Hi all,

I would love to create a script or what ever that I can call up to perform a series of terminal commands. I had a look at the automator and found a record option to type in all the steps. I performed the actions but when I tried to run the action got an error. I suspect that the key sequence goes to fast since it is saying that terminal is not running when it was expected to. Any ideas how to do this or where to look for prewritten scripts I can modify?
Is the script editor a better option than automator?

I have no formal scripting experience but have read and written jaws scripts using their manual but really nothing fancy.

Thanks for any suggestions.

Ioana


--
You received this message because you are subscribed to the Google Groups "MacVisionaries" group.
To post to this group, send email to macvisionaries@googlegroups.com.
To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.


--
You received this message because you are subscribed to the Google Groups "MacVisionaries" group.
To post to this group, send email to macvisionaries@googlegroups.com.
To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.


--
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to macvisionaries@googlegroups.com.
To unsubscribe from this group, send email to 
macvisionaries+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to