This seems to work
tell application "Finder" open {"Macintosh HD:Users:jerry:Pictures:ElephantHead.jpg", ¬ "Macintosh HD:Users:jerry:Pictures:PB.jpg"} end tell
--Jerry
On Mar 23, 2004, at 6:35 PM, Chris Devers wrote:
On Tue, 23 Mar 2004, Joseph Alotta wrote:
I have dozens of these one page pdf files. If I select them all in finder and double click, Preview opens them in one window as a multiple-page document. This is what I'd like to have happen.
Yeah, this bugs me too.
I *think* this is really a shell vs. Finder issue, and I don't know what
the fix is, but generally it seems like if you want to work on a
collection of files, the Finder can operate on that collection as a set --
hence opening PDFs together in Preview, or a directory or a directory tree
full of MP3s in iTunes, etc -- but if you do the same sort of thing from
the command line, it's as if you sent out a series of commands such as
"open -a foo bar1; open -a foo bar2; open -a foo bar3;" etc.
Annoying.
To date, I haven't found a way around this. The issue is broader than just
Preview & PDFs though -- something the Finder is doing allows collections
of files to be handled as a single set, and nothing I've tried from the
command line has been able to reproduce that functionality.
I'm also curious what workarounds people have for this.
-- Chris Devers