• 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: do shell script Results?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script Results?


  • Subject: Re: do shell script Results?
  • From: John Delacour <email@hidden>
  • Date: Sun, 17 Aug 2003 18:42:58 +0100

At 9:43 am -0700 17/8/03, Marconi wrote:
I have been given an example of calling a shell script from AS and it begins like:
do shell script "perl -e ..."

when the perl line is copied and pasted into terminal, the output of the shell script shows up in Terminal. But when called from AS, where do the results go? I've tried:
set myresults to do shell script "perl -e.....

But myresult is empty.

Ideally, I'd like the results to go to a file I designate but I'd be pleased just to get the output into an AS variable.

This will do both

$_ = "hello;
open F, qq~>$filepath~;
print F;
print;
_______________________________________________
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: 
 >do shell script Results? (From: Marconi <email@hidden>)

  • Prev by Date: Re: Script Editor 2 beta 2: how come app launches?
  • Next by Date: Re: Script Editor 2 beta 2: how come app launches?
  • Previous by thread: Re: do shell script Results?
  • Next by thread: Re: Script Editor 2 beta 2: how come app launches?
  • Index(es):
    • Date
    • Thread