問題タブ [iphoto]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
image - applescriptを使用して写真IDでiPhotoLibraryのパスを取得する
次の Applescript を使用して、写真の iPhotoLibrary 内のパスを ID で選択しようとしています。
tell アプリケーション「iPhoto」 photoID を 25801 に設定 thePhoto を写真 ID (photoID + 2 ^ 32) に設定 photoPath を thePhoto の画像パスに設定 end tell
4.294993097E+9 を整数に変換することはできないと Applescript が私に言ったので、それはうまくいきません。数字として (photoID + 2 ^ 32)と書きましたが、Applescript は画像パスを取得できませんでした。
私の間違いは何だったのか、どうすれば問題を解決できるのか教えてください。