Re: Error in Tiger sending string to Terminal
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