• 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
Fwd: Really dumb question . . .
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Really dumb question . . .


  • Subject: Fwd: Really dumb question . . .
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 25 Jul 2005 22:51:11 -0400

Forgot that replies don't automagically go to the list here; sent this only to Michelle by mistake.

Note that the command-line arguments functionality I mention below is new in Tiger.

---------- Forwarded message ----------
From: Mark J. Reed < email@hidden>
Date: Jul 25, 2005 10:39 PM
Subject: Re: Really dumb question . . .
To: Michelle Steiner <email@hidden>

I want to send some text to the terminal in which I'm running osascript.  AppleScript doesn't normally have a standard output, but osascript does.  I mean, AppleScript doesn't normally have the concept of "command-line arguments", either, but it does when invoked via osascript (they get passed to the run handler as a single argument which is a list of strings).

Outputting to standard out (or standard error) would seem to be a perfect thing to do with log(), but as far as I can tell, log() is a no-op under osascript.



On 7/25/05, Michelle Steiner <email@hidden > wrote:

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

> but how, when a script is running under osascript, can I write to
> standard output?

What do you mean by standard output?  So far as I know, that term
doesn't exist in Applescript.

-- Michelle

--
"Condoms encourage promiscuity
- in the same way that seat belts encourage automobile accidents."
O.C. Brown




--
Mark J. Reed <email@hidden >


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Really dumb question . . . (From: "Mark J. Reed" <email@hidden>)
 >Re: Really dumb question . . . (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Driving Cocoa app via AE from command line tool.
  • Next by Date: Passing data to a run handler
  • Previous by thread: Re: Really dumb question . . .
  • Next by thread: Re: Really dumb question . . .
  • Index(es):
    • Date
    • Thread