• 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: scripting Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting Terminal


  • Subject: Re: scripting Terminal
  • From: Sander Tekelenburg <email@hidden>
  • Date: Thu, 29 Mar 2001 09:37:24 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 19:15 -0700 UTC, on 28/03/2001, garbanzito wrote:

> at 3/28/01, 1:37 PM -0900, they whom i call hciR nellA wrote:
>>does anyone know if/when Terminal (OS X) will be scriptable?
>
> depends how you wish to script it. Terminal's not
> scriptable yet (will it be? i hope so), but an AppleScript
> can send command text to shell session by writing it to a
> file with an extension of ".command", and then opening that
> file, which will pass the file as a shell script to
> Terminal.

I just _had_ to try that right of course :) But, on Mac OS X PB, not only
can't I get Terminal to open such a file 'manually' even, I can't even get
close to creating it:

tell app "Desktop"
set theFile to make file
end
set theFileRef to open for access theFile with write permission
--> Error -1700. "Can't make document file [*] into an item"

(Where it says [*] it lists the path to the file.)

It creates the file just fine. And it knows how to refer to it, as "delete
theFile" works fine too. I just can't open it for access to write to it.

Is this a known bug in Mac OS X PB? (If so, I assume this is fixed in Mac OS
X 10.0?) I don't see anything in the Standard Additions that suggests this
has changed from Mac OS 9.0.4.


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOsLl9esywKfXgqKdEQIcSACfZkPSPrQPC7rF5h9zvnHSjoffReMAn2Cv
t9PIyrjKYGX2qp51a2rb8D0l
=tZsT
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <mailto:email@hidden>
Web site at <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"


  • Follow-Ups:
    • Re: scripting Terminal
      • From: John Head <email@hidden>
References: 
 >scripting Terminal (From: hciR nellA <email@hidden>)
 >Re: scripting Terminal (From: garbanzito <email@hidden>)

  • Prev by Date: Re: scripting system (OSA) error -1757
  • Next by Date: Re: Pb with a selected application
  • Previous by thread: Re: scripting Terminal
  • Next by thread: Re: scripting Terminal
  • Index(es):
    • Date
    • Thread