On Sunday, October 01, 2006 9:45 AM [GMT+1=CET], Terry <[EMAIL PROTECTED]> wrote:
> Hi, Malcolm. File >Properties : General, which you've already > discovered, is it. It gives you all the information, just separated > into path and file name. > > There is a macro routine that will give you the full path and filename > combined. You could put this in your "Standard" library in "My Macros > and Dialogs" and assign it to a toolbar icon, keyboard shortcut or > menu shortcut: > > Sub DocLocation > > Msgbox ThisComponent.getLocation 'gets full path and file name > 'Msgbox ThisComponent.getUrl 'this gets the url which is the same as > location on a Linux OS > > End Sub > 1. The File>Properties>General menu performs poorly for looooong paths; it is *not* left/right scrollable like the equivalent option in MS Word. Instead, it shows the beginning of the pathname, a few dots indicating something is missing, and then the end of the pathname. 2. The "second line" of the supplied macro has been broken, presumably by somebody's (mine? *only* mine?) e-mail system truncating text to some fixed width. The words "location on a Linux OS" must *not* be on a new line. Instead they should continue directly on from "which is the same as ". To be clear: excluding blank lines the macro should be four lines long: Sub ... Msgbox ... 'Msgbox ... End Sub 3. The supplied macro displays spaces as "%20". I think this will confuse "ordinary" users of word processing software who are not necessarily experts in URL encoding technology. Perhaps someone could supply a macro that converts the URL encoded path to human-readable text ??? 4. The supplied macro shows Windows style backslashes as UNIX style forward ones. Could that be changed? Currently a Windows user would not be able to copy/paste the displayed path into a native application. Harold Fuchs London, England --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
