• 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: osascript and text output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: osascript and text output


  • Subject: Re: osascript and text output
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 28 Jul 2008 13:49:51 -0400

On Mon, Jul 28, 2008 at 2:54 AM, Skeeve <email@hidden> wrote:
>  to echo(something)
>     do shell script "echo >`tty` " & quoted form of something
>  end echo

Good thought; shame it's that hard to do from AS, though.

I would use /dev/tty instead of `tty`, as it avoids any potential
weirdnesses due to inherited tty file descriptors in processes that
can't open the tty by full pathname.  Plus it saves a process, for
whatever that's worth when you're already shelling out.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: osascript and text output
      • From: Skeeve <email@hidden>
References: 
 >Re: osascript and text output (From: xcgr <email@hidden>)
 >Re: osascript and text output (From: Skeeve <email@hidden>)

  • Prev by Date: Re: weird behaviour
  • Next by Date: Re: weird behaviour
  • Previous by thread: Re: osascript and text output
  • Next by thread: Re: osascript and text output
  • Index(es):
    • Date
    • Thread