The DAM Forum
Welcome, Guest. Please login or register.
October 24, 2014, 04:04:14 PM

Login with username, password and session length
Search:     Advanced search
28019 Posts in 5139 Topics by 2910 Members
Latest Member: kbroch
* Home Help Search Login Register
+  The DAM Forum
|-+  Software Discussions
| |-+  Scripting
| | |-+  AppleScript and writing XMP files
« previous next »
Pages: [1] Print
Author Topic: AppleScript and writing XMP files  (Read 5558 times)
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« on: April 22, 2008, 04:55:19 AM »

Anyone here know anything about write in Applescript and particularly about XMP sidecar file encoding?

I am developing a client script that uses write to generate XMP sidecars from the host application (Extensis), and I think it is generating valid files with the correct xmp syntax, but I can't get Adobe apps or iView to read what's in the sidecars. A key line from the script is:

write txtData to xmpfile as Unicode text starting at eof

I think the problem is something to do with encoding, but I don't understand that area and can't work out what encoding Adobe uses for xmp, or the as expression I'll need to script it.

Anyone here know?

John
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #1 on: April 22, 2008, 07:55:29 AM »

Seems to be UTF8, and my script's key line should read:
write txtData to xmpfile as «class utf8» starting at eof

Only remaining problem is an odd file locking issue. I can generate the sidecar from Portfolio, read it in Bridge, but metadata updates in Bridge aren't getting written to the file. I've a couple of close access file lines - any other ideas appreciated.


John
Logged
Ian Wood
Newbie
*
Posts: 17


View Profile
« Reply #2 on: May 06, 2008, 02:03:59 AM »

Have you looked at using EXIFTools to write the XMP file?

Ian
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #3 on: May 06, 2008, 02:13:03 AM »

Not for this, though I have messed around with it in the past (and been put off by the somewhat obscure documentation). Interesting suggestion though.

John
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!