Re: ICC Profile Name
Re: ICC Profile Name
- Subject: Re: ICC Profile Name
- From: "Fleisher, Ken" <email@hidden>
- Date: Mon, 11 Jan 2010 09:57:49 -0500
- Thread-topic: ICC Profile Name
Title: Re: ICC Profile Name
Thank you for your reply, but I do in fact have it set to NOT allow multiple selections (there is a list of three properties after “without” which all are set to “false”--that’s just how Script Editor reconfigures the text). If you try the change you suggested you will see that you will get the same result (at least I do).
I forgot to mention I am on OS 10.5.8.
Ken
On 1/11/10 9:52 AM, "Yvan KOENIG" <email@hidden> wrote:
Le 11 janv. 2010 à 15:37, Fleisher, Ken a écrit :
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
As you allowed multiple selections, the result 'printerProfile' is not a pathname but a list and for sure, the open instruction fails.
As you wish to get one profile, it would be useful to edit your code as :
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)
tell application "ColorSyncScripting"
set theProfile to open printerProfile
name of theProfile
end tell
Yvan KOENIG (VALLAURIS, France) lundi 11 janvier 2010 15:51:52
_______________________________________________
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
--
Ken Fleisher
Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.
Phone: (202) 712-7471
email@hidden
_______________________________________________
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