How to rename a file based on XMP values?
I have a file with multiple IDS in the field on the tab information.
I want to rename the file with the values I have in the fields.
For example, with file1.psd:
in the keywords I have: 36607675; 36607675; 20999012; 20999013;
I want to have 5 files at the end:
36607675.PSD
36607675.PSD
20999012.PSD
20999013.PSD
File1.PSD
I tried to create a script using the ScriptingListener plug-in, but he has no works and the generated code is to be a little difficult to understand. He doesn't take care of the metadata to other files...
After that I tried to find some tutorials but evryone try to add XMP data, not get it back to use.
Thanks in advance for your help and best regards
This should make a folder of PSD in Photoshop...
It requires Photoshop CS4 or newer!
#target photoshop app.bringToFront(); main(); function main(){ var selectedFolder = Folder.selectDialog( "Please select source folder"); if(selectedFolder == null ) return; var fileList = selectedFolder.getFiles("*.psd"); for(var a in fileList){ var Keys = getKeys( fileList[a]); for(var k in Keys){ var copyName = Keys[k] + ".psd"; fileList[a].copy(File(selectedFolder + "/" + copyName)); } } } function getKeys( file){ if ( !ExternalObject.AdobeXMPScript ) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript'); var xmpf = new XMPFile( File(file).fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ ); var xmp = xmpf.getXMP(); var arrItem=[]; var items = xmp.countArrayItems(XMPConst.NS_DC, "subject"); for(var i = 1;i <= items;i++){ arrItem.push(xmp.getArrayItem(XMPConst.NS_DC, "subject", i)); } return arrItem; }
Tags: Photoshop
Similar Questions
-
How to rename a file when you move it
How to rename a file when he tries to move it to another directory and it already exists?
I thought I could use a match pattern on the paths of the source and destination, because after a certain point, the path would be the same, and then with another model of correspondence I extract only the name and use a path of construction.
I don't know if it would actually work. Can anyone give me any suggestions?
Thanks in advance!
-
How to rename multiple files with the extension in windows xp
How to rename multiple files with extension in windows XP.
1. If you want to simply rename the extension, open a run window (Windows Logo key + R), type cmd and press ENTER. Using the CD (Change Directory) command, navigate to the folder in question. Now, type ren *.mp3, *.mp4, and press enter (note the two spaces in the command). Note, rename mp3 MP4 is just an example of the command.
2. If you want to rename files, download the 32-bit version or 64-bit Bulk Rename, here http://www.bulkrenameutility.co.uk/Main_Intro.php
-
Hate the new update. I need to rename files and cannot do without using the cloud. Could not sign in the cloud free services. Someone knows how to rename the files with Adobe Acrobat DC? I use a HD with Android corner.
Do you have any file manager installed on your device? This feature is no longer available in the latest version of Acrobat DC but we actively seek to provide the same in one of our future releases. To work around the problem, you will need to duplicate/rename the files using a third-party file manager application.
-
How to rename music files in Vista
In Windows XP, I am able to use Windows Explorer and rename my music files and she uses gracenote to get all the correct information, and he even wrote the tags. I can't do it in Vista, someone tell me how?
Thank you
I'd give a click on the folder that contains the music files and then select Rename or move. It would take me a menu where I can choose how I wanted the files to show, to know the title and artist, and if I wanted the Tags etc, once I hit OK , it would connect via gracenote and rename and date all files as well as fix the tags for the files.
It was all in Windows Explorer? Are you sure it wasn't in WMP?
If it's all the Explorer, then this certainly looks like a third-party plug-in or a program, as Explorer does not have something like the built-in search Gracenote. would it be possible to create a screenshot of this? You can then transfer them to a site like http://imageshack.us of sharing image and post the link here resulting.
Tim Baets
http://www.BM-productions.TK -
I can't understand how to rename a document file that I continue to review. I don't know that I'm missine clearly!
Hi nns.
You work on the file in Acrobat or Reader? If so, it is an easy by choosing File > save as and give the file a new name. Then, you will have two copies of the file: one with the old name and the other with the new. (The same principle contains true is pretty much all applications).
Best,
Sara
-
How to rename multiple files in the XP command prompt
I have several files. I want to Rename these files at once in the command prompt so that these files have become
some easy to use in some applications.name (1) .jpg
name (2) .jpg
name (3) .jpg
name (4) .jpg
name (5) .jpg
name (6) .jpg
name (7) .jpg
name (8) .jpg
name (9) .jpg
name (10) .jpg
name (11) .jpg
name (12) .jpg
name (13) .jpg
name (14) .jpgso I want to rename these files as
1. jpg
2.jpg
3jpg
4.jpg
5 jpg
6 jpg
7 jpg
8 jpg
9 jpg
10 jpg
11 jpg
12 jpg
13 jpg
14 jpgPlease please please... Someone help me to do this...
Thanking you...
Jacky, Bangalore.create a file like x1.bat
off @echo
Set /a counter = 00
for %% in (*.jpg) called X 2. BAT %%d KB-------------------------------------
Create another file as x2.bat
off @echo
call the x 3. BATfile%counter%.jpg Ren %1
-------------------------------------
Create another file as x3.bat
off @echo
Set /a counter = counter % + 1--------------------------
place these files in the directory of the image or file.
then run the file x1.bat
who's going to rename all the files in time sequentially.
I think it will help you to rename several files at once with a dry.
Thank you once more...
If a problem occurs, please answer me.
If I can I'll tell u... -
How to rename multiple files in Windows Explorer with numbers that I choose?
I have Windows Vista Ultimate, when I try to rename several .jpg files, it won't let me choose my starting number. It is automatically defaulted to 1.
Hello
You cannot rename multiple files at once by the design of the operating system. However, try this at your own risk:
http://www.chosensoft.com/batch-file-rename/index.htm
All the best!
-
How to rename a file system per host?
Hi all
I use a code in the Save button to copy and rename a normal system file to some place.
The code copies the file in this location correctly but do not rename the file
Code:
DECLARE
fin_path VARCHAR2 (200);
CONVID PLS_INTEGER;
FIN_NAME VARCHAR2 (300);
BEGIN
commit_form();
fin_path: = 'W:\EMP_PIC '; -the target location
FIN_NAME: = fin_path | ' \'||:ATT_NAME||' ' || : NO. |'. ' || : ATT_TYPE;
-: ATT_NAME the name of the file ex: size
-: no no normal ex: 120
-: att_type ex file type: jpg
IF: ATT_PATH IS NULL THEN
NULL;
ON THE OTHER
GO_BLOCK ('PERSON_DATA');
ConvID: = DDE. App_Begin ("xcopy/y ' ' |: ATT_PATH |" ") » "'|| fin_path | ' ' ' ', DDE. APP_MODE_MINIMIZED); -the file is copied correctly
host (' Rename cmd /c "" |) FIN_NAME |' « ') ; -a not rename the file!
end if;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
END;
Note: I'm using Forms 6ihost (' Rename cmd /c "" |) FIN_NAME |' « ') ; -a not rename the file!
The RENAME command takes two parameters (file to be renamed and the new name) and you had only one. It seems you are trying to combine the old name and the new name in the same setting, but when you RENAME this to the command in Double-quote ("'") operating system treats this as a unique filename with spaces. Try to separate the variable output of file name of the new file name variable. For example:
DECLARE fin_path VARCHAR2(200); old_name VARCHAR2(300); new_name VARCHAR2(100); BEGIN fin_path := 'W:\EMP_PIC'; -- the target location old_name := fin_path||'\'||:ATT_NAME; new_name := :NO||'.'||:ATT_TYPE; ... rest of your code here... host('cmd /c rename "'||OLD_NAME||'" " '||NEW_NAME||' " '); -- the file didn't rename! ...rest of your code here... END;
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
-
How to rename a file flat concatenation date and time, file name?
I created a package where I run a first interface that uses a flat file to a server and load into a table of Teradata.
After using the OdiFtpPut API, I used a FTP file and send to an outfit.
Given that this procedure works every day, I need when FTP get concatenation destination file name, the date and time of execution.
What is the best practice for this?using the odi APIs, you can get the date and time
<%=odiRef.getSysDate("dd_MM_yyyy_hh_mm_ss")%>
To rename, you can use the operating system command or using the command/UNIX windows and rename the file by adding the getsystdate API.
Hope this fixes your condition
-
How to disable a page based on the value of another element on the Page element?
Hello
How can I turn a page element using javascript based on the value of another element on the page?
Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".
How can I do this using javascript. I want this implemt on loading the page.
Kind regards
BenzPut this function in the page header:
and call it in the footer:
f_disable_item;
Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------ -
How to conditionally display images based on the values of the variables
I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.
I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.
Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.
Thank you
Josh
Hello
When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.
However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.
See you soon... Rick
Useful and practical links
Captivate wish form/Bug report form
-
How to show/hide point based on the value of Radiogroup
Hello
I'm having a Radiogroup with a yes/no value.
I have something else to say... P1_TEXT1
I want to show / hide point P1_TEXT1 based on the value selected in the radiogroup.
If I select Yes - agenda should be displayed
If I select non - element should be hidden
I don't want to send the page.
Thank you
Deepakon your page go to edit page under the attribute of the HTML body of the Page then you need to put the following text:
onload="MyFunction;"
You must have tobe your function name Myfunction. Pass the item to your function in your code?
Could you post your code js here and we could have a look for you?
-
How to rename the files already in the catalog?
I accidentally imported a large amount of images in LR 2.5 (on a new Windows 7 machine) using the "Filename" model rather than my customary model 'Date - Filename' and did a LOT of work on the files until I noticed the error. Is there any way I can reapply the model Date-name of the file or otherwise to precede the date (as planned) for the names of files in LR and on my drive in one fell swoop?
Select the pictures, press f2.
-
Follow-up - how can I order lines based on a value from column to HFR
As discussed in my question on queries Top, I have a column that I ordered highest to lowest on a report.
I have now, thanks to mballo, have a column of row (still hidden) as well as the column that contains the values. I have 25 rows. My use of the Rank ([M, 1:25].ifNN(-1), descending) provides values but no order.
How can I get the lines sorted by the values in a particular column, then the first line has the highest value and the rest in descending order?
JIn the property sheet of grid, there is an option "comes out" about 1/2 at the bottom of the page. Once activated it will bring up a window that allows you to apply the sorting. You can take specific lines or all the rows and then apply that based on a column. Or vice versa.
Maybe you are looking for
-
Using the keyboard of the possible t520 in t530
as I have learned that there is no mechanical reason not used keyboardlayout classic of the model 7row in a t530. But what are the effects of bios without being able to support the 7r keyboard? the buttons may not work properly? And just for curiosit
-
I have an old 13-Pavilion x 360 with a 1 TB hard drive 5 400 rpm in it and wanted to know if I could pass it to an SSD. If so are there requirements the SSD must meet (such as under a certain storage capacity) and is there hardware and/or software ad
-
Printer all-in-one HP 5610: 5610 all-in-One prints blank page instead of print job
When you send a print job, I get an empty page instead. I have: Check the ink cartridges Checked the connecction Reinstalled the drivers Don't have a full system reinstall to a date before the start of the problem None of the above works. I even went
-
I can't get the pc to start or can I go to f8
-
Hello We have a set of WAP561s, new brand out of the box, which after a few hours of being powered will no longer respond. They don't respond to pings, and the web interface is not available. However, they always broadcast their SSID - and will allow