AppleScriptColor

[AppleScript]HexColorPicker(Finderスクリプト)

Website_image20120206_205129

Website_image20120206_210634

続きを読む "[AppleScript]HexColorPicker(Finderスクリプト)"

| | トラックバック (0)

[choose color]色を取得する

画像書き出し時の
マットカラーを指定出来るようにするために
色を選ぶため等

色を選びます(RGBだけど)

 


--------RGB16bitColor16bitRGB値を格納
set the RGB16bitColor to (choose color default color {0, 0, 0})

--------RGB8bitColor8bitに変換した値を格納
set the RGB8bitColor to my RGB8bit(RGB16bitColor)


------計算と文字列の整形のサブルーチン
on RGB8bit({rColor, gColor, bColor})
set rColor to (rColor ^ 0.5) div 1
set gColor to (gColor ^ 0.5) div 1
set bColor to (bColor ^ 0.5) div 1
return "{red:" & rColor & ", green:" & gColor & ", blue:" & bColor & "}" as string
end RGB8bit

 

「colorpicker.scpt.zip」をダウンロード[Download]DownloadFile

「colorpicker.rtf」をダウンロード[Download]DownloadFile

   

| | コメント (0)

その他のカテゴリー

Accessibility AccessibilityCheck AccessibilityForm AccessibilityInDesign AccessibilityPDF Acrobat Acrobat Action Acrobat Annotation Acrobat AppleScripts Acrobat Character Acrobat Layer Acrobat PDF Embed API Acrobat PDF Form Print Acrobat Plug-ins Acrobat Portfolios Acrobat Print AcrobatBarcode AcrobatDialog AcrobatForm AcrobatJS AcrobatMenu AcrobatPDF AcrobatStamp AcrobatYouTube AddressBook Adobe Adobe InDesign Adobe Photoshop AdobeAppleScript AdobeBridge AdobeIllustrator AdobeJSX aed Alfresco Android AnimationGif Apple AppleScript AppleScriptBasics AppleScriptCharacter AppleScriptColor AppleScriptDroplet AppleScriptErrorNum AppleScriptFolder AppleScriptFontBook AppleScriptRename AppleScriptTools AppleSymbols Applications Barcode Barcode2D BarcodePostal BetterHTMLExport Book BOX Browser buzz Certificates CharacterEntity CharacterSets Colors Cool Site CSS Cutting DecoMail DecorationMail Design Desktop Diff DJ dmg DNS Documents Download DTP eBook Editer eMail Envelopes ExifTool Facebook FFmpeg File System Fonts FontsTool FontsWeb FOOD FormPrint ftp Gadget Gif Animation Google Google Chrome Enterprise HexEditor HTML info iPhoto ISBN ISO iTunes iWork iWorkNumbers iWorkNumbersCalendar iWorkNumbersTimecard iWorkPages JavaScript JeditX JeditX Regexp JeditXAppleScript JIS jquery Letterpress Library logo Mac Admin Mac Archiver Mac Browser Mac Browser Plugin Mac QuickLook Mac Setup Mac Spotlight Mac Video Map Memo Microsoft Teams Mobby mobileconfig Moto Movies Music Network Basic ntp OCR Office OfficePowerPoint OSX Paint Pantone Paper PDFlib Permission Photo Pictograms Print Public Python QuickLook QuickTime QuickTimeSetting QuickTimeSound Real Media ReName ResourceFork ruby Sample Screen ScreenCast Search Security SEO Sharing SLAResource Sound Spotlight Stamp SWF TCC.db Tutorial PSD TV Twitter Typography Unicode Utilities Video WEB APP WebFont Wedding Windows WindowsMedia XML XMP XPS YouTube YouTube Rss