How do I auto-relink renamed files?

Hello everyone, thank you all in advance for helping me with this situation.
I have experience in running scripts for InDesign, however I have no experience writing scripts, and ultimately I will need something that is also versitile enough to work in CS 3,4, & 5.
I work for a book publisher, and we changed our file naming convention for all files (new and old). We intentionally rename EVERY file with the Renamer for Mac program prior to opening up the InDesign file - and manually relink every file to the newly named file. I would like to be able to write a script that automatically determines the files new name, and relinks them.
Is this possible, and how would I do this?

If there is an exact formula for determining the new name by only knowing the old name/path then sure it'd be possible. Just iterate over all links in the document, check whether they're broken, calculate the new name and relink. Without knowing the renaming formula though there's no way to give you an exact script.

Similar Messages

  • How do i delete or rename files on my external hard drive from mac OSX 10.8.3

    hi
    i am trying to delete some files off of my external hard drive and rename some stuff but my mac dose not let me
    i have been on all the macbook pro forums and none of the explained makes any sence to me .... has any one got an idea of what i do to simply rename and delete folder through this computer
    cheers A

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (80860)

  • How to diable auto open downloaded files?

    currently using firefox 21.0 i believe
    thanks in advance

    Hmmmm......Well, I don't think its Firefox. What kind of files
    does this happen? All files, EXE files, music, video, updates?
    What directory are you downloading to? Do you have the same
    problem with other web browsers? If you haven't used another
    browser, try it with one of the web sites that you have the problem.
    Speaking of that, is it all web sites, some sites, a few sites?
    Are you using the Firefox downloader or another. Some web
    sites use there own download software.

  • Difficult to Rename Files (Finder windows keep Refreshing)

    Has anyone else noticed how difficult it is to rename files in a folder? It is almost as if Leopard's Finder keeps refreshing (or building thumbnails) or something. Here is my scenario:
    - Browse to a folder (in my case a folder with large files)
    - Hit enter on a file and start renaming the file
    - After 1-2 seconds, finder jumps out of edit mode by itself (as if the page somehow refreshed)
    - Hit enter again and keep on editing
    - 1-2 seconds later, jumps out of edit mode again.
    - Leave the window for 20-30 seconds
    - Then hit enter, then it is easy to rename the file.
    - Thereupon, immediately try to edit the next file, and bam, it exits edit mode after 1-2 seconds (almost as if the previous file rename triggered a 'refresh this entire view' event)
    It is incredibly annoying to attempt to rename a bunch of files with Leopard.

    Ah - I cant seem to get into the habit of "get info" to rename my files. It seems counter productive.
    Is there any other workaround / fix to make the finder stop jumping me out of renaming a file?
    It is incredibly annoying. I will get a few characters typed in, and it will jump out of editing... and then to add insult to injury, the folders is updated and the file jumps to its new alphabetical location in the list - So I have to go find the partially named file to finish the job.
    People ask me if I like Windows or Mac. I say both have benefits and weaknesses. Renaming files is one of my Mac's weaknesses - it seems. It shouldn't be - it is a basic part of an operating system.
    Help!

  • Renaming files in folder

    trying to figure out how to use automator to rename files within a folder.
    searched on youtube but none of the methods seem to work on my mac.
    if anyone knows of a great tutorial for this i would love to have it.
    thanks'
    Owen

    Sorry, I'm not sure what you mean. Are you referring to the Downloads folder that Mac OS X sets up by default in your user's home directory? If so, you rename files in that folder the same as you would any other folder. The Downloads folder does not (unless something's amiss with the permissions on your system) restrict anything and isn't any sort of "special" folder in terms of how it behaves.
    If that's not what you meant, please post back and explain further.
    Regards.

  • How to set auto backup as like quark express

    Hi,
    I want to know how to set auto backup opening files in InDesign 6 as like quark express

    InDesign restores everything after a crash.
    Versioning was removed aw hile ago, now you should set it up on OS or computer level or use a cloud service like dropbox which offers such functionality.
    For formatting use Paragraph Styles, for exceptions use Character styles. It is a no-go to make a font bold, it must be done via styles. I think it is a problem with Quark documents that people bolded with the B button their text, this caused false styles and did no semantic styling which would not allow to create PDF/UA documents.
    Paragraph and Character Styles are completely different in InDesign than in Quark. In InDesign every font property is defined in a paragraph style. Character Styles are only used for exceptions and only the different properties are defined. E.g. if you have black text and want some words or letters to be red the InDesign Character style would define only the property character color to red, everything else would remain empty. So you could apply the same character style to text with different paragraph styles with different fonts and sizes. In Quark you would have to set up a different character style for each paragraph style.

  • "Moving a project from network L: drive to C: drive - how do I relink the files?

    http://help.adobe.com/en_US/PremierePro/4.0/WS3D22F379-B6C7-4d8c-9548-26AA3E1EA74F.html
    In the above thread "Moving a project to another computer" it states the assets should retain their file names and folder locations so that Premiere Pro can find them and relink them to their clips in the project automatically and although I'm only a novice PP user that is standard advice for any software.  However I can't find advice anywhere on how to swap a project from one disk drive to another on the same computer.
    What I want to do is move the project media files off my network (L:) drive to the C: drive of the editing computer as all the advice on here about disk drives is not to use network drives.  I've copied the files over but how do I replace the media file links within the PP project which are currently pointing to the sub-folders on my L:drive with replacement one's pointing to the same folder names but with the path as C: drive.  Sorry if it is a numpties question but I'm not finding the answer via search.
    Reason for shifting project - for some reason the sequence files were being lost when I reopened the project so I had to reuse the last good auto-save despite loss of some editing work and the project had also suddenly started taking up to an hour to load all the linked media.  Given the advice about not using network drives decided to eliminate one of the possible causes before going any further with risk of losing the edited file.. 

    I strongly agree with Jim on where to relocate the Project and media files.
    Now, when you do Move the files, the Paths (absolute) in the PRPROJ file(s), will no longer be correct. The drive letter will have changed.
    When you Open your Project from its new location, you will get a question dialog, "Where is file _____ ?" for the first Asset, where the link is now broken. Using the Finder, navigate to the folder, where that first missing Asset is NOW located, and select that. PrPro will then look in that folder, and will automatically relink to all Assets in that folder. If you have your Assets in multiple folders, you will need to repeat, for each folder, and again, PrPro will relink to all Assets in THAT folder. Depending on the folder/sub-folder hierarchy, you will have to repeat for all folders.
    When all Assets have been relinked, I would immediately do a Save_As, incrementing the Project's name, so as to NOT overwrite that original Project file - just in case you ever need to revisit that.
    Good luck,
    Hunt

  • How to open renamed files?

    Hi
    I rename selected files and after that want to open them.
    For my purpose renaming works well like this:
    tell application "Finder"
    set FilesToRENAME to selection
    display dialog "Change what?" default answer ""
    set ChangeFROM to text returned of the result
    display dialog "Change to?" default answer ""
    set ChangeTO to text returned of the result
    set AppleScript's text item delimiters to {ChangeFROM}
    set theCount to count of FilesToRENAME
    repeat with x from 1 to theCount
    try
    set theName to name of item x of FilesToRENAME
    set FirstNamePart to first text item of theName
    set LastNamePart to second text item of theName
    set newName to FirstNamePart & ChangeTO & LastNamePart
    set name of item x of FilesToRENAME to newName
    on error errStr number theNumber
    activate
    display dialog "Error in changing the Name " & theNumber & return & errStr ¬
    & return & "Step " & x
    end try
    end repeat
    set AppleScript's text item delimiters to ""
    end tell
    Now newly renamed files don't belong anymore to FilesToRENAME. So how to point to those files now (how to make a new list from those renamed files)? I was thinking to get a path to each file inside the repeat loop and replace the name, but couldn't do it.
    Thank you for any help.
    Vera

    Pierre's method is pretty clever, but if you don't happen to be using a Finder selection (choose file for example), you can also use the interesting fact that an alias keeps track of an item even if it is moved or renamed.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- tell application "Finder" to set filesToRename to selection as alias list
    set filesToRename to (choose file with multiple selections allowed)
    set changeFrom to text returned of (display dialog "Change what?" default answer "")
    set changeTo to text returned of (display dialog "Change to?" default answer "")
    set renamedFiles to {} -- this will be the renamed files
    repeat with aFile in filesToRename
    set aFile to the contents of aFile
    tell application "Finder" to set theName to name of aFile
    try
    set tempTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {changeFrom}
    set firstNamePart to first text item of theName
    set lastNamePart to second text item of theName
    set AppleScript's text item delimiters to tempTID
    set newName to firstNamePart & changeTo & lastNamePart
    tell application "Finder"
    set name of aFile to newName -- aFile points to the original file
    update aFile -- give Finder a chance to catch up
    set the end of renamedFiles to aFile -- aFile now points to the renamed file
    end tell
    on error errStr number theNumber
    activate me
    display alert "Error " & theNumber & " in changing the Name" message errStr
    end try
    end repeat
    renamedFiles --> aliases to the renamed files
    </pre>

  • How can I relink event files?

    I am on the job of 'managing my video works'...trying to get the events and projects in order. In this matter I have been coming across 'problems' which I have been able to surmount. But in the present case I seem to have come to the 'end of the road' and would like to know how to proceed.
    The event of one particular problem is showing an alert icon as the one shown in the HELP pages of FCPX:
    When I tried to relink the files, I got this pop up stating that files were incompatible and asked to click on a single file to know the reason of incompatiblity:
    Upon selecting a single missing file, I found that there was this problem:
    The project appears normal in the project library and the timeline as well. The project properties in the inspector window also seem to be normal...no alerts of missing events. Playback also is normal. The project in the project library sports no alert icon. I did a 'relink project files' and was able to do so. When I clicked upon reorganize project media, I was informed that all the media are right on the spot [location].
    I finally also clicked reorganize event files and got this feedback:
    May I be informed how I can get rid of this alert icon? What are the dangers, if any, if the alert icon cannot be removed? Can I ignore this alert?
    Thanks in advance.

    An update for what it is worth!
    The alert icon got removed in this fashion:
    I had upgraded to version 8 of FCPX recently and instead of updating all the events and projects in a drive at once, I had, as a precautionary measure, used event manager to 'feed' and update with only one project and its associated event/s at a time. When I clicked all the prjects and events of the drive in question, the alert icon disappeared.
    However, I am still getting this, what Tom has opined, a display problem, even in some events and not merely projects:
    Well, if this is indeed a 'display problem' need I to call up the service center or do I accept it with an air of resignation? FYI this appearance of clips and projects are not for all projects and events I have but only for some of them.

  • How can I get iTUNES library to display renamed files and folders (renamed with Windows Explorer)?

    How can I get iTunes library to display the new names and organisation of tracks and albums (ie files and folders) that I have renamed and reorganised (using Windows Explorer) having previously imported them using iTunes?
    (Even when I relocate "lost" tracks in iTunes (using the drop down menu facility to view in Windows explorer), although iTunes will then play the track, and knows where to find it, it refuses to display the track with its correct (new) name, or show it the correct (new) album.  That means I have lots of things called "Untitled" and "Track 01" etc, all of which have actually been renamed, but iTunes does not seem to have the capability to recognise the changes and update its library listing.  Another example - a Tchaikovsky CD with 3 major works in 13 tracks insists on displaying in iTunes as 13 tracks in one album, despite the fact that I have reorganised the tracks into 3 albums - two being Swan Lake and The Nutcracker - and renamed the individual tracks to a more useable format.)

    Thanks for your replies ckuan
    I agree with Tgod that your first solution does not work.  It appears unpredictable whether the old or new file names are listed when you drag the folders into iTunes from Windows Explorer.  The folder structure is completely missing.  I reckon if you have to muck around spending days/weeks/months finding out how to fix links to a secret meta-file (obviously designed by some deep-cover microsoft worm working in the Apple!), then it's pretty obvious that almost any alternate way of doing this would be better.   Bye bye iTunes!!
    Incidentally, I tried several other things that (if the software was designed intuitively) should work, but give disastrous results:
    1) when deleting the library listing in iTunes, it gives you two options - one is to remove the listings to the Recycler.  Be aware that IF you select that option, it removes not only your library listing, but also your ACTUAL MUSIC FILES to the Recycler.  Moreover, it does NOT remove the insidious secret meta-file that is what apparently keeps rewriting old names over your carefully renamed file names, and keeps totally ignoring your carefully designed folder (album) structure.  OK - not a complete disaster, as I realised and went hunting through the chaos in the Recycler to recover all my files.  No thanks to the genius who designed this brilliant feature!
    2) after deleting the library listing in iTunes, I attempted to import just the folders that I wanted.  iTunes refused to allow me to do that, and proceeded to try to import every frigging music file it could find on my whole hard drive, in apparently random fashion into the library.  Whoever thought up that doozy either never ever tried to use or market test it, or has modified their mind rather too many times with artificial substances so their brain is like muesli chop suey.
    3) oh why go on, it's too depressing ...

  • In lr4 where/how to rename files if loaded from folder already on hard drive?

    Files imported from a card reader can be renamed upon import but where/how to rename files added from a folder already on the hard drive? Also, how to rename files so as to not have gaps in the number sequence once the "rejects" have been deleted? Thanks.

    Yes and yes.  And, using it with the new shoot name renamed the files perfectly! 
    There is even a "original number suffix" so if you don't like IMG_4501 and prefer DSC_4501 you can pull the 4501 (the suffix) and replace the first three characters.
    So, in one operation SFO-shoot-(IMG_4501).NEF could become Wine-country-shoot-(IMG_4501).NEF or even Wine-country-shoot-(4501).NEF if you prefer.  Powerful.
    Thank you Rikk and Adobe! Chris R

  • How to edit move rename files in iTunes

    how to edit move rename files in itunes

    I don't like iTunes.
    I don't want iTunes to keep the physical location of my files because they can be on a SD card, or an USB drive and i don't want iTunes to stop me from playing a song because it cannot find it anymore.
    So i would like to use physical files just to upload to iTunes Match and then delete the link to the physical file.
    If needed, iTunes Match will download the file.
    The problem is just that i would like to delete all references to physical files to make iTunes Match download the file only when needed and stop using the first version i had given to it
    maybe i could have a Apple Script to check if there is a physical file referenced and if so delete it to have only the Cloud version     

  • How to rename files that appear in multiple .book files?

    I have about 50 .fm files, and 4 .book files, each of which includes about 20 of the .fm files.
    I want to rename some of the files.
    If I open all four .book files at once, and I go to First.book and rename file Q, I want it to be renamed in all the other .book files in which it happens to be included.
    How can I do that?
    Thanks.

    You have to rename the file in each book that it is included in. After the first re-name, the other books will treat the old filename as a missing one.

  • How do I auto fill "file info" in photoshop cc ?

    How do I auto fill "file info" in photoshop cc ?

    If it's repeating information such as your contact and copyright information, you may wish to create a Template.
    Auto-complete is available in Photoshop CC, which is a time saver. This feature has been left out of CC 2014.
    How can I set in ps the "file info" autofill option?
    Creating Metadata Templates | Photometadata.org

  • CS6 Beta ended by crash - How/Where to keep my Auto-Saved Recovered file ?

    Hello,
    I was working on Photoshop CS6 beta on Lion OSX since one month with no problem.
    Yesterday seemed to be the last day of use (1st june annonced however) and Photoshop CS6 Beta shutted down since I was working on it.
    On the re-opening it asks for a licence key so I try to buy one month rental on the e-shop but the 3 bank cards tested failed. So I gave a call to the commercial service and they told me that they do not take in charge rental but only full licence and that I can download the trial for one more month if I want to.
    So, I will replace the beta by the trial.
    But :
    - How can I keep my Auto-saved Recovered file I was working on when crashing (pretty important work)
    - Where the recovered file is saved on the hard-drive ? And, can I make it works whith CS6 non-beta ?
    A lot of thanks in advance for your help.
    Kind Regards

    As I understand it - having not (fortunatley) had the opportunity to test this - if PS crashes and you have auto-save switched on, you need to re-launch PS and it will automatically open with the recovered file(s) in the state they were at when auto-save last saved them. Auto-save stores files temporarily in a special folder that's located at the same file path as your scratch disk location. (My scratch disk is at root level on a seperate drive, so it's easy to see the auto-save folder if I look there, but if you can locate your scratch disk, you should see the auto-save folder also.)
    Of course, the fact that you can no longer open PS is going to present a problem here. I'm not sure if you could re-access the file via the trial version once that was installed and pointing to the same scratch disk area.
    I might have got this wrong, but I think it's correct... Feel free to disprove my post!
    M

Maybe you are looking for