Opening file with application

2002-09-08 Thread John Delacour
This script opens a text file in Excel (in my case a Classic app). Is there any way to do the same thing without a hard-code pathname for Excel and without Apple Events? #!/usr/bin/perl $dir = $ENV{HOME} ; $xl = `osascript -e ' tell app Finder to «class appf» id XCEL POSIX path of result'` ;

Re: Opening file with application

2002-09-08 Thread Ward W. Vuillemot
Not that I have an answer...but I have a similar problem. I can launch MS Excel and have it open a OTF generated file from Win32. But Mac OS X does not do itmaybe I should read the docs, but...if I backtick an `open /dir/to/msexcel` Excel opens, but the redirect, or `open

Re: Opening file with application

2002-09-08 Thread John Labovitz
On 9/8/02 2:20 PM, Ward W. Vuillemot [EMAIL PROTECTED] wrote: maybe I should read the docs, but...if I backtick an `open /dir/to/msexcel` Excel opens, but the redirect, or `open /dir/to/msexcel $file`` does not work. Do you really need to use redirection? If you're trying to just launch

Re: Opening file with application

2002-09-08 Thread Charles Albrecht
The docs - for open(1) in particular - might suggest something along the lines of: `open -a Microsoft Excel $foo` (or whatever the Excel executable happens to be called on the target system) But some versions of Excel (mine is ancient - YMMV with something newer than v.4) might refuse to open

Re: Opening file with application

2002-09-08 Thread Puneet Kishor
On Sunday, September 8, 2002, at 05:58 PM, John Delacour wrote: At 4:33 pm -0600 8/9/02, Charles Albrecht wrote: `open -a Microsoft Excel $foo` (or whatever the Excel executable happens to be called on the target system) But some versions of Excel (mine is ancient - YMMV with

Storable.pm?

2002-09-08 Thread Brian McNett
Okay, I'm only asking this question here because I've thouroughly exhausted all the available resources and can't find an answer. There's probably a FAQ somewhere and I've missed it. I had thought that Storable was part of the standard Perl 5.6 distro, and can't seem to locate it under MacOS

Re: Opening file with application

2002-09-08 Thread Joel Rees
John Labovitz [EMAIL PROTECTED] contributed On 9/8/02 3:58 PM, John Delacour [EMAIL PROTECTED] wrote: So at last Application names are cached somewhere with their paths. And about time too. Where? Maybe here: /Library/Caches/com.apple.LaunchServices.LocalCache.csstore

Re: Storable.pm?

2002-09-08 Thread Chris Devers
On Sun, 8 Sep 2002, Brian McNett wrote: Where do I locate a replacement Storable which works? Pick one: % sudo perl -MCPAN -e 'install Storable' % sudo fink install storable-pm The former is maybe the standard way to do it for most Perl ports, but if you've got Fink on your Mac then

Re: Storable.pm?

2002-09-08 Thread Brian McNett
On Sunday, September 8, 2002, at 09:08 PM, Chris Devers wrote: Pick one: % sudo perl -MCPAN -e 'install Storable' % sudo fink install storable-pm The former is maybe the standard way to do it for most Perl ports, but if you've got Fink on your Mac then the latter is nice too.

Re: Opening file with application

2002-09-08 Thread Joel Rees
John Labovitz [EMAIL PROTECTED] responded: On 9/8/02 8:01 PM, Joel Rees [EMAIL PROTECTED] wrote: Obvious thought, but have you tried plist? It doesn't seem to be that -- I tried both pl and plutil, and neither wanted to read it. But I have no experience with plists, so maybe I'm not