• 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: Really dumb question . . .
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Really dumb question . . .


  • Subject: Re: Really dumb question . . .
  • From: Chris Page <email@hidden>
  • Date: Tue, 26 Jul 2005 02:20:50 -0700

On Jul 25, 2005, at 23:58 PM, Christopher Nebel wrote:

Realize that AppleScript grew up in a world where the idea of "standard output" was meaningless. There's an enhancement request on this, as well as making "log" go to stderr, but feel free to write your own. It's useful to have actual use cases instead of just "it seems like this would be handy."

It would be great if log went to stderr. And I'd love to see explicit access to standard in and out (possibly as AppleScript constants whose values are file reference numbers that can be used with read/ write).


I was going to suggest using "read" and "write" to "/dev/stdin" and "/ dev/stdout". These are pseudo devices that are tied to the stdin and stdout for the current process. Unfortunately, I couldn't find a way to access them. AppleScript converts 'posix file "/dev/stdin"' to 'file "Macintosh HD:dev:stdin"' when compiling the script. Either it doesn't support read/write with pseudo devices, or the conversion from 'posix file' to 'file' isn't aware that some things don't have a conversion to "Macintosh HD:...".

--
Chris Page - Software Wrangler - Dylan Pundit

  Open Source Dylan Compilers: <http://www.gwydiondylan.org/>
  Dylan Blogging: <http://homepage.mac.com/chrispage/iblog/>
  Dylan Stuff: <http://www.cafepress.com/chrispage>


_______________________________________________ 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: 
 >Really dumb question . . . (From: "Mark J. Reed" <email@hidden>)
 >Re: Really dumb question . . . (From: "Mark J. Reed" <email@hidden>)
 >Re: Really dumb question . . . (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Next by Date: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • Previous by thread: Re: Really dumb question . . .
  • Next by thread: Re: Really dumb question . . .
  • Index(es):
    • Date
    • Thread