[libreoffice-users] Re: open files automatically (a Star Basic macro)

2015-05-31 Thread Andreas Säger
Am 01.06.2015 um 00:38 schrieb James E Lang: > (I intend this reply to be off list) > > Thank you. > > It has probably been more than 20 years since I studied any flavor of Basic > and I have not been able to find what dir("path/file.ext") or dir() are > supposed to do. That is why I said that

[libreoffice-users] Re: open files automatically (a Star Basic macro)

2015-05-31 Thread Andreas Säger
Am 31.05.2015 um 22:53 schrieb Andreas Säger: > > File name extensions are meaningless. LibreOffice tries to open any file > regardless of its extension. Rename a file to .xyz and open with > LibreOffice. > My code should have an error handler for unsupported (possibly broken) > files so the loop

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Pedro
Hi Andreas, all Andreas Säger wrote > Am 31.05.2015 um 19:18 schrieb Pedro: > >> Is there a way to make it autorun on start? > > Tools>Customize... [Events] > Save in: > > Event: > > Macro: MyMacros.Library.Module.onApplicationStart Brilliant! That worked perfectly. Thank you, Andreas! Th

Re: [libreoffice-users] Re: open files automatically (a Star Basic macro)

2015-05-31 Thread James E Lang
exit from LO before I start it again in order to activate the Subroutine? -- Jim -Original Message- From: "Andreas Säger" To: users@global.libreoffice.org Sent: Sun, 31 May 2015 13:54 Subject: [libreoffice-users] Re: open files automatically (a Star Basic macro) Am 31.05.2015 um

[libreoffice-users] Re: open files automatically (a Star Basic macro)

2015-05-31 Thread Andreas Säger
Am 31.05.2015 um 22:43 schrieb James E Lang: > Hi Andreas, > > Your Star Basic macro looks very interesting. It is not super complex > (initialization, a loop, and a super simple supporting function). Has anyone > given it a test drive? > > As I read the macro, the while loop looks suspect. Isn

Re: [libreoffice-users] Re: open files automatically (a Star Basic macro)

2015-05-31 Thread James E Lang
validates the file's extension. Just a thought. -- Jim -Original Message- From: "Andreas Säger" To: users@global.libreoffice.org Sent: Thu, 28 May 2015 15:35 Subject: [libreoffice-users] Re: open files automatically >8 Sub onApplica

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Andreas Säger
Am 31.05.2015 um 19:18 schrieb Pedro: > Is there a way to make it autorun on start? > > > Tools>Customize... [Events] Save in: Event: Macro: MyMacros.Library.Module.onApplicationStart -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.o

Re: [libreoffice-users] Re: open files automatically

2015-05-31 Thread Luuk
On 31-5-2015 20:59, Pedro wrote: Hi Luuk Luuk wrote There's no need to automate Calc (or LO) simply create a file name it something like 'autostartLibreoffice.bat' (or anything else, as long as the name ends in '.bat' That has been suggested before. The OPs request is that LibreOffice opens

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Pedro
Hi Luuk Luuk wrote > There's no need to automate Calc (or LO) > > simply create a file > name it something like 'autostartLibreoffice.bat' > (or anything else, as long as the name ends in '.bat' That has been suggested before. The OPs request is that LibreOffice opens all files stored in a give

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Pedro
Hi Andreas, all Andreas Säger wrote > Feel free to do what you want with it. I won't elaborate any further > since this is a feature I would not use by myself. I don't intend to use it either. I'm just trying to find a user friendly solution to the OPs problem. And you seem to be the right perso

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Andreas Säger
Am 31.05.2015 um 09:32 schrieb Pedro: > I can't test if this script does what the OP asked for. Where should the > AutoStart folder be placed when using a Windows OS or in a Linux OS? > > Would it be possible to take this effort further and evolve this script into > an extension with a point-and-c

[libreoffice-users] Re: open files automatically

2015-05-31 Thread Pedro
Hi Andreas, all Andreas Säger wrote >>> On 28/05/2015 16:38, James Knott wrote: > >>> Write a utility that creates a "Work Area" folder, regardless of the >>> platform one uses. >>> An interesting challenge for somebody who is good at PERL or Python >>> coding. > > Sub onApplicationStart() > oS

