• 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: Error in Tiger sending string to Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in Tiger sending string to Terminal


  • Subject: Re: Error in Tiger sending string to Terminal
  • From: Gnarlodious <email@hidden>
  • Date: Fri, 13 May 2005 17:57:03 -0600

It turns out Terminal mangles the command when there's no existing Terminal
window, strangely enough.

My previous language for ensuring an open window existed broke in Tiger, but
this works:

tell application "Terminal"
    if (count of windows) is 0 then do script "uptime"
    delay 0.1
    do script cmd in front window
end tell


-- Gnarlie


 _______________________________________________
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

References: 
 >Re: Error in Tiger sending string to Terminal (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Tiger error with meta-info
  • Next by Date: Re: moving an application window from one display to another
  • Previous by thread: Re: Error in Tiger sending string to Terminal
  • Next by thread: Droplet for lsbom?
  • Index(es):
    • Date
    • Thread