« [Acrobat AppleScript]ファイル名の取得(this.documentFileName) | トップページ | [Unicode Escape]AppleScriptでユニコード・エスケープ処理 »

[Acrobat AppleScript]ファイルサイズの取得(this.filesize)

Website_image20110330_193140

tell application "Adobe Acrobat Pro"
set theFileSize to do script "this.filesize"
end tell


set theBite to theFileSize as integer
if theBite > "1048576" then
set theMB to (round (theBite / 1048576 * 10)) / 10
else if theBite > 1024 then
set theKB to (round (theBite / 1024 * 10)) / 10
else
set theB to theBite
end if

|

« [Acrobat AppleScript]ファイル名の取得(this.documentFileName) | トップページ | [Unicode Escape]AppleScriptでユニコード・エスケープ処理 »

Acrobat AppleScripts」カテゴリの記事

トラックバック


この記事へのトラックバック一覧です: [Acrobat AppleScript]ファイルサイズの取得(this.filesize):

« [Acrobat AppleScript]ファイル名の取得(this.documentFileName) | トップページ | [Unicode Escape]AppleScriptでユニコード・エスケープ処理 »