[libreoffice-users] Re: open files automatically

2015-05-28 Thread Andreas Säger
Am 28.05.2015 um 21:56 schrieb Andreas Säger: > Am 28.05.2015 um 20:27 schrieb toki: >> >> >> On 28/05/2015 16:38, James Knott wrote: >> >>> That was possible in OS/2, but I haven't seen it anywhere else. With >>> OS/2, you could create a "Work Area" folder and whenever that folder was >>> opened,

[libreoffice-users] Re: open files automatically

2015-05-28 Thread Andreas Säger
Am 28.05.2015 um 20:27 schrieb toki: > > > On 28/05/2015 16:38, James Knott wrote: > >> That was possible in OS/2, but I haven't seen it anywhere else. With >> OS/2, you could create a "Work Area" folder and whenever that folder was >> opened, whatever was in it would also open. > > Write a ut

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread Steve Edmonds
On 2015-05-29 05:23, James Knott wrote: On 05/28/2015 01:12 PM, Andreas Säger wrote: Am 28.05.2015 um 18:57 schrieb James Knott: On 05/28/2015 12:38 PM, James Knott wrote: On 05/28/2015 12:21 PM, Andreas Säger wrote: I don't understand why any application should do this. Put your files into

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread James Knott
On 05/28/2015 01:12 PM, Andreas Säger wrote: > Am 28.05.2015 um 18:57 schrieb James Knott: >> On 05/28/2015 12:38 PM, James Knott wrote: >>> On 05/28/2015 12:21 PM, Andreas Säger wrote: I don't understand why any application should do this. Put your files into your assumed auto-start fold

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread James Knott
On 05/28/2015 01:08 PM, Cley Faye wrote: > To launch LibreOffice, you either use a shortcut of some sort, or directly > run a command in a run dialog. That's true for any OS. No, as I mentioned, it's not true with OS/2 and work area folders. If you had a document in that folder opened, then close

[libreoffice-users] Re: open files automatically

2015-05-28 Thread Andreas Säger
Am 28.05.2015 um 18:57 schrieb James Knott: > On 05/28/2015 12:38 PM, James Knott wrote: >> On 05/28/2015 12:21 PM, Andreas Säger wrote: >>> I don't understand why any application should do this. >>> Put your files into your assumed auto-start folder. I would use links >>> instead of the real files

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread Cley Faye
Something I'm not getting there... To launch LibreOffice, you either use a shortcut of some sort, or directly run a command in a run dialog. That's true for any OS. There where solution proposed for either cases, on different OS. You can either create a new shortcut to open documents to your liki

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread James Knott
On 05/28/2015 12:38 PM, James Knott wrote: > On 05/28/2015 12:21 PM, Andreas Säger wrote: >> I don't understand why any application should do this. >> Put your files into your assumed auto-start folder. I would use links >> instead of the real files. >> Open that folder, hit Ctrl+A and Enter to ope

Re: [libreoffice-users] Re: open files automatically

2015-05-28 Thread James Knott
On 05/28/2015 12:21 PM, Andreas Säger wrote: > I don't understand why any application should do this. > Put your files into your assumed auto-start folder. I would use links > instead of the real files. > Open that folder, hit Ctrl+A and Enter to open all the files with the > default application.

[libreoffice-users] Re: open files automatically

2015-05-28 Thread Andreas Säger
Am 28.05.2015 um 11:29 schrieb Thomas Blasejewicz: > > In case there is a stand-alone spreadsheet program (NOT Excel!) that can > do this trick .. > I would love to learn its name. > > I don't understand why any application should do this. Put your files into your assumed auto-start folder. I w

[libreoffice-users] Re: open files automatically

2015-05-28 Thread Pedro
Hi Thomas Thomas Blasejewicz-3 wrote > In case there is a stand-alone spreadsheet program (NOT Excel!) that can > do this trick .. > I would love to learn its name. Interesting feature. That wasn't available in the Lotus DOS days probably because you could only open one file at a time :) The s