Re: Where to log lines go
Re: Where to log lines go
- Subject: Re: Where to log lines go
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 12 Jan 2009 12:18:55 -0500
Paul: log output from osascript goes nowhere. It arguably should go
to standard error or something, but osascript does not handle that
event. If that's all you wanted to know, now you do. Good luck.
Philip attempted to go further to help you resolve your actual issue,
which seemed to be getting output from your script where your calling
program can access it. Neither AppleScript nor osascript provides
any built-in way to write directly to standard output (or standard
error, or to read from standard input for that matter). The return
value of a top-level script is sent to stdout, but not until right
before osascript exits. Hence Philip's suggestion to use 'do shell
script "echo" ', which is expensive and roundabout but has the
distinct advantage of actually working.
I thought there might be a workaround via e.g. ' open for access
(POSIX file "/dev/fd/1") ', but that doesn't work; from other poking
around it seems that /dev is wholly invisible from the HFS side.
_______________________________________________
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