ICC Profile Name
ICC Profile Name
- Subject: ICC Profile Name
- From: "Fleisher, Ken" <email@hidden>
- Date: Mon, 11 Jan 2010 09:37:03 -0500
- Thread-topic: ICC Profile Name
Title: ICC Profile Name
Hello. I am trying to get the name of an ICC profile (the text in the description tag, not the file name). I have tried ColorSyncScripting and Image Events, but I cannot seem to get either to report the internal profile name. Here is what I have tried.
tell application "Finder"
set pr to folder "Profiles" of folder "ColorSync" of folder "Library" of home as alias
end tell
set printerProfile to (choose file with prompt "Select the printer profile for the paper you will be printing on:" default location pr without invisibles, multiple selections allowed and showing package contents)
tell application "ColorSyncScripting"
set theProfile to open printerProfile
name of theProfile
end tell
Unfortunately, I get the following error:
tell application "ColorSyncScripting"
open alias "MacPro HD:Users:k-fleisher:Library:ColorSync:Profiles:PGPP 4880 (PR-3)_v1.icc"
"The variable theProfile is not defined."
If I try just getting the name of printerProfile, it just returns the file name, not the text of the description tag. The dictionary entry for “name” says:
profile n : Every profile
elements
contained by application, images.
properties
...
name (text) : the description text of the profile
Can anyone please tell me how to do this?
Thanks in advance!
Ken
--
Kenneth N. Fleisher
Photographer
Imaging & Visual Services
National Gallery of Art
6th Street & Constitution Avenue, N.W.
Washington, D.C. 20565
Phone: (202) 712-7471
email@hidden
Mailing Address:
2000B South Club Drive
Landover, MD 20785
P Please consider the environment before printing this email
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden