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

Duncan, Gary Gary.Duncan at Kronos.com
Tue Jun 4 05:39:20 PDT 2013


Thank you to everyone who responded. Mike's astute observation about renaming the files within the book file may do it for us. As always, knowing Rick is there ready to help ease and streamline the solution is a comforting feeling. Thank you to everyone.

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/> | Facebook<http://www.kronos.com/facebook> | Twitter<http://www.kronos.com/twitter> | LinkedIn<http://www.kronos.com/linkedin> | YouTube<http://www.kronos.com/youtube>



From: Rick Quatro [mailto:rick at rickquatro.com]
Sent: Sunday, June 02, 2013 7:26 AM
To: Duncan, Gary; framers at lists.frameusers.com
Subject: RE: Automate resolution of broken x-refs after renaming target files?

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<mailto:rick at frameexpert.com>

From: framers-bounces at lists.frameusers.com<mailto: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<mailto: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/> | Facebook<http://www.kronos.com/facebook> | Twitter<http://www.kronos.com/twitter> | LinkedIn<http://www.kronos.com/linkedin> | YouTube<http://www.kronos.com/youtube>





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


More information about the framers mailing list