Script to split threaded story but keep hyperlink destinations?

I have a series of long CS6 documents in a book with stories running through many frames. These stories have many text anchors acting as hyperlink destinations within (and across) the files. 
Each story needs to be split into separate frames.*
The script SplitStory.jsx does exactly this, but in the process it breaks my hyperlinks to destinations anchored in the text of the story being split.
The problem seems to be that a hyperlink destination does not "carry" the correct information when duplicated, and the script duplicates each frame before removing it.
A manual solution
I have found a manual way of producing the desired result:
Unlink the last frame in the thread,
Cut (not copy) the overmatter from the penultimate frame,
Paste into what was the last frame (which is now a standalone frame).
Repeat recursively until the entire story is reduced to standalone frames.
This seems crying out for a scripting solution: it may even be relatively simple? But I cannot find anything suitable and my javascript is not good enough to write one from scratch.
Could anyone offer any suggestions?
* As an aside, I need to split the stories into separate frames so that all the text on a given page gets extracted to a text file together. Otherwise all the text in the main text thread gets extracted and then our software "mops up" display quotes, etc. This is not acceptable in my scenario.

It seems that Rorohiko's plug-in TextStitch will automatically de-thread linked frames whilst preserving the destinations.
I Rorohiko

Similar Messages

  • How do we split our iCloud accounts but keep one iTunes account so we can share purchased content for our multiple iPhones and iPads?

    How do we split our iCloud accounts but keep one iTunes account so we can share purchased content for our multiple iPhones and iPads?

    You can migrate a copy of the data to a new account, then delete the other person's data from each account.  To do this, on the phone that will be changing accounts, if you have any photos in photo stream that you want to keep on the phone, save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. If you have any synced notes that you want to keep on the phone, email these to yourself so you can create new notes in the new account.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.  You will create a new icloud email address with you turn Mail to On.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • Is there a way to change the actual song file but keep the 'info'?

    I have a compilation that took me a really long time to edit (by which I mean put the date for each individual song in because they were all released different years becaues it's a Bob Dylan compilation and I have smart playlists for each decade from the 50's upwards) and I want to change the actual file in itunes but keep the data, is there any way? It'd take ages to do again because it's a 3-cd album. I'm trying to change the file because the one I have is approx 200kbps bit rate and i want to have a different, 320kbps version that i've downloaded. I've tried opening the file in explorer and deleting it so that i can 'locate' the file again to the one i want to replace it with, but it changes the song title, album artist, and tags etc to the new file, whereas i thought it would just retain the information but change the actual file it played.
    i've had a really hard time explaining this i'm sorry if it's unclear. i was just wondering if there was any way to avoid the painstaking process of googling each song to find its release date and manually entering it when i already have a perfectly organised album.
    i can't find anything anywhere about this, presumably because i've no idea what the key words for the search would be, so i'm sorry if this is common knowledge.
    thanks in advance

    VBR vs. CBR isn't a concern as far as the strategy is concerned. As given it is slightly easier if the replacement files have exactly the same files names and folders as the files they are replacing (case doesn't matter) but if that isn't possible we can work around that too.
    Not my area but I think CBR gives larger files and less processing overhead for the same quality, which is a somewhat nebulous term. I'm not sure there is any real benefit.
    Yes a script is just another kind of a program.
    iTunes gives each track in the database a unique ID and knows the path that the file is supposed to live on. If you replace the original file with a different file of higher bitrate that has the same filename then iTunes will use that new file next time it wants to play the track. When it does so it will also read the tag and update itself if any of the information is different.
    The original function of the ExportImport script was to help someone else rescue play counts from an old library database. If works by scanning through selected tracks and writing out a text file that contains an ID for each track and the data that wants to be copied back later.
    Here is a sample output from the export:
    <#>iTunes Metadata - Exported 19/12/2012 20:03:58
    <ID>E5C69360-306A28AF
    <#>AC-DC\AC-DC Live\1 Thunderstruck
    <Plays>12
    <ID>7C1D487C-3414298C
    <#>AC-DC\AC-DC Live\2 Shoot To Thrill
    <Plays>12
    <ID>0DCF32CE-1079174E
    <#>AC-DC\AC-DC Live\3 Back In Black
    <Plays>15
    Each block consists of the iTunes track ID, a comment so we humans can see which track this is, followed by one or more properties. I can write you a custom version of this script but I need to know exactly which properties you need to save and then restore. For example Name, Year, Genre, etc. You need to compare a new and old version of one of your songs and work out which fields need resetting in the new song to make it match the old one.
    Having saved a file with the information that would otherwise change, you can then delete the older copies of the file, or better yet move them to a backup location, then copy in the new versions. If the filenames match iTunes will "see" the new files automatically, otherwise my FindTracks script can normally fix the broken links. Once iTunes is connected to all of the new files you drag and drop the saved text file onto the ExportImport script to run the import phase. This applies the saved data to each track in turn.
    tt2

  • Content type hide on New button but keep enabled on Upload

    I have several content types in my document libraries.  There is one content type that I want to hide on the New button, but keep enabled in the Upload drop-down for content type.
    How can I do this?
    thanks!

    Hi,
    According to your post, my understanding is that you wanted to hide content type on New button but keep enabled on Upload.
    There are two properties in SharePoint that affect the visibility of content types. These are:
    Visible on New Button (can be set through the UI – List’s Settings – screenshot)
    The Hidden property of the SPContentType object (can be set only through the object model)
    There are some blog blogs thread for your reference:
    Content type visibility in document libraries
    Change content type order in NEW button of a SharePoint library
    How to Hide Default Content Type from "New" menu
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Adjusting numbers within a sum column, but keep sum constant

    Hi, all-- I've looked and looked and can't quite find a way to do this.
    I have a budget of, say, $70,000 for payroll to split among three people. I have to keep the total budget at $70,000 but I can adjust the three pay rates. Is there a way to set up a table allows me to adjust a pay rate, but keep the total constant (i.e., automatically adjust the other two values)?
    I can't seem to phrase this properly in the search function here, so my apologies if this is already answred.
    Thanks very much,
    Chris

    To do it the same basic way as above, you can have sliders for two of them but the third has to be determined with a formula. 
    B2 and B3 are sliders with the limits 0 to 70000
    B4 = if(70000-B2-B3<0, "Pay the other guys less!!", 70000-B2-B3)
    You can use sliders on all three if they set the relative amount of pay each person gets.
    C2 through C4 are sliders with limits of 0 to whatever
    B2 =70000*C2/SUM(C$2:C$4)
    B3 =70000*C3/SUM(C$2:C$4)
    B4 =70000*C4/SUM(C$2:C$4)

  • How do you delete duplicates but keep the orginials?

    How do you deleter duplicates but keep the originals?

    Mark,
    Since you are having a problem that is not directly related to the original (and old) post (and I say that because  this thread seems to answer the OP's question, but not yours), it woud be better to ask in a new thread.  New threads have a better chance of getting answered, and you can give credit to good answers of your own questions.  I..e., if someone else answers your question in this thread, you cannot give them credit.
    When you pose your new question, it might be good to include a screen shot and a better description of how you have deduced that two projects are identical, along with what you have done to try to find them and where exactly you have looked.
    nathan

  • I want to sell my iMac: delete all but keep original MS office pack (or re-install?)

    I want to sell my iMac: delete all but keep original MS office pack (or re-install?)
    BR Pia

    We are having problems with the forum software (I can't see any new thread), so you are very lucky if somebody reads your question. Personally, the forum are near unusable for me now.
    Respecting to that question, you want to delete everything but leave Office. Is this correct? If so, you will have to contact with Microsoft to see if it's legal to sell your Mac with Office installed > http://www.microsoft.com/mac/support I would not sell the Mac with Office installed.
    To delete everything, you will have to erase the drive and reinstall OS X. Normally, you should turn off the Mac after reinstalling OS X, but in this case, the new owner won't have Office. On the contrary, if you install Office, the owner will have to use the Mac with your settings, so there will be other steps to follow

  • Script to uncheck "Shared Hyperlink Destination" in urls

    Is there a script or an automated way to make all hyperlinks not be "Shared Hyperlink Destination". I have 250+ hyperlinks that are shared, but are causing problems when i copy them to a new document.
    Is there a preference somewhere to set it up so it doesn't happen in the future?
    thanks in advance. mike.

    This Applescript deletes all of the hyperlinks:
    tell application "Adobe InDesign CC 2014"
        delete every hyperlink of active document
    end tell
    and this deletes the hyperlinks and the swatches and character styles named "Hyperlink":
    tell application "Adobe InDesign CC 2014"
        tell active document
            delete every hyperlink
            try
                delete (every swatch whose name is "Hyperlink")
                set n to every character style whose name is "[None]"
                delete (every character style whose name is "Hyperlink") replacing with item 1 of n
            end try
        end tell
    end tell

  • I want to install imovie 10.0 but keep getting message : your computers video card does not meet the minimum system requirements

    i want to install imovie 10.0 but keep getting message : your computers video card does not meet the minimum system requirements ? what should I do ?

    There are some suggested solutions in this thread:
    https://discussions.apple.com/message/23486450#23486450

  • Message Indicator Options - Can I turn off missed calls indicator, but keep indicator for

    Can I turn off missed calls indicator, but keep indicator for other messages?  i.e. voicemails etc. 

    Yes you can.
    Press the green dial key to enter the call log > Menu key > Options > Call Logging and set the logging to NONE and save.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I am trying to connect my new ipad to my BT Home Hub but keep getting the message unable to join the network, Any advice?

    I am trying to connect my new ipad to my BT Home Hub but keep getting a message saying that I am unable to join the Home Hub network.  Any advice?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Finalization thread does not keep up with Object allocation

    Hi,
    I'm trying to track down a memeory leak in my program. When I use OptimizeIT I find 11,690 instances of java.lang.ref.Finalizer hanging about. I also see lots of JDBC Connection, CallableStatements, and PreparedCalls hanging around. (They are actually instances of my vendor specific classes). Those objects include a finalize() method.
    Why are all these java.lang.ref.Finalizers hanging about? Why doesn't the finalization thread actually let go of them or finalize them in a timely manner! Eventually, my process runs out of memory and the Finalization thread never seems to finalize these objects. The rate at which I am newing up connections seems to be faster than the finalization thread can destory the object.
    charlie
    p.s.
    When I go into the reference graph, there are lots of Connection objects that don't have link back to the root set. But, they are never GC'ed when I push the GC button. While OptimizeIT doesn't show the finalization thread holding a reference to them, I believe OptimizeIT 4.2 hides the java.lang.ref.Finalizer reference that points to your object. The reference inside java.lang.ref.Finalizer is actually inside a super class called java.lang.ref.Reference. Why I don't know? But, someone with OptimizeIT 4.1 said that they see more information than I do in OptimizeIT 4.2. Also when I do a show Outbound References I don't see the instance members for the super class. (Namely java.lang.ref.Reference.referent) Is anyone familiar enough with OptimizeIT as to why this is occuring?

    >
    Well thanks for the advice, jschell, but I am cleaning
    up my connections by calling close(). But, keep the
    great advice coming. I didn't think this forum had
    quite enough worthless, cynical advice. For the
    benefit of developers who read this forum for some
    worth while advice. I'll post my findings.
    Hmmmm...others seems to think my advice is worthwhile.
    Some have even come to think that my advice is worthwhile after posting remarks like the one above.
    What's really interesting about this problem is that
    this has nothing to do with whether you call close()
    or not. In fact, you could've called close() and
    cleaned up properly, and your program could still leak
    memory! It hinges on objects that implement the
    finalize() method.
    Your program, or third party libraries, or even the JVM can leak memory.
    My JDBC vendor, like many, includes a finalize()
    method in the implemention classes of Connection,
    ResultSet, PreparedCall, etc. Naturally, this is to
    clean up a connection when a programer has lost a
    reference to a connection without calling close, but
    it has a serious side effect.
    Could be.
    And your JDBC vendor would be?
    I certainly know of JDBC vendors who do use finalize. Seems reasonable since the JDBC spec suggests it.
    And I have used JDBC drivers that use it in 24x7 server operations and I have not traced a leak to those drivers yet.
    So to my mind that suggests that finalize by itself is not a problem.
    I've tested this will a class that simply does a wait()
    call in its finalize() method. Then I allocate lots
    of other objects that contain a finalize() method,
    and watch the free memory fall. Just as a guess I would say that that is a really bad thing to do. My first guess would be that it would just lock up the JVM. Since it doesn't that would suggest that the JVM is creating one or more threads to call finalize.
    Threads take memory.
    And when you call wait you suspend those thread indefinitely.
    So I would expect to see memory fall.
    >
    Seems like to me that it's better to leak memory, than
    to try to clean up for the programmer. While
    researching this problem I ran across a long post on
    the .NET mailing list on finalization in .NET, and
    they seem to say the same thing that Sun says which is
    that the use of a finalize() method that the system
    will call implicitly is a bad thing. You should
    always use an explicit call like close().
    I would guess that memory collection in .Net is going to be less robust than in java. It simply hasn't been around long enough.
    While the fix for my problem is quite simple, remove
    the finalize() method from the wrapper class. But, I
    haven't run across any documenation on Sun's site or
    the internet that has run across a memory leak quite
    like this.
    I however, have read, and participated in quite a few threads on this site where many people have suggested that you should never use finalize.
    I think there are even a couple examples that show exactly how using finalize can generate memory leaks.

  • How can I clean all data in a database but keep all datafile still same nam

    hi,
    How can I get a easy way to clean all data in a database but keep all datafiles still same name and location just like a new created database?
    dbca has two choice: create templet without datafile or with all datafiles but not empty datafiles.
    thanks

    What version is your database? DBCA in 10gR2 allows you to create a template from an existing database using only the structure. From DBCA
    From an existing database (structure only)
    The template will contain structural information about the source database including database options, tablespaces, datafiles, and initialization parameters specified in the source database. User defined schemas and thier data will not be part of the created template.

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • How do I delete duplicate songs, but keep a link in their original albums to the single copy of the song left, so it will play in each album in sequence as if it were still there?

    Greetings!
    After importing my 300 or so CDs into iTunes, I found I have tons of duplicate songs.
    Example: I have a song that came in a original album, then in again in a "Greatest Hits" album, then again in a "Hits of the 80's" album, and again in a soundtrack album. I have now have 4 copies of the exact same song.
    How do I delete duplicate songs, but keep a link in their original albums back to the single copy of the song left, so it will play in each album in sequence as if it were still there?
    I don't think this currently exists, but as my library keeps growing the duplicates keep growing.  It would be nice if Apple sees this and adds a way to link songs to multiple albums.
    I don't want to create a custom playlist for every album that has a duplicate song or two (I'd have dozens of playlists) - thought about fixing it that way but not really practical.

    To my knowledge, there is no way of doing what you want. The only workaround is to create playlists for the other albums containing the track, but that isn't practical for most people.
    You could provide Apple with feedback here: http://www.apple.com/feedback/itunesapp.html

Maybe you are looking for

  • Missing "Modified File" in iPhoto '11

    When attempting to empty the Trash (at least that is what I thought I did) it actually started to delete files from my iPhoto library. At first I thought the actual "Original" however it turns out only "Modified" which is now redirected to Previews.

  • Alv o/p to diff xl sheets

    Hi All,              I have a report with subtotals at the vendor level, my requirement is when the user presses a button each vendor information with the subtotals should  go to a different XL file. The user can have his own layout; how can I know i

  • How To Find Out What Ratio Video Captured In

    Need to find out what ratio of resolution that my mini DV was logged and captured in i.e. 1:1, (best) 2:1, 3:1. Cannot locate the Assistent Editor who captured it. Is there a way of finding that out in the application?

  • HT1904 How to cancel an automatic subscription

    I have joined a dating website and it's auto pay is through itunes. How do I cancel this?

  • SAP oil&gas - where to start - Any advice on manuals/guides

    Hello Gurus I am new to Oil and gas and intend to pursue this segment for the future. I am an experienced computer professional (10+ years) I am fairly well versed with SAP-MM although experience is limited. I am keen to make a career in SAP Oil and