• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 25 Jul 2005 23:58:14 -0700

On Jul 25, 2005, at 7:28 PM, Mark J. Reed wrote:

On 7/25/05, Mark J. Reed <email@hidden> 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: "Mark J. Reed" <email@hidden>
    • Re: Really dumb question . . .
      • From: Chris Page <email@hidden>
    • Re: Really dumb question . . .
      • From: Wayne Melrose <email@hidden>
References: 
 >Really dumb question . . . (From: "Mark J. Reed" <email@hidden>)
 >Re: Really dumb question . . . (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Way to get functionality of C's 'continue' or HC 'next repeat' without using if construct?
  • 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