Welcome,
Guest
. Please
login
or
register
.
May 18, 2013, 06:18:01 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Jan 9, 2012
John Beardsworth's new Lightroom site
Lightroom Solutions
27960
Posts in
5113
Topics by
2914
Members
Latest Member:
imthedamstar
The DAM Forum
Software Discussions
Scripting
EM Script: Replace IPTC Description with Headline filed
« previous
next »
Pages:
[
1
]
Author
Topic: EM Script: Replace IPTC Description with Headline filed (Read 1583 times)
JasonTinacci
Newbie
Posts: 7
EM Script: Replace IPTC Description with Headline filed
«
on:
July 10, 2009, 09:44:51 AM »
In case anyone is interested...
I created a script for Expression Media 2 that replaces the IPTC description with the headline. It's been tested and works on EM2 service pack 2 on WinXP pro machine.
How to use it
Copy the following bold red text into a new NotePad or text editor file:
'========================================================================================
'Replaces IPTC Description with IPTC Headline text
'by Jason Tinacci 7/9/2009
'version 1.0
'Loops through selected media items and replaces description with headline
'========================================================================================
Option Explicit
Dim app, mediaItems, mediaItem, strText
Dim L_title_text, L_message1_text, L_message2_text, L_message3_text
L_title_text = "Microsoft Expression Media"
L_message1_text = "Please launch Microsoft Expression Media."
L_message2_text = "You need to select at least one media item in the active catalog in order to use this script."
L_message3_text = "This script will copy the headline to the description, for each selected media item."
' display an about box
If (MsgBox(L_message3_text, 65, L_title_text) = vbOk) Then
Main()
End If
Sub Main()
Set app = CreateObject("ExpressionMedia.Application")
' get the active catalog
If (app.Catalogs.count = 0) Then
MsgBox L_message1_text, vbCritical, L_title_text
Elseif (app.ActiveCatalog.Selection.Count = 0) Then
MsgBox L_message2_text, vbCritical, L_title_text
Else
For Each mediaItem In app.ActiveCatalog.Selection
strText = mediaItem.Annotations.Headline
If (strText <> "") Then
mediaItem.Annotations.Description = strText
End If
Next
End If
End Sub
'========================================================================================
Save file as "Headline to Description.vbs" to \Program Files\Microsoft Expression\Media 2\en\Plug-ins\Scripts\Annotate\.
Open EM2. Select images you want to edit. Go to Scripts > Annotate > "Headline to Description" from the menu bar to replace the description text with the headline text.
That's it.
- Jason
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> DAM Workshops
=> Comments about the book
=> General Discussion
=> Photo Blogs
=> GPS/ Geotagging
=> dpBestflow.org Discussions
-----------------------------
DAM Useful Stuff
-----------------------------
=> DAMuseful Video training
=> DAMuseful Software
=> DAM Useful CS3 Beta Products
-----------------------------
Software Discussions
-----------------------------
=> RAW File Converters
=> Lightroom
=> Choosing Software/Other DAM Applications
=> Aperture
=> Bridge/ Camera Raw
=> Media Pro & Expression Media
=> iView MediaPro
=> ImageIngester and ImageVerifier
=> idImager
=> Import From Camera
=> Scripting
-----------------------------
Workflow Discussions
-----------------------------
=> Multi-User Configurations
=> High Volume
=> Stock Photography
=> Wedding Workflow
=> Tethered Shooting
-----------------------------
DAM Stuff
-----------------------------
=> Loss and Recovery
=> Keywords and Controlled Vocabulary
=> Naming Issues
=> Migration Issues
=> Scans and Camera Scans
=> DNG
=> Software Discussions
=> Hardware Discussions
=> Backup Strategies and Tools
=> Data Validation
Loading...