Apple Script to rename files based on a style

Hi I want to rename many files so they can uploaded to my website.
In order for them to be uploaded they must be formatted in the following way.
Firstname=Lastname=lab=summary
I would input the firstname, lastname and summary for each file as that info is unique. Every file name's style will be the same. the first letter capiatlized in Firstname and Lastname and "lab" in non caps. there is also a "=" between all the words, no spaces.
Is it possible to make an applescript program where I can drop the files in to the program and have a form open asking me to complete the FIrstname, Lastname and SUmmary fields while filling in the rest?
Thanks in advance for any help.

I'm confused about the details of the request.  can you describe the process more clearly? 

Similar Messages

  • Apple Script to rename images using CSV file

    Hello, I have build a website using a Woocommerce for Wordpress. The site is going to have over 1200 images and they need to be renamed appropriately for each product. I've never used Apple Script before but after hours and hours of searching I have noticed people with similar issues have managed to solve the problem using AppleScript.
    I have attached a screenshot of the CSV file first 20 files - also the images are all saved in a folder with the names _DSC7916 copy 2.jpg etc etc.
    Hopefully my issue makes sense,

    In applescript it goes something like this:
              this all assuming the CSV file is a plain text file with a comma delimiting
              the old and new filenames on a given line. If you have another structure
              you need to give specifics so this can be modified
    set theCSVData to paragraphs of (read "/path/to/theCSVFile.csv")
    set {oldTID, my text item delimiters} to {my text item delimiters, ","}
    repeat with thisLine in theCSVData
              set {oldFileName, newFileName} to text items of thisLine
              tell application "System Events"
                        set name of file oldFileName of folder "path/to/folder of images" to newFileName
              end tell
    end repeat
    set my text item delimiters to oldTID
    Note that I've made a lot of assumptions about your csv file, any or all of which may be wrong. please clarify as needed.

  • Need a script to do the following... rename files based on folder name...

    Hi. Macophile just starting to tread the waters of Applescript, trying to use Automator but don't think it will do what I need.
    I have many images stored with-in folders that I would like to extrapolate a given number of characters from the folder name and Add Text to the files within those given folders.
    Basically...
    Folder name is C00100_Descriptive
    Files within folder are just Descriptive_01, Descriptive_02
    Would like to make all files within a given folder take the first 7 characters from the folder and Add that text to all files and files within subfolders of that folder to make the resulting files shown as...
    C00100Descriptive01
    C00100Descriptive02
    Along with this I would also like to incorporate into the script, an added step to create Thumbnail jpegs of the image files in a Subfolder under C00100_Descriptive folder.
    I can see how to do that in automator but not specifying parameters such as taking a certain number of characters from the folder the file resides in and adding that selected text to the files.
    Ideally I would like a droplet or something that I could take a bunch of folders and drop them on the droplet to perform these actions.
    Any advice, help or guidance would be really helpful! Thanks in advance.

    Awesome, you're quite welcome, glad to hear it worked for ya!! Here's another version of the script that will rename the thumb files as jpg...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">on run
    set theItems to choose folder with multiple selections allowed
    open (theItems)
    end run
    on open (itemList)
    repeat with anItem in itemList
    set theInfo to info for anItem
    --VERIFY THAT THE OPENED ITEM IS A FOLDER
    if folder of theInfo and not package folder of theInfo then
    --SET PATH TO THE FOLDER
    set theFolder to POSIX path of anItem
    --GET FIRST PART OF FOLDER NAME
    set folderNameStart to do shell script "echo " & ¬
    quoted form of (name of theInfo) & "|awk -F'_' '{print $1}'"
    --GET ALL FILE NAMES
    set fileList to list folder anItem without invisibles
    --PROCEED IF FOLDER NOT EMPTY
    if fileList is not {} then
    --SET PATH TO THUMBNAIL FOLDER
    set thumbFolder to theFolder & "_thumbs/"
    --CREATE FOLDER IF IT DOESN'T ALREADY EXIST
    try
    do shell script "mkdir " & quoted form of thumbFolder
    end try
    --PROCESS FILES
    repeat with fileName in fileList
    --SET PATH TO CURRENT FILE
    set oldFile to theFolder & fileName
    --PROCEED IF FILE IS NOT A FOLDER
    set oldFileInfo to info for POSIX file oldFile
    if not folder of oldFileInfo then
    --SET NEW FILE AND THUMB FILE PATHS
    set newFileName to folderNameStart & "_" & fileName
    set newFile to theFolder & newFileName
    set theExt to name extension of oldFileInfo
    set thumbName to text 1 through -((length of theExt) + 1) of newFileName & "jpg"
    set thumbFile to thumbFolder & "thumb_" & thumbName
    --RENAME FILE
    do shell script "mv " & quoted form of oldFile & space & ¬
    quoted form of newFile
    --CREATE THUMBNAIL
    --REPLACE '128' WITH MAX HEIGHT OR WIDTH OF THUMB
    try
    do shell script "sips -s format jpeg -s dpiHeight 72 -s dpiWidth 72 -Z 128 " & ¬
    quoted form of newFile & " --out " & quoted form of thumbFile
    end try
    end if
    end repeat
    end if
    end if
    end repeat
    end open</pre>

  • Script to rename files that have similar names?

    Hi, folks.
    I have my  RAW files in one folder and my derivative images (e.g., PSDs, TIFFs,  JPEGs) in another.  The derivative files only share the last four digits  of the RAW file names (e.g., the RAW file is named 100826-14278.CR2 but  the JPEG version is only named 4278.JPG).  Also, the derivative files  have no metadata.
    Is there a way to use a script to match all the  derivatives to the RAW files based on the last four digits, then change their file names  to match the RAW names.  And, if that's possible, can Bridge then  cascade the metadata minus the camera data EXIF from the RAW files to  the derivative files?
    Thanks!
    -Greg
    P.S. My knowledge of scripting stops with cursive handwriting, so please be gentle.

    Thanks the coffee was great!
    Here is a new version with subfolder support. Just select the folders as normal and it will search derivitive subfolders.
    #target bridge  
    if( BridgeTalk.appName == "bridge" ) { 
    var newMenuData = new MenuElement( "menu", "Add_Metadata", "after Help", "myMetaData" );
    var newDataCommand = new MenuElement( "command", "Rename and Add Metadata", "at the end of myMetaData" , "zxcv" );
    newDataCommand.onSelect = function () {
       renamePutXMP();
    function renamePutXMP(){
    var win = new Window('dialog','Rename and Add Metadata');
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    g.backgroundColor = myBrush;
    win.alignChildren="row";
    win.g10 = win.add('group');
    win.g10.orientation = "row";
    win.title = win.g10.add('statictext',undefined,'Rename / Add Metadata');
    win.title.helpTip="Compliments of Paul";
    win.title.alignment="bottom";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
    win.p1.alignChildren="fill";
    win.g5 =win.p1.add('group');
    win.g5.spacing=10;
    win.g5.st1 = win.g5.add('statictext',undefined,'Raw Files');
    win.g5.st1.preferredSize=[100,20];
    win.g5.et1 = win.g5.add('edittext');
    win.g5.et1.preferredSize=[250,20];
    win.g5.et1.enabled=false;
    win.g5.bu1 = win.g5.add('button',undefined,'Browse');
    win.g10 =win.p1.add('group');
    win.g10.spacing=10;
    win.g10.st1 = win.g10.add('statictext',undefined,'Derivative Images');
    win.g10.st1.preferredSize=[100,20];
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[250,20];
    win.g10.et1.enabled=false;
    win.g10.bu1 = win.g10.add('button',undefined,'Browse');
    win.g15 =win.p1.add('group');
    win.g15.orientation='row';
    win.g15.alignment="top";
    win.g15.spacing=10;
    win.g15.bu1 = win.g15.add('button',undefined,'Process');
    win.g15.bu1.preferredSize=[200,30];
    win.g15.bu2 = win.g15.add('button',undefined,'Cancel');
    win.g15.bu2.preferredSize=[200,30];
    win.g5.bu1.onClick=function(){
         rawFolder = Folder.selectDialog("Please select the raw files folder",app.document.presentationPath);
         if(rawFolder !=null){
      win.g5.et1.text =  decodeURI(rawFolder.fsName);
    win.g10.bu1.onClick=function(){
         derivativeFolder = Folder.selectDialog("Please select the derivative files folder",app.document.presentationPath);
         if(derivativeFolder !=null){
      win.g10.et1.text =  decodeURI(derivativeFolder.fsName);
    win.g15.bu1.onClick=function(){
        if(win.g5.et1.text == ''){
            alert("No Raw folder selected!");
            return;
        if(win.g10.et1.text == ''){
            alert("No Derivative folder selected!");
            return;
        win.close(1);
        process(rawFolder,derivativeFolder);
    win.center();
    win.show();
    function process(rawFolder,derivativeFolder){
    var rawFiles = rawFolder.getFiles (/\.(cr2|crw|tif|jpg)$/i);
    if(!rawFiles.length){alert("There are no raw files to be processed!"); return;}
    var derivativeFiles=derivativeFolder.getFiles (/\.(jpg|tif|psd)$/i);
    if(!derivativeFiles.length){alert("There are no derivative files to be processed!"); return;}
    var folderList=[];
    getFolders(derivativeFolder);
    folderList.unshift (derivativeFolder);
    derivativeFiles=[];
    for (var a in rawFiles){
    var Name = decodeURI(rawFiles[a].name).replace(/\.[^\.]+$/, '');
    var fileMask = Name.match(/\d\d\d\d$/)+"*.*";
    var destFiles=[];
    for(var z in folderList){
    var destF = folderList[z].getFiles(fileMask);
    for(var s in destF){destFiles.push(destF[s])}
    for(var z in destFiles){
    var Ext = decodeURI(destFiles[z].name).replace(/^.*\./,'');
    var destName = decodeURI(destFiles[z].name).replace(/\.[^\.]+$/, '');
    destName.substring(4)
       destFiles[z].rename(Name+destName.substring(4)+"."+Ext);
    function getFolders(folder) {
        var fileList = folder.getFiles();
         for (var i = 0; i < fileList.length; i++) {
            var file = fileList[i];
    if (file instanceof Folder) {
    folderList.push(file); 
            getFolders(file);
    $.sleep(300);
    for (var a in rawFiles){
    var Name = decodeURI(rawFiles[a].name).replace(/\.[^\.]+$/, '');
    fileMask = Name + "*.*";
    var destFiles=[];
    for(var z in folderList){
    var destF = folderList[z].getFiles(fileMask);
    for(var s in destF){destFiles.push(destF[s])}
    for(var z in destFiles){
        if(decodeURI(destFiles[z].name).match(/thm$/i)) continue;
    updateMetaData(rawFiles[a],destFiles[z])
    function updateMetaData(sourceFile,destFile){
    if (ExternalObject.AdobeXMPScript == undefined)  ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    sourceFile = new Thumbnail(File(sourceFile));
    destFile = new Thumbnail(File(destFile));
    var md = sourceFile.synchronousMetadata;
    var source = new XMPMeta( md.serialize() );
    var md2 = destFile.synchronousMetadata;
    var dest = new XMPMeta( md2.serialize() );
    try{
    copySchema( source, dest,XMPConst.NS_CAMERA_RAW,["RawFileName"]); 
    copySchema( source, dest,XMPConst.NS_EXIF,["PixelXDimension","PixelYDimension","ExposureTime","FNumber"]);
    copySchema( source, dest,XMPConst.NS_DC,[]);
    copySchema( source, dest,XMPConst.NS_XMP_RIGHTS,[]);
    copySchema( source, dest,XMPConst.NS_IPTC_CORE,[]);
    var updatedPacket = dest.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
    destFile.metadata = new Metadata(updatedPacket);
    app.document.refresh();
    }catch(e){alert(e+" "+e.line);}
    function copySchema( source, dest, namespace, omitProps ) { 
    var propIter = source.iterator(XMPConst.ITERATOR_JUST_CHILDREN | XMPConst.ITERATOR_JUST_LEAF_NAME, namespace, "" );
    var prop = propIter.next();
    var prefix = XMPMeta.getNamespacePrefix( namespace );
    while(prop) {     
      var name = prop.path.substring( prefix.length );    
       if(omitProps != undefined) var copy = !contains( omitProps, name);
      if( copy ) {
                try{
       XMPUtils.duplicateSubtree( source, dest, namespace, prop.path,namespace, prop.path, 0 );       
                }catch(e){}
      prop = propIter.next();
    function contains( arr, member ){
    var r = false;
    for( var i = 0; i < arr.length &! r; ++i  ) {
      r = arr[i] == member;
    return r;

  • Powershell to rename file based on output

    Good Afternoon
    I was wondering if someone could assist with the below
    1. We currently have a system in place whereby a document is scanned onto the system as an image and this is saved in a central location folder
    2. I then run tesseract within powershell on this location folder, which is a program that can extract the image to txt file and this converts the image to a txt file and saves in the same location with the same name
    3. What i would like to do is for powershell to then search the extracted txt file and look for a particular regexpression (which i have) and to then rename the original file from point 1 to the output
    Is the above possible at all
    This is what i have so far, what this seems to do is look in my ocr folder and run tesseract and the output txt files end up in the same folder
    $TargetFolder1 = “c:\ocr\test\file.txt”
    $regex = '[0-9]{5,6}[\.][0-9]{0,1}'
    $result = out-file ("c:\OCR\Match\""imtest" + ".txt")
    select-string -Path $Targetfolder1 -list -Pattern $regex | % { $_.Matches } | % { $_.Value } > $_result
    cd "C:\Program Files (x86)\Tesseract-OCR"
    Apologies of it seems confusing
    Barrie

    Hi
    Many thanks for the info so far, much appreciated
    I have read around on the Microsoft Powershell learning site but becoming slightly confused with some more piping
    I previously mentioned that the tesseract program converts the ocr scanned tif file into a text file - Is it possible instead to have this output to a variable of some sort and then for my reg expression carry out the search in the variable and
    then rename the tif file based on the result of the regexpression
    Previously i have ran tesseract on a tif file via powershell which in turn produces a text file of the document in the file location
    I think it would be best if i ran tesseract on the tif file, then for powershell to export the results somewhere and the reg expression query can be run and the final result will rename the original tif file with the output of the reg expression
    Hope this makes sense and many thanks for help so far
    Regards
    Barrie

  • How can I automatically rename files based on an excel doc?

    I am a scientist and recieve data files from some of my experiments with arbitrary, computer-generated names. For example, if I perform an experiment with four samples, which I name Sample1, Sample2, Sample3, and Sample4, I get back 4 data files named J30935D05.ab1, J30935E05.ab1, J30935F05.ab1 and J30935G05.ab1 along with an Excel doc that lists my names for the samples (sample1, sample 2, etc.) in one column and the computer-generated names for their corresponding files (J30935D05.ab1, J30935E05.ab1, etc.) next to them in another. Therefore, I must open the Excel file and look up which file corresponds to which sample before I can begin processsing my data. Usually these experiments involve a large enough number of samples (70-100 or so) such that looking everything up in the Excel doc gets very tedious and is quite time-consuming. Is there any way to create an automator workflow, applescript, or some other solution to rename these files based on the Excel doc? To clarify, I would like an automator workflow that would take a folder of arbitrarily named files, look up the names I have for the samples in the Excel doc, and rename the files accordingly. In the example, my folder containing files J30935D05.ab1, J30935E05.ab1, J30935F05.ab1 and J30935G05.ab1 would be turned into a folder containing the files renamed as Sample1.ab1, Sample2.ab1, Sample3.ab1, and Sample4.ab1. This example is a bit simplified, however, and trying a simple trick of just systematically renaming files within the folder would not work--both the original and the new file names must be looked up in the Excel doc, as these change dramatically from experiment to experiment. I would also need to maintain the file extension on each file after being renamed. Any help would be greatly appreciated!!

    Try the freeware utility Renamer4Mac (VersionTracker or MacUpdate).
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • HowTo Rename file based on message content?

    Hi All,
    Newbie here.
    I have an message which i'm pushing out to a file via a File eWay.
    I need to name\rename the file based on the ID of the message.
    What is the best way to do this?
    Thanks,
    Ken

    I'm not aware of a way to do this via the File eWay, which is very limited in functionality. Of course, you could do it with standard java.io but that isn't very Java EE. So, I typically use the Batch eWay (Batch Local File) where more robust capabilities such as this are quite easy using the dynamic configuration features.

  • Renaming files based on sequence

    I have a set of 3 images for an MxN pixels of certain scan.
    I have developed a code that does some image processing and renames the files as pulse-1, pulse-2 and background-1. This is for 1 pixel. Right now I can do this to only the three images that relates to One pixel that I used for testing.
    In futures I will be having MxN images, which means MxN pixels and I have MxNx3 images, how can I sequentially rename the files based on which pixel it corresponds to ? for ex: Pixel-1_Pulse1, Pixel-1_Pulse2 and Pixel-1_Background.
    The developed code for 3 images is attached.
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Image intensity - DEV-9.vi ‏38 KB

    Well, the tools are "strip path", "build path", and "get file extension". The rest are simple string operations on the filename.
    Sorry, it is not clear what exactly you are trying to do. Is each pixel a seperate image file? You seem to list all BMPs in a folder, but then only look at three files.
    Can you show an example file list and what kind of output you expect from it?
    (In the meantime, you really should do a few more tutorials. learn about autoindexing (first loop). Also don't convert the path to a string only to convert it back to what it was a few nanoseconds later. The "array to cluster...unbundle dance" is just silly. Simply use index array resized to three output. See attached).)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Image intensity - DEV-9-MOD.vi ‏29 KB

  • PS Script To Rename File Using CSV - Filename Is Containing IP Address And Needs To Be Host Name

    Hello All,
    I am currently working with PDF reports which are named "TEMXX.XX.XXX.XX_141215.pdf", XX.XX.XXX.XX is an IP address. I have created a CSV which contains two columns, ColumnA = IPAddress ColumnB = HostName. I would like to remove the existing title
    of the file, and rename it as "ColumnB.pdf".
    The only two commands which come to mind are:
    get-childitem *.pdf | foreach { rename-item $_ $_.Name.Replace("TEM", "") }
    get-childitem *.pdf | foreach { rename-item $_ $_.Name.Replace("_141215", "") }
    The above commands are of course to remove the unwanted "TEM" and "_141215" but I cannot seem to figure out how to just rename files as ColumnB.pdf.
    Any help would be greatly appreciated :).

    Hello All,
    I performed the following but it did not execute, just returned the prompt. The final ps1 file was saved and ran as follows:
    $lines = Import-Csvservers.csv
    ForEach($line in $lines){
    get-childitem *.pdf |where {$_.name -eq $line.ColumnA}|Rename-Item -NewName $line.ColumnB
    CSV file named servers.csv displayed as follows:
    ColumnA,ColumnB
    192.168.1.2,SERVER1
    192.168.1.3,SERVER2
    Files in Explorer displayed as follows:
    ray192.168.1.2_2015.pdf
    ray192.168.1.3_2015.pdf
    As indicated above the filename should be finalized as:
    SERVER1.pdf
    SERVER2.pdf
    Any help in figuring this out would be greatly appreciated.

  • Apple Script to rename single files in folders

    Hey guys, I am trying to write a script to automatically rename a lot of files.  Here is the situtation:
    I have a MainFolder with many SubFolders inside.  Inside each SubFolder is 1 word document.  Is there a way to write a script that automatically renames each of of those word documents to its folder's name.  Example.
    BEFORE:
                      -SubFolder1 - 1.doc
                      -SubFolder2 - 1.doc
    -MainFolder -SubFolder3 - 1.doc
                      -SubFolder3 - 1.doc
    AFTER:
                      -SubFolder1 - SubFolder1.doc
                      -SubFolder2 - SubFolder2.doc
    -MainFolder -SubFolder3 - SubFolder3.doc
                      -SubFolder3 - SubFolder4.doc
    Thanks.

    The following script should do what you are asking for:
    set mainFolder to choose folder
    tell application "Finder"
        repeat with thisFolder in (get folders of mainFolder)
            try
                set name of (file 1 of thisFolder whose name extension is "doc") to (name of thisFolder & ".doc")
            end try
        end repeat
    end tell
    If there's just one file in each subfolder (wich is not exactly the same as “one Word document”), you could remove the “whose name extension is "doc"” filter.

  • Script to Rename PDFs Based on Content

    I'm trying to create an electronic archive of digitized brokerage statements so that I can get rid of the paper copies.
    Fortunately, I can download statement PDFs from my brokerage firm all the way back to 2006.  On the website the statements have reasonably descriptive titiles and are organized by date.  Unfortunately, when they are downloaded, they are all named 'statement.pdf'!
    I'd like to write a script that goes through these downloaded PDFs and renames each one based on it's content.  The resulting file name would be something like:
    <brokerage name as string constant><account description><statement date formatted as yyyy.mm.dd>.pdf
    Can an AppleScript look inside a PDF? 
    Can someone point me in the right direction regarding the approach to take, e.g., AppleScript, Automator, etc?
    Thank you!
    - nello

    I'm confused about the details of the request.  can you describe the process more clearly? 

  • PowerShell Script to Delete Files Based on Current Date

    I know by using Get-Date PowerShell will look at the current date.  I would like to make a very basic PS Script which will delete a file older than 8 days based on the current day.  I believe using a if/then function will be necessary. 
    I am very new to scripting so Im not sure how the syntax is written.  All help appreciated.

    Yes, use -Recurse to get subfolders too:
    $Folder = "C:\Users\Me\Backups"
    Get-ChildItem -Path $Folder -Recurse |
    Where { $_.LastWriteTime -lt [DateTime]::Today.AddDays(-8) } |
    Sort LastWriteTime |
    Remove-Item $_ -Force -Confirm:$false
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Is there a way to rename files based on ID3 tags? Or, is it possi

    to move the files to my computer in another manner that will name them correctly? I couldn't find an option in the Creative Mediasouce program that would allow me to do this.
    I have most of my music files on my desktop pc, but want to move them to my laptop. I can use Nomad Explorer to pull them onto my laptop and they retain the id3 tag info, but are simply named by the title of the song. This makes it so that the songs are in alphabetical order in the new folder... I would rather not have to rename them adding a track number to each one as I will be transferring many files.
    Thank you very much!

    Well the ID3 tags are fine, as they were correct on the Zen Touch. My problem is just that when you drag-and-drop them from the player to the desktop of the computer, the file name given is only the title of the song (i.e. not track or artist or ablum info.). If there was a way to do it, I would like to change this 'track only name' into at least a 'track number - track name' so that the files are in the correct order for the album in the folder. I thought that this would be easy because the information is already stored in each track's ID3 tag, but I can't figure out how to use this to my advantage. Thanks for your help and sorry if this is confusing.

  • Automator Script to rename files with the file's Comment text?

    Hello and thank you for your time!
    Summary:
    I'd like to have an Automator Script that would copy the File's Comment info and paste it to the File's name, so I can import my sound effects into iTunes and have the proper labeling.
    Breakdown:
    I have a ton of Sound Effects that I'd like to put into iTunes, but the filenames are for example, "04. Track 04.mp3".  Not the most helpful name.
    I can search by "car crash" in the finder and find THAT file ("04. Track...")  because it's in the File's metadata in the Comment info, as "Car Crash - Chevy Camaro".
    So is there a script or a way to script Automator to copy the File's Comment info and paste it to the File's name, so I can import these into iTunes and have the proper labeling?
    Thank you for reading!
    - Ben

    This should be much faster and direct....
    Source = "C:\temp" 
    Destination "C:\newTemp"
    Set objFSO = CreateObject("Scripting.FileSystemObject")     
    Set arrFiles = objFSO.GetFolder(Source).Files  
    For Each file In arrFiles  
        If InStr(LCase(file.name), ".zip.") > 0 Then 
            arrFilename = Split(lcase(file.name), ".zip.")  
            newname = arrFilename(0) & ".zip" 
            WScript.Echo file.name & " -> " & newname  
            objFSO.CopyFile file.path, Destination & "\" & newname
        End If 
    Next 

  • How can I rename files based on their ID3 tags?

    For example I would like to rename the files in a particular folder to have the format <track number> - <track name>.mp3
    I'd rather not used third party software to do this.

    For example I would like to rename the files in a particular folder to have the format <track number> - <track name>.mp3
    I'd rather not used third party software to do this.

Maybe you are looking for

  • .ts files in Premiere CS5.5

    I'm importing some transport stream files (.ts) into premiere pro cs 5.5.  All files were captured from the same device which captures from a satelliete.  Some files import fine, while others may either not import at all or import with only half of t

  • How to add values in a List item using code

    Hi all, I want to populate a list item at run time with the values of my choice. im using this add_list_element('list34',1, 'Name','Smith'); or add_list_element('list34',1, 'Name',:emp.txtname); where emp is my data block and txtname is a text field

  • Time Code displayed on an External Monitor? Is this possible?

    I'm sure this is a dumb question, but is there a way to view your FC time code on your footage through your external monitor? I selected the show time code overlays from the viewer but it only shows up on the monitor on the computer screen and then g

  • Permission denied during Ajax request

    Hi All, I have webapp wich contain ajax cross-domain request using Apache Proxy. When i try to load page in Safari and creat ajax request i see "Permision denied" error. In othe browser as IE and FF i dont have this problem. If i try create ajax requ

  • CS3 Audio mixer automation not keeping changes

    I'm using CS3 on a Mac.  My current project marks the first time I've done any editing in almost thirty years.  When I opened CS3 for the very first time and did a few trial edits, I was able to adjust audio on the three tracks as I played it back an