1

I retrieve the binary content of an image file like: «data JPEGFFD8FFE000104A46494600010101004800480000FFDB00430006040506050406060506070706080A100A0A09090A140E0F0C1017141818171416161A1D251F1A1B231C1616202C20232627292A29191F2D302D283025282928FFDB0043010707070A080A130A0A13281A161A28282828282828282828282828282828282828>> and I want to display these data via "display dialog" command. しかし、「<>を文字列にできません」のようなエラーが発生します。表示ダイアログを使用してこれらのデータを表示する方法はありますか?

4

1 に答える 1

1

試す:

set xxx to «data JPEGFFD8FFE000104A46494600010101004800480000FFDB00430006040506050406060506070706080A100A0A09090A140E0F0C1017141818171416161A1D251F1A1B231C1616202C20232627292A29191F2D302D283025282928FFDB0043010707070A080A130A0A13281A161A28282828282828282828282828282828282828»
try
    set xxx to xxx as text
on error errMsg
    set errMsg to do shell script "echo " & quoted form of errMsg & " | grep -o «.*»"
    display dialog errMsg
end try
于 2013-01-14T12:53:11.527 に答える