Forenindex » Programmierung/Entwicklung » AppleScript » [iMagine Photo] Farbraum einer EPS Datei

[iMagine Photo] Farbraum einer EPS Datei

Anonym
Beiträge gesamt: 22827

2. Feb 2009, 09:39
Bewertung:

gelesen: 1397

Beitrag als Lesezeichen
Guten Morgen zusammen,

ich möchte gerne mit AppleScript den Farbraum verschiedener Bilder ermitteln, was mit image-events bei tif und JPEG Bildern auch wunderbar funktioniert.
Allerdings haben wir auch viele EPS Daten mit denen das leider nicht funktioniert.

Anscheinend kann das Programm iMagine Photo dagegen sehr wohl auch mit EPS Bildern umgehen. Nun versuche ich verzweifelt mit Applescript und iMagine Photo den Farbraum einer Bilddatei zu ermitteln, scheitere aber an der Syntax von iMagine Photo. Kann mir vielleicht jemand auf di Sprünge helfen?

Mein Skript sieht bisher so aus:

tell application "iMagine Photo"
    set imageFile to choose file with prompt "Choose an image file to import: "
    set thisImporter to import graphic imageFile
    set colorSpace to {{"Color Space"}} of thisImporter
    colorSpace
end tell

Gruß, Andreas

[iMagine Photo] Farbraum einer EPS Datei

Hans Haesler
  
Beiträge gesamt: 5826

2. Feb 2009, 10:53
Bewertung:

gelesen: 1396

Beitrag als Lesezeichen
Hallo Andreas,

in Deinem Script habe ich {{"Color Space"}} durch color space ersetzt:
---
tell application "iMagine Photo"
   set imageFile to choose file with prompt "Choose an image file to import: "
   set thisImporter to import graphic imageFile
   set colorSpace to color space of thisImporter
   colorSpace
end tell
---
Wenn eine CMYK-TIFF-Datei ausgewählt wird, dann ist das Ergebnis: cmyk

Mit einer EPS-Datei aber: «constant ****????»

Gruss, Hans