0
同じプレビューウィンドウ内で複数の画像を開こうとしています。たとえば、複数の画像をプレビューのサイドバーにドラッグすると、1つのウィンドウの内側にきれいに表示されます。AppleScriptで1つのプレビューウィンドウで複数の画像を開く
このコードは、すべての画像を開きますが、別のウィンドウで:
-- Getting path to this file
tell application "Finder" to get folder of (path to me) as Unicode text
set currentLocation to result
-- Open image results in Preview
tell application "Preview"
open currentLocation & "img:weekdays_bar.png"
open currentLocation & "img:weekdays_pie.png"
open currentLocation & "img:months_bar.png"
open currentLocation & "img:seasons_bar.png"
open currentLocation & "img:seasons_pie.png"
open currentLocation & "img:am_pm_pie.png"
end tell
誰もが正しい方向に私を指すことができますか?
を使用してファイルを開くには、
Finder
を伝えるには魅力のように働きました。ありがとうございました! – cagrimmett