• 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: Perl or Applescript w/ Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl or Applescript w/ Excel


  • Subject: Re: Perl or Applescript w/ Excel
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 14 Aug 2002 12:59:35 -0700

On Wednesday, August 14, 2002, at 11:44 AM, Pia Zador wrote:

I am about to write a script that takes a bunch of tab-deliminated text
files, extracts certain numeric data, performs simple arithmetic on the
extracted data, and outputs the new data to a workbook in Excel.

Does anyone have suggestions on whether to use Perl scripts or simply
Applescript? Is one easier to use when dealing with tab deliminated data
and/or Excel workbooks?

If you've got a tab-delimited [1] data file, and you want to turn it into another tab-delimited file, and you're using Mac OS X, *and* you're comfortable with using shell tools, you may very well be best served by awk. It's not as general-purpose as perl, but it's designed for processing columnar data, which is what you've got.

If any of the above do not apply, however (say you want to apply Excel formatting to the output, or raw Unix just gives you the willies), then you should use AppleScript. It's theoretically possible to control Excel using perl, but it'll be really ugly.


--Chris Nebel
AppleScript Engineering

[1] There is no such word as "deliminated." The word you're looking for is "delimited."
_______________________________________________
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.
  • Follow-Ups:
    • Re: Perl or Applescript w/ Excel
      • From: Emmanuel <email@hidden>
    • Re: Perl or AppleScript w/ Excel
      • From: Jon Pugh <email@hidden>
    • Re: Perl or Applescript w/ Excel
      • From: Rick Norman <email@hidden>
    • Re: Perl or Applescript w/ Excel
      • From: Bill Cheeseman <email@hidden>
References: 
 >Perl or Applescript w/ Excel (From: Pia Zador <email@hidden>)

  • Prev by Date: Re: do shell script with administrator privileges & shell commands
  • Next by Date: Re: Perl or Applescript w/ Excel
  • Previous by thread: Perl or Applescript w/ Excel
  • Next by thread: Re: Perl or Applescript w/ Excel
  • Index(es):
    • Date
    • Thread