Welcome,
Guest
. Please
login
or
register
.
May 21, 2013, 10:52:27 AM
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
AppleScript and writing XMP files
« previous
next »
Pages:
[
1
]
Author
Topic: AppleScript and writing XMP files (Read 4806 times)
johnbeardy
Administrator
Hero Member
Posts: 1813
AppleScript and writing XMP files
«
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
Re: AppleScript and writing XMP files
«
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
Re: AppleScript and writing XMP files
«
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
Re: AppleScript and writing XMP files
«
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
]
« 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...