• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ICC Profile Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICC Profile Name


  • Subject: Re: ICC Profile Name
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 11 Jan 2010 15:52:06 +0100


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

  • Follow-Ups:
    • Re: ICC Profile Name
      • From: "Fleisher, Ken" <email@hidden>
References: 
 >ICC Profile Name (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: ICC Profile Name
  • Next by Date: Re: ICC Profile Name
  • Previous by thread: ICC Profile Name
  • Next by thread: Re: ICC Profile Name
  • Index(es):
    • Date
    • Thread