Almost there with a folder & file renaming script

Hi all,
I have been trying to write a script that will replace text in every file and folder from given folder, and all of its subfolders and files.
I have manage to tweek the apple supplied script to rename all files but it keeps crashing when it renames a folder. I am guessing it is because if the parent folder gets renamed all the aliases to the other folders are broken?
Can anybody please help, I'm sure this script would be of use to many people!
Here is the script as it stands now
try
tell application "Finder"
set source_folder to choose folder with prompt "Select folder to rename files in:"
end tell
end try
tell application "Finder"
display dialog "Search and replace in:" buttons {"File Names", "Folder Names", "Both"} default button 3
set the search_parameter to the button returned of the result
end tell
repeat
tell application "Finder"
display dialog "Enter text to find in the item names:" default answer "" buttons {"Cancel", "OK"} default button 2
set the search_string to the text returned of the result
if the search_string is not "" then exit repeat
end tell
end repeat
repeat
tell application "Finder"
display dialog "Enter replacement text:" default answer "" buttons {"Cancel", "OK"} default button 2
set the replacement_string to the text returned of the result
if the replacement_string contains ":" then
beep
display dialog "A file or folder name cannot contain a colon (:)." buttons {"Cancel", "OK"} default button 2
else if the replacement_string contains "/" then
beep
display dialog "A file or folder name cannot contain a forward slash (/)." buttons {"Cancel", "OK"} default button 2
else
exit repeat
end if
end tell
end repeat
tell application "Finder"
display dialog "Replace “" & the search_string & "” with “" & the replacement_string & "” in every item name?" buttons {"Cancel", "OK"} default button 2
end tell
tell application "Finder"
set a to every folder of entire contents of source_folder
repeat with aa in a
-- looping within folders of selected source folder
set aastring to aa as string
set all_files to (every file in aa)
repeat with ff in all_files
-- looping within the files for the current folder
set this_item to ff
set this_item to (this_item) as alias
set this_info to info for this_item
set the current_name to the name of this_info
set change_flag to false
if the current_name contains the search_string then
if the search_parameter is "File Names" then
set the change_flag to true
else if the search_parameter is "Both" then
set the change_flag to true
end if
if the change_flag is true then
-- replace target string using delimiters
set AppleScript's text item delimiters to the search_string
set the textitemlist to every text item of the current_name
set AppleScript's text item delimiters to the replacement_string
set the newitemname to the textitemlist as string
set AppleScript's text item delimiters to ""
my setitem_name(thisitem, newitemname)
end if
end if
end repeat
-- now we have renamed all the files lets rename the folder
set this_item to aa
set this_item to (this_item) as alias
set this_info to info for this_item
set the current_name to the name of this_info
set change_flag to false
if the current_name contains the search_string then
if the search_parameter is "Folder Names" then
set the change_flag to true
else if the search_parameter is "Both" then
set the change_flag to true
end if
if the change_flag is true then
-- replace target string using delimiters
set AppleScript's text item delimiters to the search_string
set the textitemlist to every text item of the current_name
set AppleScript's text item delimiters to the replacement_string
set the newitemname to the textitemlist as string
set AppleScript's text item delimiters to ""
my setitem_name(thisitem, newitemname)
end if
end if
end repeat
end tell
beep 2
on setitem_name(thisitem, newitemname)
tell application "Finder"
--activate
set the parentcontainerpath to (the container of this_item) as text
if not (exists item (the parentcontainerpath & newitemname)) then
try
set the name of this_item to newitemname
on error the error_message number the error_number
if the error_number is -59 then
set the error_message to "This name contains improper characters, such as a colon (:)."
else --the suggested name is too long
set the error_message to error_message -- "The name is more than 31 characters long."
end if
--beep
tell me to display dialog the error_message default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end try
else --the name already exists
--beep
tell me to display dialog "This name is already taken, please rename." default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end if
end tell
end setitemname
Message was edited by: James @ Hakoona

