Batch layer renaming
Hi there,
I've run into a little problem moving forward with a project, I've got quite a few files, each of them has about 15 layers.
These layers contain underscores "_" in the name, which all need to be replaced with a hyphen "-".
Is it possible to have a script do this? And if so, how would I go about writing one? Or even better - could I get one that is already written!
Thanks a bunch.
i·ro·ny
/ˈīrənē/
The expression of one's meaning by using language that normally signifies the opposite.
In this case, W_J_T said:
W_J_T wrote:
Maybe this will help get you started:
When he has written precisely the script I asked for - thus finishing what I had set out to achieve.
hence irony.
But thank you for your contribution.
Similar Messages
-
OS X Yosemite 10.10.2, Macbook Air,
Finder batch file rename function. I have multiple files I want to rename, that have a date in their name in the mm/dd/yy format. The slashes seem to freak out the batch rename function and it won't work. I took out the slashes and worked fine. Any workarounds that would help me avoid manually changing each name? I should point out that I want to leave most of the name intact just change the first word in each name. Also the files I'm working with are in PDF format.That's a comment in the file. It has no effect at all.
-
Beyond knowing that such a facility exists, I have no knowledge about Bridge scripting. Can it be used to modify the standard batch file rename process in Bridge?
I would like to rename my Canon Raw images with the date (from EXIF Date Digitised) and a sequence number that resets to zero for each new date. This sequence number should accurately reflect the order in which the images were taken (via the time component of EXIF Date Digitised). I would also like to process all files in a subdirectory structure at the same time.
The standard Bridge batch rename process does not offer a counter that resets for each new date, nor does it seem to allow processing files in more than one folder at a time.
Can this be done? Do such scripts already exist? Alternatively, are there any commercial software utilities that can do this? I am already aware of a freeware solution called DIM but am a little worried about putting my faith in something with no guaranteed ongoing support - a concern that would be addressed by a script I can control myself or a properly supported commercial solution.Hello? Hello? Is there anyone there?
Have I posted this question in the wrong forum or is everyone on vacation? -
Hello Everyone,
I was wondering if there's a way to do a batch file rename, I
have a bunch of files that has to be renamed from _e to -eng for
example if the file is index_e.html I want to change it to
index-eng.html and update the linked files as well, I'm currently
doing it one by one using Dreamweaver but is inconvenient.
Is there a way to do that in Dreamweaver and save the typing?
ThanksJagar_ wrote:
> Is there a way to do that in Dreamweaver and save the
typing?
Unfortunately, no. You could use Find and Replace with a
regular
expression to change the links, but you still need to change
the file
names individually or in a third-party program.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Batch Resize, Rename & Watermark
Hi, I was just wondering if you can batch resize, rename & watermark with Aperture? If not then can anyone recommend a piece of software that does have these features?
"Exporting versions" in Aperture is the 'batch resize' as well as the 'batch rename' function all in one. When you choose to export a batch of images, a dialog box will appear with naming options as well as sizing options (as well as tons of other options).
I have changed my presets to reflect the size i need on export, then i choose that preset from the export dialog box when it's time to export. I'm pretty sure you can export with a watermark, although I'm not sure.
I have used TONS of different options to rename and resize, not to mention editing. Aperture does it all. Watch the tutorials, once you get a handle how Aperture works, you will not need anything else. -
Reworking Photoshop layer renaming script for Illustrator
The Photoshop scripting guru Paul R over at RetouchPro has created a really cool script to batch rename and number selected Photoshop layers. I haven't found anything similar on the Illustrator side.
He's given permission for me to post it here in my hopes that some Illustrator scripting genius could come up with a similar script for Illustrator. Would it be terribly difficult to convert this into something Illustrator could use?
http://www.mediafire.com/file/g7usr73u0236p0a/Rename_&_Renumber_Selected_Layers.jsx
http://www.mediafire.com/file/dbah74x13bsa74c/Rename_&_Renumber_Selected_Layers.jsx.zipHola Julio, I updated the script to rename visible Layers or Sublayers, and also fixed the Color
#target illustrator
main();
function main(){
if(!documents.length) return;
//var allLayers = app.activeDocument.layers;
var win = new Window( 'dialog', '' );
g = win.graphics;
// var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]); // CS5
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.50, 0.50, 0.50, 1]); // CS6
g.backgroundColor = myBrush;
win.orientation='stack';
win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
win.g1 = win.p1.add('group');
win.g1.orientation = "row";
win.title = win.g1.add('statictext',undefined,'Rename Visible Layers or Sublayers');
win.title.alignment="fill";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
win.g5 =win.p1.add('group');
win.g5.orientation = "column";
win.g5.alignChildren='left';
win.g5.spacing=10;
win.g5.st1 = win.g5.add('statictext',undefined,'New layer name');
win.g5.et1 = win.g5.add('edittext');
win.g5.et1.preferredSize=[250,20];
win.g10 =win.p1.add('group');
win.g10.orientation = "row";
win.g10.alignment='fill';
win.g10.spacing=10;
win.g10.st1 = win.g10.add('statictext',undefined,'Serial Number');
win.g10.et1 = win.g10.add('edittext',undefined,'1');
win.g10.et1.preferredSize=[50,20];
win.g10.et1.onChanging = function() {
if (this.text.match(/[^\-\.\d]/)) {
this.text = this.text.replace(/[^\-\.\d]/g, '');
win.g10.st1 = win.g10.add('statictext',undefined,'Length');
var nums=[2,3,4,5];
win.g10.dl1 = win.g10.add('dropdownlist',undefined,nums);
win.g10.dl1.selection=0;
win.g15 =win.p1.add('group');
win.g15.orientation = "row";
win.g15.alignment='fill';
win.g15.cb1 = win.g15.add('checkbox',undefined,'Reverse layer order');
win.g15.cb2 = win.g15.add('checkbox',undefined,'Rename Sublayers Only');
win.g100 =win.p1.add('group');
win.g100.orientation = "row";
win.g100.alignment='center';
win.g100.spacing=10;
win.g100.bu1 = win.g100.add('button',undefined,'Rename');
win.g100.bu1.preferredSize=[120,30];
win.g100.bu2 = win.g100.add('button',undefined,'Cancel');
win.g100.bu2.preferredSize=[120,30];
win.g100.bu1.onClick=function(){
if(win.g5.et1.text == ''){
alert("No layer name has been entered!");
return;
win.close(0);
var sublayersOnly = win.g15.cb2.value;
var visibleLayers = [];
getVisibleLayers (app.activeDocument, visibleLayers, sublayersOnly);
if(win.g15.cb1.value) visibleLayers.reverse();
for(b=0; b<visibleLayers.length; b++){
var LayerName = win.g5.et1.text + zeroPad((Number(win.g10.et1.text)+Number(b)), Number(win.g10.dl1.selection.text));
visibleLayers[b].name = LayerName;
win.center();
win.show();
function getVisibleLayers(container, visibleLayers, sublayersOnly) {
for(var a=0; a<container.layers.length; a++){
var ilayer = container.layers[a];
if (ilayer.visible) {
if (sublayersOnly) {
getVisibleLayers (ilayer, visibleLayers, false); // false to process only 1 sublayer depth
else
visibleLayers.push(ilayer);
function zeroPad(n, s) {
n = n.toString();
while (n.length < s) n = '0' + n;
return n; -
I'm using Aperture (which has a fairly steep learning curve for me). I'm frustrated with how difficult it is to rename jpg files. I'm a former Windows user and this is the only regret I have about changing from Windows to Mac. In Windows you can select all, rename. That's it. The complexity of renaming in Aperture feels beyond my comprehension. Is there a simple way to rename jpg files that I haven't yet discovered?
Use Metadata->Batch Change to change the names of multiple versions and masters.
Crete the name format in the Version Name Format pull down and check the Apply to Master Files if you want to change the name of the master file as well as the version. -
How can I rename a group of files with heterogeneous names?
I have a series of several hundred images, nealy all of which have unique, unrelated names. I want to be able to rename them as a batch so they can be imported into quicktime pro to make a slideshow.
so...
need to chand bob.jpg, sam.jpg, boat.jpg, 3rt56.jpg to a sequence of newname01, newname02, newname03.jpg.
The original image files do not have to be in any particular sequence when they are renamed, so it doesn't matter if boat.jpg or sam.jpg is renamed as newname01 - it doesn't matter what order they are presented in the planned quicktime slideshow.
I don't see an easy way to get automator to do this.
Am I just going to have to bite the bullet and buy an app for this?
Thanks in advance for any help and guidance!Thanks for the fast reply, Macjack. Perhaps my understanding of Automator is too limited, but I don't see a way to completely change file names and to add a numeric sequence on the end of the new file name. The "name changer" freeware also is limited in this regard - I tried it and couldn't get it to do what I need either.
-
Batch file renaming in Aperture??
I have need to rename several files as a batch. Aperture can get me 99% of the way there, but there´s one thing I can´t seem to do...
The naming scheme I need is
[filname]_[yyyymmdd-hhmmss].jpg
Where yyyymmdd is year, month, day and hhmmss is hours, minutes, seconds.
Problem is Aperture puts dashes in the date and time like yyyy-mm-dd and hh-mm-ss. I tried to change is in the ITPC data, but it´s grayed out and says something about needing to be ISO compliant.
All I need to do is have the file creation dates displayed in the filenames without those dashes.
Is this possible?
If so, how?under batch change chose edit under the presets drop down ...
from there create a new by clicking the + in the left side ...
from the choices on the right click and drag them up to the bar above it ... for your yyyymmdd just chose image year, image month, image day(date), putting them right next to each other no spaces, etc ... if you goof click in the bar and hit backspace ...
let me know if i can help more, i can make a screenshot and post it to show exactly if needed ... -
Hai I am creating a Photoshop panel using Adobe configurator4 and i want to do buttons which have name already defined eg Silo, Retouch, Skin etc to rename both single or multiple layer which are selected . There are many script which will open its own window but i dont want that . One i got from this link its for illustrator but it runs in photoshop" https://forums.adobe.com/message/2639824 But its will rename all the layer even if its not selected or it will rename only the layers which are visible. I am not good in Scripting . For now i have created a action script which is simple and connected to the button in Adobe Configurator4 but it will rename only one Can you please help me
You obviously don't know this, but if you option (alt) double click on the layer name, the Layer Properties dialog comes up, allowing you to name the layer in a modal dialog. I also find it easier to rename layers this way. A shortcut can also be set up to bring up Properties.
The History of this was that in Photoshop 6 they made it necessary to rename layers only in the layer properties dialog. But they had too many complants, and in 7 the default went back to the way it is now - renaming using the tiny text in the layers panel- so both methods are now available with the Option modifier. -
Actions ignoring modal control for layer renaming, Photoshop CS6
Hey, everyone! I often run actions that have modal control for certain steps turned on, in particular, when I want to give a layer a custom name. Prior to CS6, I'd run my action, the window would open allowing me to rename my layer, and then it finishes my action. However, in CS6, it seems to ignore the modal control button selected, puts in whatever the default info is and continues on. This hoses quite a few of my actions that I've been using for years. Submit a bug report?
Thanks,
BruceBruce it looks like you found yet an other bug in CS6 please report it at http://feedback.photoshop.com/photoshop_familyhttp://feedback.photoshop.com/photoshop_family
Set current Layer name fials to display its dialog when step is set to display dialog. -
Aperture batch file rename: remove dashes from date?
Just wondering if it is possible to change the format of the date from YYYY-MM-DD to YYYYMMDD when you rename files as they are imported into Aperture 3? I In Aperture 3, the date format used includes dashes. I would like to have the file renamed without the dashes in the date. Is this possible?
This question was previously asked and answered in 2010, however Aperture does not seem to have an option for this it the batch rename edit menu. ThanksIt is not possible in the Aperture naming presets to remove the dashes or in any way change the date format.
The reason is that it is not possible to access the individual components of the date. When you drag an Image Date or Current Date token to form the filename you can't just get the day or the month or the year which is what you would have to be able to do to remove the dashes.
There is no technical reason this couldn't be allowed, Apple has just made the decision that it won't be allowed. You can try sending feedback to Apple requesting this, see Aperture->Provide Aperture Feedback.
It is possible to do what you want either before you import the files or with an Applescript eitehr beforre import or within Aperture.
For doing it before import you would basically copy the image files from the camera card to a folder and then import from there. There are several programs that you could use to do the rename, Name Mangler has been mentioned here a few times. I've never used it so I can;t vouch for it.
As for an in Aperture Applescript solution if you are familair with programming and/or Applescript it isn't to difficult to do but would be easier with some prior knowledge.
regards -
Batch file rename, in current order?
After shooting an event, I normally re-sort the images, as some go together better than others. Ultimately, I'm left with a "Manual" sorting. However, when uploading to Zenfolio, the sorting gets lost. Is there a way to batch rename all files, in current order, in a sequence? i.e. instead of DSC_3045, DSC_3055 to IMG_1, IMG_2?
Yes you could rename the version names so that they are stored this way in Aperture or you could leave the Aperture names alone and just rename on export.
See the file naming presets for options to add a sequence number to the images as well as many other possibilities. -
Hello, I have a semi Doc Mgmt SYstem happening.
Steps are:
scan to a network location.
Run Adobe to regognise text
save into a new location
Then manually come alone and open the file, add comments, mets tags, mark up etc etc. Rename the file, and put in a specific location based on its contents.
I am trying to make a action to do steps 1/2/3 in batch. It seems to work all ok, except if there are files in the new location the same name, and of course I do not want to overwrite them, i have just been lazy and not filed them yet.
Is there a way, I can use JavaScript before step 1, to rename the files in the source location, maybe something like include "YYYY-MM-DD-" at the start of the file name, then they should never have the same file name as a destination file.
thanks
greg
P.S: I am new to Acrobat Pro, as a side question, is there a way to run a Action from outside of Acrobat. i.e. so I dont have to manually launch acrobat, then select my action, I can just run the action Icon or something like that.Hi Dimitri, I looked at this, but it seems to be about stamping the files name, within the contents of the PDF? i.e. stamping.
File Name Stamper
Rick Borstein
Adobe Systems
The Acrobat X File Name Stamper Action automates the process of stamping:
• File Name
• File Name + Date
• Document Title
• User-entered text
Or am I wrong?
thanks
Greg -
I have looked around the Internet for a script that I can drop a folder onto and have it change the name.
At this time I am copy and pasting a job number in front of the folder to give it a job number. There are about eight folders that need a job number. Is there some type of script that you can drop a folder on to and have a symbol changed to a job number in a batch?
Example $ Documents
$ Originals
$ Fonts
ThanksI posted a script to rename folders whose name begin with 0000_
You can easily adapt it for your situation:
http://discussions.apple.com/thread.jspa?messageID=1458495�
Read through the whole thread though, because things are hinged on your folder structure.
Maybe you are looking for
-
I lost my apple tv remote but I want to set up my sell phone to pair with apple tv
-
How do I remove a computer from account?
I have Creative Cloud subscription. I have been using it on a computer and a tablet. I sold my tablet and replaced it with another computer. But when I try to use the computer, it says "number of computers exceeded". How do I remove my tablet, s
-
I confirm my purchase and is then purchase cannot be completed Check apple/iTunes/support
-
Hi Everyone I just received my T440s and the first thing I noticed when I looked at the front of the machine with the lid closed is that the rubber gasket only touches in the corners. There is an increasingly large gap between the lid gasket and the
-
Client Security Solution error - Device not installed
After the latest update, the TV Fingerprint Software version 5.9.5.7038 was installed. Since then, the fingerprint scanner works well to start up, but if I open an Internet Explorer page which is password protected, instead of the scanner coming up,