• 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: Open .term Files in 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open .term Files in 10.3


  • Subject: Re: Open .term Files in 10.3
  • From: Jeffrey Berman <email@hidden>
  • Date: Tue, 21 Jun 2005 08:14:03 -0500

On 6/20/05 9:04 AM, Doug McNutt <email@hidden> wrote:

> At 08:33 -0500 6/20/05, Jeffrey Berman wrote:
>> In OS 10.3, is there a way to use AppleScript to have Terminal open a shell
>> using the settings from a saved Terminal settings (.term) file?
>
> open -a Terminal $HOME/TermTest.term
>
> executed from a BBEdit worksheet works reliably at least in 10.3.9.
>
> Try a "do shell script" from AppleScript
> Don't forget "quoted form of" though.

Doug:

Thanks for your response.  Unfortunately, using this 'do shell script'
approach also works inconsistently when placed in my script.  After some
testing, I seem to have discovered a pattern:  A new shell with the .term
file settings opens only if there have been no previous commands sent to the
Terminal application.

For example, if there are no preceding script commands to Terminal, all
three of the following commands open a shell using the settings from a
Terminal setting file:

tell application "Terminal" to open file "path:to:term:file"

tell application "Finder" to open file "path:to:term:file"

do shell script "open -a Terminal '/path/to/term/file'"

However, if any of these commands is preceded in a script by a command such
as the following:

tell application "Terminal" to get count of windows

then no new shell is opened and there is no error message.

This type of problem never occurred during the time I used scripts with this
sequence in versions of the OS before 10.3.

Any ideas for a solution?

-Jeffrey Berman



 _______________________________________________
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: Open .term Files in 10.3
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: photoshop web gallery options
  • Next by Date: Re: Open .term Files in 10.3
  • Previous by thread: Re: Open .term Files in 10.3
  • Next by thread: Re: Open .term Files in 10.3
  • Index(es):
    • Date
    • Thread