Hmmm, that script is definitely a bit old.
An alias will still refer to the same file or folder, even if renamed. Your script does not crash on my machine, but the list of folder items to rename is empty. You are doing a lot more work than you really need to - you can just tell the Finder to get a list of file or folders so you don't have to do all that looping. By the way, you do not need the Finder to display the dialogs - normally an application tell statement should just contain terminology for that application (i.e. commands specific to the application).
The following script replaces your loops through the files and folders with statements that just get all of the files or folders (or both). I also renamed the buttons so that their names/selection can be used elsewhere, such as some of the dialogs.
<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">
set source_folder to choose folder with prompt "Select a folder to rename files in:"
display dialog "Search and replace text in the names of every:" buttons {"file", "folder", "file and folder"} default button 3
set search_parameter to button returned of the result
repeat
display dialog "Enter the text to find in " & search_parameter & " names:" default answer "" buttons {"Cancel", "OK"} default button 2
set search_string to text returned of the result
if search_string is not "" then exit repeat
end repeat
repeat
display dialog "Enter the replacement text:" default answer "" buttons {"Cancel", "OK"} default button 2
set replacement_string to text returned of the result
try
if replacement_string contains ":" then error "colon (:)."
if replacement_string contains "/" then error "forward slash (/)."
exit repeat
on error error_message
beep
display dialog "A file or folder name cannot contain a " & error_message buttons {"Cancel", "OK"} default button 2
end try
end repeat
display dialog "Replace “" & search_string & "” with “" & replacement_string & "” in every " & search_parameter & " name?" buttons {"Cancel", "OK"} default button 2
tell application "Finder"
try
if search_parameter is "file" then
set item_list to files of entire contents of source_folder
else if search_parameter is "folder" then
set item_list to folders of entire contents of source_folder
else -- both
set item_list to entire contents of source_folder
end if
on error -- no items
set item_list to {}
end try
if class of item_list is not list then set item_list to {item_list} -- single item
repeat with this_item in item_list
set current_name to the name of this_item
if current_name contains the search_string then
-- replace target string using delimiters
set AppleScript's text item delimiters to search_string
set text_item_list to text items of current_name
set AppleScript's text item delimiters to replacement_string
set new_item_name to text_item_list as text
set AppleScript's text item delimiters to ""
my set_item_name(this_item, new_item_name)
end if
end repeat
end tell
beep 2
on set_item_name(this_item, new_item_name)
tell application "Finder"
--activate
set the parent_container_path to (the container of this_item) as text
if not (exists item (the parent_container_path & new_item_name)) then
try
set the name of this_item to new_item_name
on error the error_message number the error_number
if the error_number is -59 then
set the error_message to "This name contains improper characters, such as a colon (:)."
else --the suggested name is too long
set the error_message to error_message -- "The name is more than 31 characters long."
end if
--beep
tell me to display dialog the error_message default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {new_item_name, button_pressed}
if the button_pressed is "Skip" then return 0
my set_item_name(this_item, new_item_name)
end try
else --the name already exists
--beep
tell me to display dialog "This name is already taken, please rename." default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {new_item_name, button_pressed}
if the button_pressed is "Skip" then return 0
my set_item_name(this_item, new_item_name)
end if
end tell
end set_item_name
</pre>

