[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
| 固定リンク
「NSNumber」カテゴリの記事
- NSNumberのValueの考え方(2024.09.03)
- [AppleScript]負の数値を整数にする(2024.09.02)
- [NSDecimalNumber]計算にNSDecimalNumberを使う(2024.03.26)
- [小数点]小数点いかの桁揃え(2023.11.13)
- [integerValue]as integerを使わない場合(2023.01.12)