« [資料]PostScript Printer Description File Format Specification | トップページ | [NSBitmapImageRep]イメージサイズ変更 »

colorSyncProfileのNSDATA取得方法(考え中)


【スクリプトエディタで開く】|

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.8"
use framework "Foundation"
use framework "AppKit"
use scripting additions

property refMe : a reference to current application

set ocidColorSpaceArray to refMe's NSColorSpace's availableColorSpacesWithModel:(refMe's NSColorSpaceModelRGB)
repeat with itemColorSpaceArray in ocidColorSpaceArray
  log itemColorSpaceArray's localizedName() as text
  if (itemColorSpaceArray's localizedName() as text) is "sRGB IEC61966-2.1" then
    set ocidColorSyncProfile to (itemColorSpaceArray's colorSyncProfile())
  end if
end repeat

|

« [資料]PostScript Printer Description File Format Specification | トップページ | [NSBitmapImageRep]イメージサイズ変更 »

AppleScript Color」カテゴリの記事