Re: Preview.app opening multiple files

2004-04-01 Thread Ken Williams
On Mar 31, 2004, at 6:53 PM, Bohdan Peter Rekshynskyj wrote: I still would try to do something such as (rough script here) open COMMAND ls *.files |; # Don't forget to code a die here if unsuccessful in opening. Defensive programming! while COMMAND { $theParms .= $_; # you may or may

Re: Preview.app opening multiple files

2004-03-31 Thread Bohdan Peter Rekshynskyj
On Mar 29, 2004, at 16:17, Chris Devers wrote: On Mon, 29 Mar 2004, Joseph Alotta wrote: On Mon, 29 Mar 2004, ??? wrote: Yes - I think you're kind of right, so, if you have the command line as such: system open *.pdf; This would expand to match everything such as: system open a.pdf b.pdf c.pdf

Re: Preview.app opening multiple files

2004-03-31 Thread Joseph Alotta
Chris, It works like a champ. Thank you so much. I think Mac::Glue is really cool. Joe Alotta On Mar 24, 2004, at 11:24 AM, Chris Nandor wrote: #!/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

Re: Preview.app opening multiple files

2004-03-30 Thread Joseph Alotta
On Mar 29, 2004, at 11:31 PM, Paul McCann wrote: Hi Joseph, you wrote... It's easy to replicate from the Finder. You highlight the files and double click holding shift down. Also, you can highlight, then control click getting the menu and then select open. Thanks for the explanation, but

Re: Preview.app opening multiple files

2004-03-29 Thread Joseph Alotta
John, I tried modifying this to work on my system. The folder is ~/Desktop/charts and the files are .pdf's. You got to love that explanatory error message. Joe Alotta [Abba:~/oldperlcode] josephal% du ~/Desktop/charts/ 4928/Users/josephalotta/Desktop/charts/ [Abba:~/oldperlcode]

Re: Preview.app opening multiple files

2004-03-29 Thread Joseph Alotta
Yes - I think you're kind of right, so, if you have the command line as such: system open *.pdf; This would expand to match everything such as: system open a.pdf b.pdf c.pdf d.pdf; Each of the items are treated in an Unix shell as separate arguments. Now, for (heh heh) arguments sake, if we

Re: Preview.app opening multiple files

2004-03-29 Thread Chris Devers
On Mon, 29 Mar 2004, Joseph Alotta wrote: On Mon, 29 Mar 2004, ??? wrote: Yes - I think you're kind of right, so, if you have the command line as such: system open *.pdf; This would expand to match everything such as: system open a.pdf b.pdf c.pdf d.pdf; Each of the items are

Re: Preview.app opening multiple files

2004-03-29 Thread Chris Devers
On Mon, 29 Mar 2004, Joseph Alotta wrote: [Abba:~/oldperlcode] josephal% du ~/Desktop/charts/ 4928/Users/josephalotta/Desktop/charts/ [Abba:~/oldperlcode] josephal% cat applescript #!/usr/bin/perl my $script = EOS; set charts to path to charts folder tell application Finder

Re: Preview.app opening multiple files

2004-03-29 Thread Chris Devers
On Mon, 29 Mar 2004, Chris Devers wrote: Unfortunately, I get the same error you do when I try to run it: $ ./osatest.sh ## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) syntax error: A unknown token can't go after this some

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
On Mon, 29 Mar 2004, Chris Devers wrote: Unfortunately, I get the same error you do when I try to run it: $ ./osatest.sh ## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) This is some sort of issue with Toast; googling for the

Re: Preview.app opening multiple files

2004-03-29 Thread Joseph Alotta
On Mar 29, 2004, at 7:10 PM, Paul McCann wrote: On Mon, 29 Mar 2004, Chris Devers wrote: Unfortunately, I get the same error you do when I try to run it: $ ./osatest.sh ## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) This is some sort of

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
Hi Joseph, you wrote... It's easy to replicate from the Finder. You highlight the files and double click holding shift down. Also, you can highlight, then control click getting the menu and then select open. Thanks for the explanation, but my machine seems to be on a rather

Re: Preview.app opening multiple files

2004-03-29 Thread Paul McCann
Ned Day asked, how on earth do i unsubscribe from this? Try reading the mail headers of any message to the list: List-Unsubscribe: mailto:[EMAIL PROTECTED] Cheers, Paul

Re: Preview.app opening multiple files

2004-03-24 Thread Chris Nandor
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

Re: Preview.app opening multiple files

2004-03-24 Thread John Delacour
At 10:02 am -0600 24/3/04, Joseph Alotta wrote: I'm still playing around with the applescript code to try to make it work according to the suggestions here. Seems it needs alias to tell it to open files, but can't find them if you completely path them. My fault. I told you I was tired. You

Re: Preview.app opening multiple files

2004-03-24 Thread John Delacour
At 9:24 am -0800 24/3/04, Chris Nandor wrote: 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. /users as POSIX file as alias -- = alias dxp:Users:

Re: Preview.app opening multiple files

2004-03-24 Thread Bohdan Peter Rekshynskyj
On Mar 23, 2004, at 19:57, Jim Correia wrote: On Mar 23, 2004, at 6:35 PM, Chris Devers wrote: 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

Preview.app opening multiple files

2004-03-23 Thread Joseph Alotta
Greetings, 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. If I do them in perl: system open *.pdf; Preview opens them as multiple windows. How

Re: Preview.app opening multiple files

2004-03-23 Thread Chris Devers
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

Re: Preview.app opening multiple files

2004-03-23 Thread Jerry LeVan
You could use an applescript... 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

Re: Preview.app opening multiple files

2004-03-23 Thread John Delacour
At 2:01 pm -0600 23/3/04, Joseph Alotta wrote: Preview opens them as multiple windows. How can I tell Preview to open them as it does in finder? You might try something like this and run the resulting script as an osascript or one of the Mac modules: It needn't be as verbose but it's late and

Re: Preview.app opening multiple files

2004-03-23 Thread Jim Correia
On Mar 23, 2004, at 6:35 PM, Chris Devers wrote: 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