Extraneous osascript output
Extraneous osascript output
- Subject: Extraneous osascript output
- From: Andrew Oliver <email@hidden>
- Date: Sun, 25 May 2003 12:47:20 -0700
Whenever I run osascript on the command line I get extraneous output in my
terminal. For example:
# osascript -e 'beep'
>
## Component Manager: attempting to find symbols in a component alias of type
>
(regR/carP/x!bt)
>
ASW CFM Init; App: osascript
>
ASW CFM Terminate; App: osascript
WTF is this? Why is is there? And most importantly - how do I get rid of it?
The problem with it is that the output of the actual script is embedded in
the middle and you have to chop off the first two lines and the last.
OK, so 'beep' doesn't actually generate any output, but try finding the
output of:
osascript -e 'return "abcdefg"'
You get:
>
## Component Manager: attempting to find symbols in a component alias of type
>
(regR/carP/x!bt)
>
ASW CFM Init; App: osascript
>
abcdefg
>
ASW CFM Terminate; App: osascript
The junk is actually stderr rather than stdout, but I can't seem to redirect
it to /dev/null, and there don't appear to be any osascript switches that
suppress it. I'm also half guessing it's debug code that some developer
inadvertently left in since I can't see it adds any value for the end user.
How can I get rid of this? (other than piping the result through another
unix util). Is it something I have to wait for Apple to fix?
Andrew
:)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.