• 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: Script Fails in Snow Leopard - Adobe Unit Types.osax - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Fails in Snow Leopard - Adobe Unit Types.osax - SOLVED


  • Subject: Re: Script Fails in Snow Leopard - Adobe Unit Types.osax - SOLVED
  • From: Paul Scott <email@hidden>
  • Date: Tue, 1 Sep 2009 22:04:01 -0700

I got around the whole ugly mess by scrapping the original script and starting over with a whole new solution. No more problems.

-- THIS SCRIPT WILL INVOKE PINE ON THE REMOTE MACHINE KNOWN AS "haven"

property windowCount : 0
property haveTerminal : false

on run
try
tell application "System Events" to get id of process "Terminal"
set haveTerminal to true
on error
set haveTerminal to false
end try
tell application "Terminal"
activate
try
set w to front window
if haveTerminal is true then
set w to do script ""
end if
on error
set w to do script ""
end try
set s to "/bin/sh -c 'ssh -t haven pine'"
do script s in w
delay 1
repeat until not busy of w
delay 1
end repeat
set windowCount to count of windows
do script "exit" in w
if (haveTerminal is equal to false) and (windowCount ≤ 1) then
quit saving no
end if
end tell
end run


I still think there's a bug in osascript for complaining about something I'm not using. I may or may not open a bugreport on it. I'll think on it for awhile.

Paul

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Script Fails in Snow Leopard - Adobe Unit Types.osax - SOLVED
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Script Fails in Snow Leopard - Adobe Unit Types.osax (From: Shane Stanley <email@hidden>)
 >Re: Script Fails in Snow Leopard - Adobe Unit Types.osax (From: Paul Scott <email@hidden>)
 >Re: Script Fails in Snow Leopard - Adobe Unit Types.osax (From: Deivy Petrescu <email@hidden>)
 >Re: Script Fails in Snow Leopard - Adobe Unit Types.osax (From: Paul Scott <email@hidden>)
 >Re: Script Fails in Snow Leopard - Adobe Unit Types.osax (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Script Fails in Snow Leopard - Adobe Unit Types.osax
  • Next by Date: Re: Script Fails in Snow Leopard - Adobe Unit Types.osax
  • Previous by thread: Re: Script Fails in Snow Leopard - Adobe Unit Types.osax
  • Next by thread: Re: Script Fails in Snow Leopard - Adobe Unit Types.osax - SOLVED
  • Index(es):
    • Date
    • Thread