Methinks we shouldn't be going down this path, really. Apple has a defined
way to get to this stuff:
http://developer.apple.com/technotes/tn/tn2017.html
...which is probably exactly what the 'open' command uses to figure out
which application to launch.
Oh, darn. No excuse to write
On 9/8/02 9:51 PM, Joel Rees [EMAIL PROTECTED] wrote:
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.
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'` ;
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
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
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
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
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
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