Similar Messages

  • Export Layers To Files - Renaming Script PS CC

    On all previous versions of Photoshop, including CS6 (before the recent update to PS CC), I was able to use the ExtendScript Toolkit to edit the PS preset script that adds naming/numbering sequences to files when running the "Export Layers to Files" script. For PS CS 6, I edited the script to remove the automatic naming/numbering of exported layers by editing the following in ExtendScript Toolkit:
    In ExtendScript Toolkit CS6 open the Export Layers to Files.jsx (applications/adobe photoshop cs6/presets/scripts/export layers to files.jsx)
    on line 1030:
    change:
    fileNameBody += "_" + zeroSuppress(i, 4);
    to:
    //fileNameBody += "_" + zeroSuppress(i, 4);
    on line 1031:
    change:
    fileNameBody += "_" + layerName;
    to:
    fileNameBody += "" + layerName;
    This solved my problem and allowed PS to export my layers to files, keeping the layer name as the filename without adding any naming or numbering sequences to the filename. However with the recent release of Photoshop CC, the script change above does not work. It looks as though there are some new lines of scripting with Photoshop CC and I would love to know what else I need to change to prevent PS CC from renaming files when using the Export Layers to File script. Without the ability to change this, I will have to go through numerous steps in bath rename in Bridge, which when working with 100's of files with different naming structures would totally slow down my workflow. Any ideas on what to update in the Photoshop CC Script to fix this? Thanks so very much!

    Welcome to the forum.
    You would maybe be better served asking in the PhotoShop Scripting Forum
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    Or even here:
    http://www.ps-scripts.com/bb/index.php
    In general, I think there were changes across the board with the scripting in CC that broke things in PS, IL, ID, etc. I have seen it in both the Illustrator and InDesign scripting forums, previous scripts no longer work as before or are broken, features removed, etc. Sad but true.

  • Need help with simple folder action or script

    I have created an export preset in Lightroom that exports images to a folder called "To Email" on my hard drive, and then automatically attaches those images to a new email in my email client (Mailplane).
    It's a great solution that allows me to send a photo via email with one click from Lightroom. However, I want to take it a step further by creating a folder action or script that automatically deletes the image after it is attached to the email. This will allow me to put the folder somewhere deeper in my file system without having to worry about cleaning it out all the time.
    Unfortunately, I have no experience with Automator or AppleScript. Can you help? Thanks.

    I think you need to rework elements of your workflow.
    For example, you say the export preset creates and sends the email.
    If this is the case, the the logical place to make your change would be to edit that preset action (I don't have Lightroom to know whether this is an option there or not).
    The problem with using a Folder Action is that the Folder Action will trigger when the file is dropped in the folder, but that will be before the email is generated or sent, so you run the risk of deleting the file before it's sent.
    So if you can't edit the export preset to do the deletion I would suggest decoupling the 'send an email' and 'delete file' elements from the Lightroom action - in other word change Lightroom to just export the file, and have a separate folder action that triggers when files are added to that folder. The folder action script can take care of generating the email and sending it out, knowing when the email is sent and therefore when it's safe to delete the file.
    WIthout seeing more of the current workflow it's not easy to be more specific.

  • Small metatag / file renaming script: what "stuff" should I be using?

    Hi!
    I need a small script that moves all videos, images and other files in a folder to
    ./year-month/day-hour-minute-seconds_originalfilename.ext
    The date/time is supposed to come from the meta tags if the file has its own timestamp and from the file stats (creation date) if no meta data is available.
    Now, this is how I would usually do something like this:
    1) Install exiv2 and mediainfo and various other cli-tools that can extract timestamps from file meta data.
    2) Mess around with those programs until after piping the output trough about 200 grep's and sed's I get a line of bash for everything I need.
    3) Stick those lines together somehow into one huge mess consisting basically of just one single giant line of bash that inexplicably does the job
    4) Instantly forget how it works and somehow accidental mess up my whole system the next time I try to modify & execute the script.
    I already almost finished a bash script that works like that. And broke it. And don't understand how it works any more, so I was about to start over... but at the moment I guess I might have just enough spare time to do it right instead... so...
    - What's would be the "right" way to do something like this?
    - Should I just learn how to use functions instead of pipes or forget about bash and try python?
    - Still use regex to fiddle it together or use something that can handle date/time as actual date+time instead of putting it into a string?
    - Use various external tools (like exiv2 and mediainfo from the repos) or take something that has... uhm... API's or something... to handle... tag stuff itsself?
    - What language / tools / methods would a programmer that knows all there is to know choose for a job like this?
    I've written a lot of small scripts and a few "programs" in the past but never really got around to learn programming... for some reason I just got used to do everything I needed with only a few functions, loops and a lot of trying around + copy&paste somehow even if the code gets insanely awkward & impractical... so... I have no idea where to start looking for a "good" solution to this problem.
    Any hints?
    Thx!

    Argh, I tried - seems to work but I made a mess again and just looking at it confuses me. It's not as bad as usual, but still...:
    (replaced the mv's + mkdir's by echo's for "debugging" purposes:)
    #!/bin/zsh
    pushd "$1" && {
    basefolder=$(readlink -fn "$1")
    find ./ -type f -print0 | sort | while read -d $'\0' file
    do
    echo -n "#"
    unset year minute hour day month TIME second newname fname dname debout part1 part2 part3
    fname=$(basename "$file")
    dname=$(dirname "$file")
    filethm=$(echo $file | sed "s/...$/THM/")
    file "$filethm" | grep -q "image" && {
    exiv2 pr "$filethm" | grep -a stamp | sed "s/.*\(....:..:.. .*\)/\1/" | sort | grep -Ev "[[:alpha:]]" | head -n1 |\
    IFS=" -:" read year month day hour minute second bla bla bla;
    debout="INFO for $file pulled from $filethm: $year-$month-$day $hour-$minute-$second"
    part1="$year-$month-$day"
    part2="$hour-$minute-$second"
    echo "$part1 - $part2" | grep -q -E "^[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] - [0-2][0-9]-[0-5][0-9]-[0-5][0-9]" ||\
    file "$file" | grep -q "image" && {
    exiv2 pr "$file" | grep -a stamp | sed "s/.*\(....:..:.. .*\)/\1/" | sort | grep -Ev "[[:alpha:]]" | head -n1 |\
    IFS=" -:" read year month day hour minute second bla bla bla;
    part1="$year-$month-$day"
    part2="$hour-$minute-$second"
    echo "$part1 - $part2" | grep -q -E "^[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] - [0-2][0-9]-[0-5][0-9]-[0-5][0-9]" ||\
    mediainfo "$file" | grep -q date && {
    mediainfo "$file" | grep -a date | sed "s/.*\(....-..-.. .*\)/\1/" | sort | grep -Ev "[[:alpha:]]" | head -n1 | IFS=" -:" \
    read year month day hour minute second bla bla bla;
    unset IFS
    part1="$year-$month-$day"
    part2="$hour-$minute-$second"
    part3=$(echo $fname | sed "s/^[0-2][0-9]-[0-5][0-9]-[0-5][0-9]_//");
    echo "$part1 - $part2" | grep -q -E "^[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] - [0-2][0-9]-[0-5][0-9]-[0-5][0-9]" ||\
    debout="$debout No meta data for $file ($part1-$part2), taking creation date + filename: "
    # Get year-month-day
    part1=$(stat -c%y "$file" | awk -F " |:|\\\.|-" '{printf $1"-"$2"-"$3}')
    # Get hour-minute-second
    part2=$(stat -c%y "$file" | awk -F " |:|\\\.|-" '{printf $4"-"$5"-"$6}')
    debout="$debout ${part1}/${part2}_${part3}";
    # Destination filename
    newname=./${part1}/${part2}_${part3};
    [ "$newname" != "$file" ] && {\
    echo $debout;
    if ! [ -d $(dirname "$newname") ]
    then echo mkdir -p $(dirname "$newname") -v
    fi
    echo mv "$file" "$newname" -v --backup=numbered
    done
    popd
    Also, for some reason it doesn't work with bash. Only zsh. No idea why.
    I just have accumulated too many bad habits with bash I guess... Any hints on how I should proceed now?
    Throw the whole script away and try to learn python? xD
    Last edited by whoops (2012-11-30 14:05:33)

  • Bridge CS6 crashing when there is a GIF file in the folder.

    Out of the box, Adobe Bridge has been crashing "randomly" when opening folders.
    To pinpoint the cause of the crash, I created a new folder and dragged the files one by one from one of the other folders that crashed Bridge.
    It all works fin until I drag a GIF file, then it just stops responding and crashes immediately.
    I have tried with several different GIF files, and they all seem to crash Bridge.
    Any ideas of any settings to stop this from happening?
    I, of course, need to work with gifs, so filtering those out is not a solution.
    Thanks!

    THanks for your answer,
    It seems to be any gif causing the crash, at least I haven't found one that doesn't crash it so far, here's an example:
    It doesn't have to be animated either. Still gifs crash it too.
    I'm using Windows 7 Enterprise, Service Pack 1, 64-bit OS, 24Gb RAM, Intel Core i7 CPU, I have a GeForce GTX 590 video card. I have a similar setup at my home office, and bridge seems to work just fine there (with the same files even).
    I searched around here and I found issues popping up with Bridge and GIFs, but nothing answered or exactly like my problem. Weird.
    Is there a way for Bridge to not try to render GIFs, but still show them so I can change metadata, open them in PS, etc?

  • Almost there! Need a little help with CSS Menu

    Hi folks,
    I am almost there with a menu system.  The problems I discovered were mostly to do with layout.css nav elements interfering with my custom code.   http://bendannie2.businesscatalyst.com/flexi2.html 
    Here are the problems I can't seem to resolve.
    There appears a red diamond list element and I can't seem to remove it or find it in the Inspector on any css link
    the secondary menus blink and are hard to select on hover over tertiary menus (see On Sale>Cartier> )
    the tertiary menus are a little crowded towards the secondary menus.
    the css classes in inspector seem to repeat ad infinitum
    Any help most deeply appreciated...
    BTW, it works better on a smart phone!
    Jeff

    Thanks, Don't know why I didn't see that... 
    I'm stil having a problem with the hover area for selecting sub menus... The problem appears to be the js, I think!, I'm not qualified to analyze jquery. 
    The behaviors are as follows:
    The On Sale submenus stay active even when you roll off that menu and select another.
    The hover area after the first scrollover appears to be below the existing text of the top level and not on the text itself.
    there is something going on as you scroll down  through the submenus where they are blinking on and off as you pass each sub tab...   This uses jQuery 1.7.2, so if that has been fixed in a later edition, I don't know... 
    Perhaps it is the way I set the CSS but I didn't, to my knowledge, change a hover/selection area for the menus...
    TIA,
    JEff

  • What are the folder/file names of PSE12 catalogs?

      I'm curious about what files/folders are created by PSE 12 when setting up the original catalog and then each subsequent catalog.  Also, what files/folders are created for the PSE backup and is there a default folder/file structure tied to the catalog - or is it wholely separate?

    LinusF wrote:
    I "know" about the Program Data ....catalogs/[my catalog] location.  Is there any file necessary to the catalog which is NOT there?
    The catalog folders contain everything that is necessary for the organizer. The only thing you might consider is to take a note of your preferences settings. The backup folders also contain everything necessary; the only difference is that it may take some time to rebuild the 'cache' files automatically after the restore.
    Put another way, I am moving many, many files off my current C: drive in order to install an SSD.  I want to make super sure that I catch everything PSE may have stashed here and there and get it out to "safety" before reformatting this disk.  Thanks for all the help you've been along the line.
    The backup and restore process is highly recommended in your situation, but generally it's not the only way to 'move' catalogs and media libraries. Let's say you have all your media files under a single master folder such as 'My photos', you can use the Folder view (left panel) to drag and drop on another external or internal drive. Your catalog is then updated for the new location.
    - advantage : you can check the transfer immediately
    - drawback : you must be patient...
    That's for transferring your media library, now you can also move your catalog folder, either manually or by using the catalog manager 'move' option.
    So, the backup/restore process is not the only way.
    If you want to keep only your Elements program on the SSD, I would not store the catalogs there, I'd store the catalogs in custom location in your old reformatted internal drive. You'll need an external drive for the backup. Alternatively, you could move library and catalogs to the external drive, and back to the old reformatted drive as explained above. You might even use the external drive for both purposes...

  • My iPod no longer appears as  folder/file in Itunes when connected.  Library, genius, playlists, etc.  are present, but there is no longer cross reference with the iPod itself.  Help!?

    My iPod no longer appears as  folder/file in Itunes when connected.  Library, genius, playlists, etc.  are present, but there is no longer cross reference with the iPod itself.  Help!?

    I just tried it again and this time a different message showed up "The iPod 'name' cannot be synced. The required folder cannot be found." I have no clue what folder it could be talking about.

  • I do not have a custom ringtone folder in my iphone 5.  I have gone to settings ringtones and there is no folder. In iTunes I have created the file and changed to M4r.  The song is less than 20 seconds.  I have synced my iPhone with iTunes but no folder.

    How do I make a folder in my Iphone 5 for custom ringtones?
    I have made it a m4r file that is less than 30 sec. Synced phone with the latest version of iTunes.  They show up in itunes as custom ringtones but there is no folder on my iPhone 5. Thanks!!!

    ping209 wrote:
    Yes it is> Does that make a difference?
    Yes, it has to be smaller than 35 seconds.
    Enjoy your ringtone.

  • File renaming to bottom of folder structure

    Hi All;
    Scripting dummy here. Have used the built in "Replace Text in Item Names.scpt", but it only searches into the top level of the open folder.
    Is there a command I can insert into this script that will make it search all files, sub-folders and sub-files within the main, open window??
    If not, anyone have a script that would work. scripting.net and third party apps are not an option.
    Have THOUSANDS of proposal files that need to be renamed to Bill Gates liking so they can be placed on server! Thanks for the help!

    You don't say much about how you'll replace the names or what's wrong with them, but this will drill down through nested folders to process every file (and I apologize to whomever wrote it or I'd give credit where due):
    to drilldown(afolder)
    tell application "Finder"
    set file_list to files of a_folder
    set folder_list to folders of a_folder
    end tell
    repeat with i in file_list
    processDrilledDownFile(i)
    -- relieve the script by handling the found files first,
    -- before diving deeper into the recursion with the found folders,
    -- as this will minimize occurences of a stack overflow
    end repeat
    repeat with i in folder_list
    drill_down(i) -- diving into the recursion with the found folders here
    end repeat
    end drill_down
    on processDrilledDownFile(a_file)
    -- a_file is passed on to the processDrilledDownFile handler as a Finder file object
    -- so it must be further processed starting from within a "tell application Finder" block
    tell application "Finder"
    beep
    activate
    reveal a_file
    -- replace the 3 lines above with your own file processing code
    end tell
    end processDrilledDownFile
    drill_down(choose folder)

  • Trying to backup one of my iPhoto libraries I keep getting a error message that basically says that the file could not be backed up because there is another file on the external drive with the same name, etc. There is no other file.

    While trying to copy one of my iPhoto libraries to an external hard drive I get the following error message "You can’t copy “iPhoto Library old” because it has the same name as another item on the destination volume, and that volume doesn’t distinguish between upper- and lowercase letters in filenames." There is no other file on the external drive with this name. I have asked this question before and was told that there are some duplicate photos (files) in my library and I needed to go to "show file contents" and look at certain files to find duplicates and delete the duplicates. I did all of this and the library will still not copy and always stops copying in the exact same place on each attempt. Any help would be greatly appreciated.

    You've been deleting your actual Photos.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Best way forward now is to recover the surviving Originals from this library and start over from scratch.
    Regards
    TD

  • Create folder / file icon with automator

    Guys,
    I know very little about using Automator.
    I was wondering if there is a way to create folder / file icons using automator to take an image of the contents of the file (maybe an image file / autodesk or sketchup drawing etc). The process would be similar to the way image files such as jpeg etc display the image as the file icon automatically.
    Hope this makes sense.
    Cheers....Scotty

    Have you considered using rsync?  This has the benefit of only copying only changed files on subsequent backups.
    Here's rsync wrapped in Applescript:
    set SrcDir to (choose folder with prompt "Please select Source directory")
    set DestDir to (choose folder with prompt "Please select Destination directory")
    set SrcDir to text items 1 thru -2 of POSIX path of SrcDir
    do shell script "/usr/bin/rsync -aHE --delete --exclude=\"*.mpg\" " & space & SrcDir & space & POSIX path of DestDir
    For a list of rsync options, in Terminal, enter: man rsync.

  • Create new folder with name of file?

    I am generating about 20 files from a 3d model. I open the model let's say the name is "delorean" then I want to create a new folder with all the generated files. I'm using a watch me Do to generate the files. The watch me do will save them in whatever folder I specify ahead of time. Should I just specify new folder each time, then rename it with the file name afterwards? If so how do I get the original file name so that I can use it to rename the file. Is there an example of doing something like this somewhere?
    Thanks.
    This forum is great.
    Dan

    I am going to guess that you start off with a single file - what are you doing to generate these files? My *Get Names of Finder Items* action can get a name to use in the *New Folder* action - items passed to the New Folder action will get copied to it, so a little more detail may help in creating the workflow.
    The *Dispense Items Incrementally* action can also be used to dole out the items one at a time - knowing what the workflow is doing would help with the use of this action as well.

  • Multiple files with same name--- automatic renaming option??

    I am trying to sort my files by adding multiple files to a single folder. However, many have the same filename, and I get the error " there already exists a file with the name "x", please choose another name" etc. I am dealing with thousands of files here that are very tedious to rename individually. Is there an option or program that either disables this block on multiple files with the same name in a common folder, or automatically renames the files as they are placed in the folder?

    i would like all the files to have different names, but not have to do it myself. they are generated my my audio recorder, which automatically names files take1, take2, take3 etc. multiple sessions entail multiple folders, i am trying to consolidate.

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

Maybe you are looking for

  • Fixed vendor on PR not copied to PO

    Hi, I have a third party process where the purchase requisition was automatically created with a fixed vendor which was picked up on PR because info record is maintained. No source list is maintained for this material. When the PO was auto-created fo

  • Fonts in Mac Mail

    I can't get mac mail to retain my selected font settings in new messages I compose. I can select font settings while composing a message but it reverts to the default settings for any subsequent emails.

  • Setup my iphone to my laptop

    How can i setup my iphone for the 3G network with my laptop or how can i use it to connect?

  • Disabling Option-Delete command

    I'm in the habit of using Option-Delete as a way of deleting an entire word at once.  In Bridge, however, Opt-Delete is the command to assign all selected photos a rating of "Reject."  Is there a way to disable this key command so I don't inadvertant

  • Toolbar Disappears (Template Form 6i)

    Hi Friends and Forms Product Management Team, My problem is, in my custom form 6i (using template 11i), toolbar disappears whenever error message window displayed. This started after making few changes to this form. Let me give you brief about this f