• 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
Beginner's scripting Terminal questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Beginner's scripting Terminal questions


  • Subject: Beginner's scripting Terminal questions
  • From: email@hidden (Jamie Kahn Genet)
  • Date: Wed, 2 Mar 2005 07:36:48 +1300

Hi there.

I hope these aren't silly questions (and I hope I make sense as I'm mere
minutes away from blissful sleep :-) ).

I want to write several scripts that will start up various unix
programs, e.g. SETI@home CL version, Lynx WWW browser, that I can place
in the Applescript menu. But I want to be able to control the
information in the window's title bar and the transparency of the
window.

If I don't tell the window exactly what to put in the title I get only
the processes name. But the information I can place in the title by AS
is limited (at least from what I can see in Terminal's AS dictionary)
compared to the window preferences in Terminal.

Also if I specify a different background colour from my default it is
totally  opaque, and I want partially transparent windows. Once again I
don't see a way to do this in Terminal's AS dictionary.

Here is one of my scripts so far for opening Lynx:

tell application "Terminal"
        activate
        with timeout of 120 seconds
                do script with command "/usr/local/bin/lynx"
                tell window 1
                        set background color to "white"
                        set cursor color to "black"
                        set normal text color to "black"
                        set bold text color to "black"
                        set title displays shell path to true
                        set title displays window size to true
                        set title displays device name to true
                        set title displays file name to true
                        set title displays custom title to true
                        set custom title to "Lynx WWW Browser"
                        set number of columns to 100
                        set number of rows to 45
                end tell
        end timeout
end tell

My trouble is as mentioned above: I don't get the full set of info in
the title bar either way and I lose transparency in the Terminal window
that opens. Can someone please tell me if there's a way to get my
desired results? Am I able to set window colours within the Terminal? If
so I'll just write a .command terminal script that includes them. Is
there a way?

TIA,
 Jamie Kahn Genet
--
If you're not part of the solution, you're part of the precipitate.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Beginner's scripting Terminal questions
      • From: Adam Wuellner <email@hidden>
    • Re: Beginner's scripting Terminal questions
      • From: Gnarlodious <email@hidden>
    • Re: Beginner's scripting Terminal questions
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: About integers
  • Next by Date: Are there any useful MacSOUP Applescripts?
  • Previous by thread: Re: About integers
  • Next by thread: Re: Beginner's scripting Terminal questions
  • Index(es):
    • Date
    • Thread