• 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: Sending commands to the terminal with applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending commands to the terminal with applescript


  • Subject: Re: Sending commands to the terminal with applescript
  • From: garbanzito <email@hidden>
  • Date: Fri, 20 Apr 2001 15:03:54 -0600

at 4/19/01, 4:16 PM -0700, they whom i call Yah Right wrote:
I am trying to run a script that returns some information from the terminal. The dialog only displays part of the information. [...]

set dialogtext to AEShell ("/usr/bin/hostinfo")
display dialog dialogtext


display dialog has a limit of 255 characters (on Mac OS X
at least). there are lots of workarounds, not least of
which is to send stdout to a file:

AEShell ("/usr/bin/hostinfo >/Users/myname/foo.txt")

steve harley email@hidden


References: 
 >Sending commands to the terminal with applescript (From: "Yah Right" <email@hidden>)

  • Prev by Date: Re: Re: Simultaneous Events (in AS CGI's)
  • Next by Date: RE: Here's a strange one
  • Previous by thread: Sending commands to the terminal with applescript
  • Next by thread: Here's a strange one
  • Index(es):
    • Date
    • Thread