• 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: Wayne Melrose <email@hidden>
  • Date: Tue, 26 Jul 2005 09:17:36 +0200

So when you say "write your own" ... how would you you go about doing this? Because I have asked the same question here (in a different way) but essentially I would also like to know how to log the same data that comes from the "Event Log" for some scripts.. 

So I'm still not sure if this has been answered to Marks original question?


-------------------------------------
Wayne Melrose 
email@hidden




On Jul 26, 2005, at 8:58 AM, Christopher Nebel wrote:



[H]ow, when a script is running under osascript, can I write to standard output?  log() doesn't seem to send things anywhere from osascript.... I know that the return value of the on run handler is automatically echoed, but I'm looking for a way to report progress along the way, not just output a big string all at the end.



Oh, and just in case it's not clear,  'do shell script "echo ..." ' is not really what I'm looking for.  Holy overkill. :)



Heh.  Well, if you rule that out, then no, there's no built-in way.  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."



--Chris Nebel

AppleScript and Automator Engineering


 _______________________________________________
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

  • Follow-Ups:
    • Re: Really dumb question . . .
      • From: Christopher Nebel <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: Really dumb question . . .
  • Next by Date: Re: Really dumb question . . .
  • Previous by thread: Re: Really dumb question . . .
  • Next by thread: Re: Really dumb question . . .
  • Index(es):
    • Date
    • Thread