In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joseph Alotta) wrote:
FWIW: #!/usr/bin/perl my $f = new Mac::Glue 'Finder'; $f->obj(file => [EMAIL PROTECTED])->open; This does require the latest Mac::Glue, 1.19, uploaded last night (which depends on Mac::Carbon 0.66, also uploaded last night). Chances are, this will work just fine, as Finder will open the file with the right app. But if it opens in the wrong app, you can do this: my $app = $f->obj(file => '/Applications/Preview.app'); $f->obj(file => [EMAIL PROTECTED])->open(using => $app); Normally, you could just fo new Mac::Glue 'Preview', but Preview is not scriptable, and Mac::Glue doesn't currently support scripting nonscriptable apps. It probably wouldn't take too much to do it, to make it able to talk to apps just using the standard dialect and additions, so I'll add that to my TODO list. As to your problems with AppleScript: it doesn't grok Unix paths natively. There's something you can do like "POSIX path to" ... I forget the syntax. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/