At 11:02 AM -0700 5/12/2002, Randal L. Schwartz wrote:
>>>>>> "Charles" == Charles Albrecht <[EMAIL PROTECTED]> writes:
>
>Charles> #!/usr/bin/perl -w 
>
>Charles> system q(/usr/bin/open -a "`/usr/bin/osascript -e 'tell application "Finder" 
>to get name of application file id "CWIE" ' `" );
>
>Gah.  That's about four levels too deep.  Maybe that was a joke.  If not,
>this is simpler:
>
>my $path = `osascript -e 'tell application "Finder" to get name of application file 
>id "CWIE"'`;

True. And then once you have the $path, you can call open -a later to 
launch it. Or just do:

system q(/usr/bin/osascript -e 'tell application "Finder" to open application file id 
"CWIE"');

And skip the later open call. It still doesn't trap for osa errors, but 
it's a place to start.

-Charles
 [EMAIL PROTECTED]

Reply via email to