Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

osascript not getting Terminal contents



I've written a small script to get the contents of the current Terminal tab:

tell application "Terminal"
       return the contents of the selected tab of its front window
end tell

This works fine when testing with Script Editor, but when I run the
command using the osascript tool, I don't get the right output. Has
anybody else experienced this problem?

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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.