On running the macro I am getting the following error message (which previously ran without problem):
The macro itself:There was an error on line 2 in the macro "test import"
Could not access the file "/Users/victor/Dropbox/Nisus/Nisus Writer Settings/Style Library/LexisNexis Case Formatting.rtf" because permission was denied: ~/Dropbox/Nisus/Nisus Writer Settings/Style Library/LexisNexis Case Formatting.rtf.
Code: Select all
$editDoc = Document.active
$styleLibDoc = Document.open "/Users/victor/Dropbox/Nisus/Nisus Writer Settings/Style Library/LexisNexis Case Formatting.rtf"
$editDoc.addStyles $styleLibDoc.allStyles, "replace"
$styleLibDoc.close
Set Zoom 200
Select All
Format:Paragraph Style:LexisNexis
Format:Text Color:Black
Find and Replace ‘\n\n+’, ‘\n’, ‘Eas’
Save
Sleep 2
Close Window
Any help would be gratefully received.
Victor