• 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: Where to log lines go
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to log lines go


  • Subject: Re: Where to log lines go
  • From: Philip Aker <email@hidden>
  • Date: Mon, 12 Jan 2009 06:40:32 -0800

On 2009-01-12, at 05:33:10, Paul Taylor wrote:

I'm trying to use the log command, to write to standard out, so it can then be handled and used by my calling program with uses the osascript command to run the applescript, but it doesnt seem to be appearing. In fact the only time I see the log output is in the Event Log within the Script Editor, but that doesnt help me. (Ive seen some code which uses the 'write' command to write logging to a file, but the calling program is already writing nonapplescript stuff to the log file, so I wouldnt want to write directly to it from the applescript.

osascript -e 'do shell script "echo bob"'

Shows that you can call 'do shell script' from within an AppleScript invoked by osascript.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Where to log lines go
      • From: Paul Taylor <email@hidden>
References: 
 >Where to log lines go (From: Paul Taylor <email@hidden>)

  • Prev by Date: Re: How to convert number from exponential form?
  • Next by Date: Re: Where to log lines go
  • Previous by thread: Where to log lines go
  • Next by thread: Re: Where to log lines go
  • Index(es):
    • Date
    • Thread