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

Re: Shell problems


  • Subject: Re: Shell problems
  • From: John Delacour <email@hidden>
  • Date: Sun, 8 Sep 2002 23:49:04 +0100

At 9:45 pm +0100 8/9/02, John Delacour wrote:

Don't know shtuff but this will work

do shell script "perl -e '
open F, qq(/users/jd/junk.txt) and q~do all sorts of things~ and
print qq(Bingo!) or die $!'"


Or, more usefully,


do shell script "perl -e '
$home = $ENV{HOME} ;
$fin = qq($home/junk.txt);
$fout = qq($home/junk2.txt);
open FIN, $fin or die $!;
open FOUT, qq(>$fout);
print FOUT <FIN> ;
`open $fout` ;' "
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Shell problems (From: Reinhold Penner <email@hidden>)
 >Re: Shell problems (From: John Delacour <email@hidden>)

  • Prev by Date: Fwd: Shell problems
  • Next by Date: Re: Script Editor problem in 10.2
  • Previous by thread: Re: Shell problems
  • Next by thread: Fwd: Shell problems
  • Index(es):
    • Date
    • Thread