Batch Rename of External Drives Using Automator

OK...So this is my very first mac and I have only been using it for 3 days. I am using Automator to batch copy files to an external USB flash drive, then Eject the drive. But I also need to be able to RENAME the device, BEFORE I eject it. We are receiving a shipment of 1000 USB flash drives so manually renaming each device will be a LARGE task. Having it automate with the file copy will be much better. Since I am new to Mac, I have no idea how to create an Apple Script to rename a USB disk. Any assistance you can provide is much appreciated.

there is "rename finder items" action but for some reason it doesn't work on disks when I try it. but you can always do it using "run apple script" action.
something along the following lines will do it but you'll have to adjust it according to your situation. it will rename the first item passed into this action.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on run {input, parameters}
set this_item to (item 1 of input as alias)
tell application "Finder" to set name of this_item to "the name you want here"
end run</pre>

Similar Messages

  • Mkdir on external drive using automator

    In Automator, I made a 'Run shell script' action.
    I wanted to have it make a folder name C&P on my external hard drive. Which the path to is /Volumes/Backups
    So I had automator shell script do this:
    mkdir /Volumes/Backups "C&P"
    But for some reason, it makes the folder C&P on my main boot hard drive. Not my external firewire drive (named Backups). Do you know why this is?
    P.S. I see my Automator log also shows:
    An error mkdir: /Volumes/Backkups: File exists (1) occured in Run Shell Script
    Thanks

    mkdir makes a directory at the specified path. It can also make multiple directories, in which case the paths are separated by spaces in the command line. What you did was create a directory at /Volumes/Backups, which already exists, and another at C&P. Try this instead (note that the "&" should be escaped):
    mkdir /Volumes/Backups/C\&P

  • How do I access my iphoto library on time machine backup external drive using Lion, originally saved from old computer and system

    how do I access my iphoto library on time machine backup external drive using Lion, originally saved off old computer and system.  It's not letting me open the folder???

    Once again here's how to restore an iPhoto Library from Time Machine:

  • If I replace my old iMac with a new one can I burn DVDs on an external drive using Mountain Lion or Toast?

    My 2006 iMac is getting a bit long in the tooth and I was thinking of replacing it with a new one. However, Mac have not included an optical drive and I back up my photographs on DVD as well as external hard drives. I also supply DVDs of my work to friends etc.
    Will I be able to burn to an external drive using Mountain Lion or other software such as Toast? Does the burn option still exist on the new machines?

    Hello,
    You shouldn't have any problem, if you do just try Burn...
    http://burn-osx.sourceforge.net/Pages/English/home.html

  • Is it possilbe to install Windows 7 in an external drive using Boot Camp

    Hi,
    Is it possilbe to install Windows 7 in an external drive using Boot Camp?  If yes, can you someone show me or direct me where I can find more info?
    Thanks a lot

    You're welcome anytime.
    Microsoft doesn't make it easy sometimes
    As for the harddisk it surely is possible.
    iFixit http://www.ifixit.com/Browse/MacBook jas repair manuals and/or MacSales http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/SATA/DIY/ with videos on how-to.
    Stefan

  • How do I view photos in an external drive using iphoto

    I want to view my photos stored on an external drive using iphoto. How do I do that?

    iPhoto is not a photo viewer, it's a photo manager with non-destructive processing. If you want a photo viewer, check put Preview.

  • Could we write and read from a external drive using a IPad?

    √could we write and read from a external drive using a IPad?

    No, the iPad doesn't work that way. The only thing you can access is camera cards (with the adaptor).
    Matt

  • How do you view file on an external drive using Unix?

    Hi Folks,
    I'm a serious UNIX newbie...Basically I took up unix in order to use a specific image processing software package... I've learned enough to write a script to batch process all of my images, but I have so many that I would like to use an external (USB) drive to hold the data and point the script towards those files.
    Is there any way to navigate to an external drive in UNIX?
    I see a lot about "mounting" drives, but I have no idea how to do this... I really need someone to hold my hand!
    Thanks.
    -Brent.

    PS:
    here is an example of mounting a network drive if you have to go across the network and actually have the external drive mounted, as opposed to just copying to/from (which would probably be the case coz' things like "scp" are going to ask you for a password):
    mount -t smb server.work.com:/vol/vol0/Projects /Projects
    -t is keyword for type of of filesystem and smb is the actual type.
    server.work.com:/vol/vol0/Projects is path to actual directory on external networked drive. The trailing "/Projects" is the mount point and name on your computer.
    Visit the "man" pages for mount in Terminal for more info, at prompt, type
    man mount
    You won't have to bother with this with a locally mounted (i.e., on the same computer that you are working on) firewire or USB drive. The local path is just
    /Volumes/{NameOfExternalFirewireOrUSBdrive}/{filepath}

  • Can you restore an external drive using Time Machine

    I have my media libraries (iphoto, imovie, itunes) on a separate external drive connected to my mac. They are being backed up to another HD through my time machine backups. However, should my media external drive fail, is it even possible to restore the files to a replacement external HD using time machine? Would it be better to partition my time machine external drive and use half for time machine and the other half to manually copy/backup my external medial HD?

    Cumby
    Would it be better to partition my time machine external drive and use half for time machine and the other half to manually copy/backup my external medial HD?
    Bad idea, thats putting everything in once place. Worst premise for data protection
    Methodology to protect your data. Backups vs. Archives. Long-term data protection
    Everything is about 1. redundancy, 2. redundancy and 3. multiple storage platforms (DVD, multiple HD, online server archives ala a personal website etc.)
    The first realization is that your data on your computer is highly vulnerable
    The second realization is that you need a HD backup of your OS and data
    The third realization is that you need at the very least a secondary HD backup
    The fourth and final realization is understanding the fragility of any and all HD & ferromagnetic storage, and that vital data needs to be “frozen” on unassailable redundancies across multiple storage platforms including multiple HD, online backup, archival DVD burns comprising at the very minimum triple platform redundancy of data you have been working on for years or decades that cannot be replaced.
    The B.A.R. “rule” (backup-archive-redundancy)
    Backup: Active data emergency restore. Backups are moved from backups to archives; or from backups to the computer for restore or data retrieval.
    Archive: Active and static data protection with the highest level of redundancy. Archives are only moved from itself to itself (archived copies). Generally a “long-term retention” nexus.
    Redundancy: A fail-safe off-site or protected and “frozen” copy of your vital data and foolproof protection against magnetic degradation and HD mechanical failure. A likewise failsafe from theft, house fire, etc.
    Redundancy has two points of premise:
    A: redundancy (copies) of data archives.
    B: redundancy of data on different platforms (optical, online, magneto-optical, HD).
    Send your backups to your archives (as often as possible), and your archives to self-same redundancies.
    *When referring to backups and archives here, this is in reference to your data saved/ created/ working on,... not your OS, your applications, and your system information / settings,...which is the idealized premise for use of Time Machine as a system-backup after internal data corruption or HD-failure.
    Here we are referring to data backups and archives, not system-backups for restoring your OS-system.
    If your data on your hard drive is the cash in your wallet, a backup is your bank account/debit card, and an archive is a locked safety deposit box.
    Its easy to get your wallet emptied (corrupted) or stolen, your backup checking account is somewhat easy to get corrupted/drained or damaged, but your bunker security is in the lockbox inside the vault, where your vital data and archives reside. In the premise of preventing data loss, you want as often and as much as possible one-way transfers from your “wallet” to your safety deposit box archives; and further still a minimum of two copies of those archives.
    Highest priority (archives) requires highest redundancy.  In the premise of often copying data from backups to archives, backup redundancy plays a minor role.
    Long-term active file backups (a book, a major time-involved video creation etc.) requires double-active redundancies, preferably a minimum of Time Machine and an autonomous external formatted HD, so there are at least three copies of this data: internal drive, Time Machine, and secondary non-TM HD backup.

  • HT201250 How to backup the Time Capsule to an external drive using Time Machine?

    Most of my data is on my Time Capsule since the hard drive on my iMac is too small for my music/movies/pictures and also so multiple devices can wirelessly access the data. I want to back up the files from my iMac and the Time Capsule on an external hard drive using the Time Machine. However, it seems that the Time Machine ignores the Time Capsule as a data source. How can I get this to work?

    No, I don't believe this solves your problem.
    TIme Machine can be used with a Time Capsule as a backup solution from connected macs and their drives but not from network drives, NAS or Time Capsules.
    Thus, if you store files for LAN access on a TC internal drive, and want to back them to the USB/external drive attached to that TC, you cannot use Time Machine to do so.
    Time Machine has not way of backing up ANY Time Capsule or NAS or WInPC or other networked drive, as far as I can tell. You will have to use some other backup software.
    This is exactly what I bought the TC for myself (tried to use the internal drive on the TC as a NAS for my LAN, storing my music and photos and documents and bought a LaCie 2TB USB3 extneral drive to connect to the TC and hoped to be able to use Time Machine to backup the internal drive to the LaCie drive....but this does not work, as TM cannot backup from a network drive or TC device.

  • Backing up an external drive using Time Machine

    I am trying to back up an external hard drive with Time Machine, but in Options, the drive is greyed out and cannot be removed from exclusions.
    I read that it cannot back up Fat32, if that is true, how do I work around that?  My Aperture library is on this drive.

    If the drive is formatted FAT32 then there is no way around it. Time Machine will not be able to backup the drive. You would have to repartition and reformat the drive for OS X, but that will make it unusable on a PC. You should try using a third-party backup utility if you cannot reformat the drive:
    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    If you backup to the same drive used for your Time Machine backup, then you should create a separate partition on the drive for these backups.

  • Change the partition of an external drive using Disk Utility?

    I wish to change partition scheme, sizes, in an external drive. All the partitions are MacOS extended (Journaled) and they map, according to the layout in Disk Utility, as follows: Partion 1, 2, 3,4 where 1 is at the top and 4, the bottom. I want to make partition 2 larger, so I decreased partition 1 by half. Now the layout is 1 a, 1b, 2,3,4., where 1b is now free space. Disk Utility will not allow me to increase the size of  partition 2 by dragging the corner. Which of the following options (if any) will allow me to increase the size of partition 2, without erasing the data, using Disk Utility:
    Select partition 2 and manually writing a new value in the size box, equal to the present partition’s size plus the free space?
    If I delete partition 1 completely, will I then be able to increase the size of partition 2?
    If I delete partitions 1, 3, and 4, will I then be allowed to increase the size of partion 2?
    Is there another option?
    Thanks
    (Actually, partition 3 is an eDrive, a data recovery utility created by TechTool Pro 7, so I don’t really know how it’s formatted.)
    OS10.9.4, MacBook Pro, SeagateHD 1.5TB USB drive.

    You cannot re-size the existing partitions in such a way that you can take the space from a shrunken partition and add it to another partition. Disk Utility cannot do that. If you have an existing partition that lives above another partition, then you can delete the lower partition in order to expand the upper partition into the freed up space. This concept applies to any additional partitions that are below another partition. Disk Utility can do this. You can resize down, but not up, except when creating new partitions. You would need third-party software such as iPartition 3.4.3 to accomplish that feat.

  • How to sync ipod when hard drive and external drive used for music?

    The Ipod can hold all of my music. My laptop has some current music, the external drive has old music albums. How do I set up the music library / itunes library to sync with the ipod and not erase the music from the external drive when it is not connected.
    I am used to adding mp3s to player, and they stay there until deleted. Now I sync the Ipod, and if I don't keep the external drive attached, the Ipod loses the old music.
    I have searched all discussion lines and do not quite understand the how to of multiple libraries versus other options.
    Thanks.

    Easiest way is to make sure your exHD is plugged in before opening iTunes and syncing your iPod.

  • Can't boot PB 17" from external drive using Firewire

    Title says it all. I've got a WD My Book 500MHz external drive with Tiger loaded on it. The startup drive panel shows it as a bootable drive, but when I select it and restart, the PB briefly displays the question mark folder and then defaults to the internal HD running Leopard.
    I repaired disk permissions on both drives, but still no success. Any ideas?
    John

    Thanks. According to Western Digital, some versions of this drive are bootable, though the Studio Edition I have is not. See the WD My Book page for a list of what they say are bootable versions.
    That page at the bottom also gives a procedure using Disk Utility to make any My Book bootable. I tried it twice, however, and no go. The issue you raised must be the catch.
    John

  • How do I capture footage from camera to an external drive using a macbook

    i'm trying to use my external drive to store my project because otherwise i don't have enough memory. however, there is i think only one firewire port on my macbook. if i connect the camera directly to the external drive it doesn't seem like fce can find it in easy set up. how do i connect my macbook, camera, and external drive so that i can work off my external drive? anyone?

    I have the same query with my macbook which only has 1 firewire 400 port.
    I haven't bought an external drive yet, but want to buy the one that has the right connections.
    After you connect the camera to the ext. hard drive what connection do you use between hard drive and macbook? Ethernet?
    Also, any recommended hard drives, I've heard Lacie are a good one but which model?
    Thanks in advance.

Maybe you are looking for

  • Is there a way to change the alert tone for the find my iphone app?

    Is there a way to change the alert tone for the find my iphone app? The one they use from the factory is terrible! I tried it out and could hardly hear it from 5 feet away!

  • How do I charge my European Mac Book in the USA?

    Hey community first of all Thank for ya help! And here is my question. So I just moved from Germany to America and I needed to bring my Mac Book with me but there is one problem! I bought a converter and It just works fine on my phone and stuff but n

  • Iphone 5c can't keep internet connection

    Hi everyone, I recently opened a new internet account to my service provider in Switzerland. I am having troubles with my iphone 5c: for some reason when I am in my room it cannot keep the connection and looses it all the time. I need to go back to t

  • Enable to  run .exe file which is created from .air file  in windows 7?

    Enable to  open .exe file which is created from .air file which is created from adt command in windows 7 . for run .exe file :: The user must right click and select "Run as Administrator" for run successfully. so How to remove this above permission i

  • Account determination in VKOA

    Hi The Scenario is I have assign GL account in the VKOA for KOFK because we are implementing Controlling also but when we are generating billing document it is giving error that KOFI has not assign GL account, i don't know why it is taking KOFI  for