Re: using XMP to record profile conversions (was: Profile Names)
Re: using XMP to record profile conversions (was: Profile Names)
- Subject: Re: using XMP to record profile conversions (was: Profile Names)
- From: Klaus Karcher <email@hidden>
- Date: Sat, 30 Dec 2006 19:36:51 +0100
Roger Breton wrote:
Does anyone know a way to control Photoshops level of detail in
recording history metadata? Any other suggestions?
Thanks in advance,
Klaus
Maybe through Applescripting? Launch a color conversion through some script
that records the details of the conversion in XMP? If this worked, this
would not seem so impractical. Worth investigating, at least.
Yes, I think so: The document's XMP metadata property is marked as read
only, but there is also a XMP metadata object with a "raw data" property
*not* marked as read only. And, indeed a script like this works:
---
tell application "Adobe Photoshop CS2"
tell document 1
tell XMP metadata of it
set rawXMP to raw data of it
end tell
end tell
end tell
set historyStart to (offset of "<photoshop:History>" in rawXMP) + 18
set historyEnd to (offset of "</photoshop:History>" in rawXMP) - 1
set rawXMPStart to text 1 thru (historyStart) of rawXMP
set rawHistory to text (historyStart + 1) thru historyEnd of rawXMP
set rawXMPEnd to text (historyEnd + 1) thru -1 of rawXMP
(* do something useful with rawHistory *)
set rawXMP to rawXMPStart & rawHistory & rawXMPEnd
tell application "Adobe Photoshop CS2"
tell document 1
tell XMP metadata of it
set raw data of it to rawXMP
end tell
end tell
end tell
---
Thanks, Klaus :-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden