Workaround for Items filed in Results which contain a Comma ?

Discussion in 'Synapse' started by Jason, Jan 7, 2011.

  1. Jason

    Jason Developer / Handyman Staff Member

    I still don't have access to thousands of files which contain a comma.
    PaperPort 9 and 10 name files by default like this:
    August 22, 2007-Document-008.pdf
    When Synapse files a document it prefixes the item with the patient's synapse ID for instance:
    784-August 22, 2007-Document-008.pdf

    I could remove all the commas and replace them with underscores (http://www.bulkrenameutility.co.uk)

    Is there a way to rename the thousands of files which contain commas in the synapse tables ?
    Some SQL statement ?
    A simple replacement of all , with _ ?
  2. Graham

    Graham Developer Staff Member

    I don't know how you'd do that in SQL if at all, but it could be scripted in Rebol.

    I guess I need to look again to see why this issue is occurring.
  3. Jason

    Jason Developer / Handyman Staff Member

    synapse.filenames.with.commas.not.opening.jpg

    All I need to do is change this filename.
    Replace the commas in the filenames with an underscore.
    Isn't the filename in an SQL table ?
  4. Graham

    Graham Developer Staff Member

    SQL is a SET manipulation language.
  5. Jason

    Jason Developer / Handyman Staff Member

    How can I fix this then ?

    My staff and I don't have access to thousands of Results.
  6. Graham

    Graham Developer Staff Member

    Well, I don't think that's quite true

    1. You have the originals in PP
    2. You can setup a slave PC to view them
    3. The file is still downloaded .. but Acrobat doesn't like to view them with commas in the file name so you can view them by finding in the www directory

    Your options are
    1. Script a rename in the files database
    2. Wait for us to find a fix but my priority is currently the web portal
    3. If it's urgent, you can sponsor a fix
  7. Jason

    Jason Developer / Handyman Staff Member

    Where are result's filename stored ?
    [​IMG]

    Attached Files:

  8. Jason

    Jason Developer / Handyman Staff Member

    Commas in Windows file naming isn't that crazy.
    default.settings.paperport.folders.surname.firstname.separator.is.a.comma.jpg

Share This Page