Automate resolution of broken x-refs after renaming target files?

Rick Quatro rick at rickquatro.com
Sun Jun 2 04:25:52 PDT 2013


Hi Gary,

This could easily be done with FrameScript. It is not the markers you have
to change; it is the XRefFile property of each external cross-reference. As
for the markers in the TOC, etc., you will just have to update the TOC after
you rename the files. Please contact me off-list Monday and I will give you
any details you need. Thanks.

Rick

 

Rick Quatro

Carmen Publishing Inc.

585-283-5045

rick at frameexpert.com

 

From: framers-bounces at lists.frameusers.com
[mailto:framers-bounces at lists.frameusers.com] On Behalf Of Duncan, Gary
Sent: Saturday, June 01, 2013 8:55 PM
To: framers at lists.frameusers.com
Subject: Automate resolution of broken x-refs after renaming target files?

 

Hi, everyone,

If I rename Frame files in a book, is it possible to automate changing the
file names in cross-reference hypertext markers to repair the
cross-references that will break? Specifically, we'd like to rename Frame
files so that there are no spaces in the names (same characters in the file
names but no spaces). I'd like to be able to search all cross-reference
marker text to find file names with spaces and remove the spaces.

For example, a file in a book has a cross-reference to "System Overview.fm".
I change the name of that file to "SystemOverview.fm". I'd like a script to
be able to the Frame file name in the x-ref marker and remove the space, and
go on to find all other Frame file names with spaces in x-ref markers and do
the same.

I'm no script expert - not even a novice - but in searching for a pattern
that a script might latch on to to do this, the  names of Frame files in the
same directory as the file x-reffing to them are uniformly preceded by
"openObjectID". Could the script look for openObjectID (+ the space after
it) and then remove the spaces contained in the characters that follow up to
".fm"? For files that are x-reffed that are in different directories from
the x-reffing file, could the script look for  "/<file name>.fm" and again
remove spaces within the name string?

Or am I asking the impossible of Framescript?

Thank you for reading.

 

Gary Duncan | Principal Technical Writer | Kronos Incorporated
tel: +1 978 947 4164
Kronos | Time & Attendance . Scheduling . Absence Management . HR & Payroll
. Hiring . Labor Analytics

Join Kronos on: kronos.com <http://www.kronos.com/>  |
<http://www.kronos.com/facebook> Facebook |  <http://www.kronos.com/twitter>
Twitter |  <http://www.kronos.com/linkedin> LinkedIn |
<http://www.kronos.com/youtube> YouTube

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frameusers.com/pipermail/framers-frameusers.com/attachments/20130602/1dc4c0f9/attachment.htm>


More information about the framers mailing list