Re: Really dumb question . . .
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