• 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: has <email@hidden>
  • Date: Wed, 27 Jul 2005 14:54:13 +0100

Christopher Nebel wrote:

>>Easiest would be to write your debug messages to file using Standard Additions, or use TextCommands' <http:// freespace.virgin.net/hamish.sanderson/index.html#textcommands> 'log message' command to write them to Console.
>
>I didn't know TextCommands had that function. Sounds like a fine solution to me.

It's kind of an obscure addendum, only tenuously related to text processing. But it's useful so I left it in.


>(Has, does "log message" simply write to stderr, or does it use syslog(3)? They have somewhat different behaviors.)

Y'know, never really thought about it... 'log message' is just a quick-n-dirty (though I'm open to better suggestions) Python function that takes a unicode string, crudely escapes any non-ASCII characters as Console doesn't seem to like UTF8, and prints the result. Python's print statement invokes sys.stdout.write(), so I'm assuming it just goes straight out on stdout unless the py2app wrapper does anything to it. I'm not so up on this stuff though; the folks on the PythonMac SIG mailing list could tell you for sure.

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
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

  • Prev by Date: Re: display alert timeout not functioning
  • Next by Date: Re: display alert timeout not functioning
  • Previous by thread: Re: Really dumb question . . .
  • Next by thread: Re: Really dumb question . . .
  • Index(es):
    • Date
    • Thread