• 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
How can I save the Terminal output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I save the Terminal output?


  • Subject: How can I save the Terminal output?
  • From: markus kern <email@hidden>
  • Date: Sun, 24 May 2009 21:01:43 -0700

Hello,

I'd like to save the buffer of my mac Terminal sessions periodically into a file; I typically have more than one window open, so ideally it would save them into teminal_session_1.txt, terminal_session_2.txt, etc. I tried something like:

tell application "Terminal"
  tell window 1
    save in "/tmp/terminal_session_1"
  end tell
end tell

And hoped that once I get that to work, I'll make a loop around it and run it from a cron, but it doesn't seem to actually save the output (it does not complain either). Any ideas?

Thanks,
Markus

 _______________________________________________
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: How can I save the Terminal output?
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: Opening AppleScript *.app files for editing
  • Next by Date: Re: Opening AppleScript *.app files for editing
  • Previous by thread: Re: Opening AppleScript *.app files for editing
  • Next by thread: Re: How can I save the Terminal output?
  • Index(es):
    • Date
    • Thread