Looking for Scripts that Replaces Text and Master Pages

I have just found the Script Library panel in FM 10. (Always used InDesign before.)
I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
Do you have som tip where to find such script/macro?

100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
I'd be tempted to ...
Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
Create a new Book file.
Add to it all 100 of the files needing update (this is the only tedious part).
Use Find/Replace from the Book menu to fix the text string.
Select all book component files:
File > Import > Formats
Import from Document [MPsourcefilename.fm]
[Deselect All]
[*] Page Layouts
[Import]

Similar Messages

  • Looking for Scripts that Replaces Text and Master Pages (Batch Missing Files and PDFs)

    I have just found the Script Library panel in FM 10. (Always used InDesign before.)
    I'm up to replace a text string and two master pages in 100+ documents. Tried to google for some nice solutions to make this automatically but cannot find any scripts/macros to FM at all.
    Do you have som tip where to find such scripts/macros?
    To facilitate my work I also look for a batch script that automatically updates the image pathes in each framemaker file (image folder has been renamed).
    And at a last FrameMaker -> PDF Batch converter.

    100 is a small enough number that no time may be saved writing a script (assuming none exist for the purpose).
    I'd be tempted to ...
    Create a sourcing file that has the new MPs needed (and safe versions of MPs "Left" and "Right")
    Create a new Book file.
    Add to it all 100 of the files needing update (this is the only tedious part).
    Use Find/Replace from the Book menu to fix the text string.
    Select all book component files:
    File > Import > Formats
    Import from Document [MPsourcefilename.fm]
    [Deselect All]
    [*] Page Layouts
    [Import]

  • Need script that replace text...

    hello. I would like a script that prompts to input a body of text, and then replace all text on a layer with the entered text, preserving fonts, sizes, positions.. everything. If inputed text is to many letters, it chops off the exchange. If too little letters, it repeats.
    Would be greatful for help.

    Ahh, I should have warned that the script didn't have any kind of error checking...
    As you've found, if there isn't a second text item on any like, the script will choke.
    It's relatively easy to work around - just wrap that part of the script in a 'try' block.
    This revised version shows that, and takes care of creating the new files in a different directory on the desktop:
    <pre class=command>on open theFiles
    repeat with eachFile in theFiles -- loop through the files
    set eachFile to eachFile as alias -- coerce each item to an alias
    tell application "Finder"
    if exists folder "NEW files" of desktop then -- does the folder already exist?
    set theFolder to folder "NEW files" of desktop as alias -- if so, use it
    else
    set theFolder to (make new folder at (path to desktop) with properties {name:"NEW files"}) as alias -- otherwise, make a new folder
    end if
    end tell
    set filename to name of (info for eachFile) -- get the file name
    set fileContents to paragraphs of (read eachFile) -- read the file
    set outputFile to open for access file ((theFolder as text) & "NEW " & filename) with write permission -- create the output
    repeat with eachPara in fileContents -- loop through the paragraphs
    set {oldDelims, AppleScript's text item delimiters} to {AppleScript's text item delimiters, tab} -- manage TIDs
    try
    if second text item of eachPara is "V" or second text item of eachPara is "VA1A2" then -- do we have a "V" or "VA1A2"?
    set eachPara to {text item 1 of eachPara, "VA1A2A3A4"} & text items 3 through -1 of eachPara as text -- work out the new strin
    end if
    end try
    set AppleScript's text item delimiters to oldDelims -- reset the TIDs
    write eachPara & return to outputFile as text -- write out the new data
    end repeat
    close access outputFile -- close the file
    end repeat
    end open
    on run
    set theFile to choose file -- get a file
    open {theFile} -- process it
    end run</pre>

  • Looking for software that mirrors Streets and Trips

    Hi Everyone,
    For years I've used Microsoft Streets & Trips to plan hiking trips and travel across the world.  I recenty made the switch to Apple and, of course, do not regret one aspect.  Except, that is, that I cannot seem to find any software packages or applications that mirror Microsoft's Streets & Trips.  Does anyone know of a program that may be similar and worth a try.  It's difficult to explain all of the capabilities of S&T so here is a link to the software for comparison. 
    I truly appreciate any help!
    -msm

    If you're looking for some options other than Streets and Trips now that is has been discontinued, I suggest visiting http://mappoint-alternative.com/ - I found some great replacements for Streets and Trips there!

  • Please help! Looking for script to insert current date on page.

    I currently use a Dreamweaver Extension that lets you insert
    current date and time on your web page.
    The problem is, I don't know Javascript and cannot edit the
    Javascript codes to "remove the time"
    I only need the current date that will change every day.
    Do you know where I can get this script, I goggled and got
    several but I'm looking for something authentic.
    Also is it possible to have your page validate when you use
    Javascript embedded in your HTML?
    Thanks everyone,
    Patrick

    quote:
    Originally posted by:
    Newsgroup User
    Webethics wrote:
    > The problem is, I don't know Javascript and cannot edit
    the Javascript codes
    > to "remove the time"
    > I only need the current date that will change every day.
    JavaScript generates the date by using the clock on the
    computer of each
    visitor to your site. If a visitor's clock has the wrong
    date, your site
    will also display the wrong date.
    > Do you know where I can get this script, I goggled and
    got several but I'm
    > looking for something authentic.
    I don't know what you mean by "authentic". Date generation in
    JavaScript
    is one of the most basic features of the language, so if it
    works, it's
    "authentic".
    > Also is it possible to have your page validate when you
    use Javascript
    > embedded in your HTML?
    Yes, but you shouldn't embed JavaScript in XHTML.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/
    So mr. Powers are there people that use Javascript Date in
    their page?
    Would you recommend it?
    I could use PHP but I don't know PHP,
    How do I come up with the string in this format, say,
    Wednesday, October 29th, 2008 that will change to a new day
    according to the server time and date.
    Thanks so much for your help and I have two of your books! I
    will be taking PHP classes in December.
    Patrick

  • Looking for script that expands and closes flash window

    You've seen a web site were the flash expands with an option to close. Doe's anybody know where I can learn that script?
    Thanks

    Try fscommand:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/package.html#fscomm and()

  • Looking for script that will connect product and shopping cart

    I'm looking where I can find the script to make the product price or any other specifacations work with the shopping cart. Does anybody know where I can find this script at online?
    Thanks
    Bobby

    I'm looking where I can find the script to make the product price or any other specifacations work with the shopping cart. Does anybody know where I can find this script at online?
    Thanks
    Bobby

  • How to export a list of the note I put on my tablet version. I am looking for the notes I took and the page I put the note on.

    I reviewed a pdf file on my tablet and put notes when I had comments. How can I access these notes on my PC and localise them easyly?

    Hi morgan435,
    Are you saving your PDF files to Acrobat.com? If so, you can upload the PDF from your tablet to your online account, and then download it on your PC. If you don't have an Acrobat.com account, you can get a free account by signing up at https://cloud.acrobat.com.
    Best,
    Sara

  • Aperture 3: After sending my book for printing to Apple the Apple Store told me that my text and the background have the same color and they couldn't print the book. But I couldn't find any problem in the preview. How could I find the problem pages?

    Aperture 3: After sending my book for printing to Apple the Apple Store told me that my text and the background have the same color and they couldn't print the book. But I couldn't find any problem in the preview. How could I find the pages where the problems are? Or otherwise, why doesn't print Apple the book how it is. Idon't need the text which couldn'be seen.

    The forum is for Logic Pro users.. I will ask the moderators to move it to a more appropriate forum for your question/subject
    Cheers..

  • I am looking for a small Dell black and white, laser printer like the Energy Star 1133 that is compatible with my macbook, 10.6.8.  I would like to buy a new computer in the near future so would need it to be work on my next computer also.  Any suggestion

    I am looking for a small Dell black and white, laser printer like the Energy Star 1133 that is compatible with my macbook, 10.6.8.  I would like to buy a new computer in the near future so would need it to be work on my next computer also.  Any suggestions?
    MacBook, Mac OS X (10.6.8)

    I am looking for a small Dell black and white, laser printer like the Energy Star 1133 that is compatible with my macbook, 10.6.8.  I would like to buy a new computer in the near future so would need it to be work on my next computer also.  Any suggestions?
    MacBook, Mac OS X (10.6.8)

  • Folder action to find and replace text and change line feeds

    I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
    The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
    This text has to be removed (i.e. replaced by an empty string)
    The text occurs many times within each file.
    The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
    I have found the following two perl commands to achieve this:
    To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
    To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
    I know that it's possible to make a folder action with Automator that executes a shell script.
    What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
    My questions are:
    Is it possible to make a folder action that executes command line commands instead of shell scripts?
    What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
    Thanks for your help

    Ok, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line.  Depending on what you want to do, you may need multiple string on the bash command lines.  I've included some information on folder actions.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    How to set up a folder action.
    1) right click on folder. click on Enable folder actions
    2) Place script in
    /Library/Scripts/Folder Actions Scripts
    3) right click on folder. click on attach folder action
    pick your script.
    Create a new folder on the desktop & try.
    You can put multiple folder actions on a folder. There are other ways of doing this.
    Here is my test script:
    on adding folder items to this_folder after receiving dropped_items
        repeat with dropped_item_ref in dropped_items
           display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
        end repeat
    end adding folder items to
    How to  make the text into an AppleScript program.
    Start the AppleScript Editor
    /Applications/AppleScript/Script Editor.app
    In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
    Copy the script text to the Applescript editor.
    Note: The ¬ is typed as option+return.  ption+return is the Applescript line continuation characters.
    You may need to retype these characters.
    Save the text to a file as an script and do not check any of the boxes below.

  • Looking for app that will allow me to control my iphone from my desktop

    Looking for app that will allow me to control my iphone from my desktop.  I would like to be able to send text messages, etc from my computer instead of using my iphone.  I don't want to jailbreak my phone.  Does anyone know of app like this?
    Thank you,
    Scott

    Windows or Mac?  You can at least send iMessages from a Mac with Mountain Lion installed.
    There are apps that let you do the reverse (control the computer from the phone).  I don't know of any that let you go the other way.  It would be kind of cool if we could do this though.  But, I suppose it could open up a Pandora's box of security problems for the phone itself.  Just imagine somebody hacking into your phone remotely and using it without your permission....

  • I am looking for some hotels on mozilla and encountered a strange issue, the hotel ad for first slot is not aligned in knowledge panel.

    I was looking for a hotel on mozilla and the first hotel exhibiting in the ad is not aligned with knowledge panel. However it is showing correct result on other browsers. This error is not just contained for one hotel ad but to other as well. I am just curious if it's an issue from their end or some technical syntax error in mozilla
    Please find an attachment.
    Thanks.

    You may have zoomed web page(s) by accident.
    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl/Command+0 (zero))
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not being displayed properly.

  • Looking for software that allows CMS integration with InDesign.

    Looking for catalog production people who have already found a solution to this problem.
    We have a content management system that serves as our data warehouse for our catalog and product information. This data includes information from Marketing, Accounting, and Engineering and is used with our on line catalog and data extracts for customers. Our goal is to extend the use of this system to include an interface to the printed catalog process.
    Immediate goal would be to provide keyed access by product key into InDesign for pricing and technical specifications. Design staff needs to have keyed access to additional catalog information used in the catalog sections, headings, and product descriptions including bullets and paragraph information.
    We are looking for software that can act as a "bridge" between InDesign and our CMS. We need a software company that can provide training and support for the InDesign users and documentation allowing IT to support new processes including the possible use of apple scripting and automator scripts.
    Our IT staff has the database skills to manage and change the CMS database as needed by this project including custom tables and views. Our CMS is available using a MySql server running on Lunix. This is a dynamic copy of our primary CMS from a DB2/400 server.
    We have looked at a variety of software packages, but I have found you learn so much more when you actually USE the software. I would like to avoid any more expensive dead ends.
    Thanks for any input.

    You may possibly find something here:
    http://www.oneonlinegames.com/who-wants-to-be-a-millionaire-games
    but in any case beware of copyright.

  • I just bought the revolution after having a blackberry and i'm looking for a notepad type software and a place to store passwords.

    i just bought the revolution after having a blackberry and i'm looking for a notepad type software and a place to store passwords.

    I use SafeWallet after trying most of the apps in the market place. It's a bit expensive compared to most and you have to pay for the desktop application which sucks but the other apps were some cumbersome I knew I would never use them after the initial setup.
    I'll add the normal caution of storing passwords in a non-protected text file but you probably know that
    Bob

Maybe you are looking for