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

Duncan, Gary Gary.Duncan at Kronos.com
Sat Jun 1 17:54:38 PDT 2013


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/20130601/d92e85a5/attachment.htm>


More information about the framers mailing list