« [boolValue] as booleanを使わない場合 | トップページ | [NSPropertyListSerialization]Plist編集の基本的な流れ »

[integerValue]as integerを使わない場合

#!/usr/bin/env osascript
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions

property refMe : a reference to current application
set ocidWidth to (refMe's NSNumber's numberWithInteger:1280)'s integerValue
set ocidHeight to (refMe's NSNumber's numberWithInteger:720)'s integerValue
set ocidXDimension to (refMe's NSNumber's numberWithInteger:0)'s integerValue
set ocidYDimension to (refMe's NSNumber's numberWithInteger:0)'s integerValue

|

« [boolValue] as booleanを使わない場合 | トップページ | [NSPropertyListSerialization]Plist編集の基本的な流れ »

NSNumber」カテゴリの記事