0
여러 화면 해상도의 이미지를 찾으려면이 스크립트를 어떻게 수정합니까? 지금은 단일 화면 해상도 (640x1136)를 확인하지만 640x960 및 1024x768도 확인하고 싶습니다.여러 화면 해상도 확인
on run {input, parameters}
set picFolder to alias "Users:colind:Dropbox:Camera Uploads:"
set screenshotFolder to alias "Users:colind:Dropbox:Camera Uploads:Screenshots:"
tell application "System Events"
set photos to path of files of picFolder whose kind is "Portable Network Graphics image"
end tell
set screenshots to {}
repeat with imgPath in photos
set imgAlias to alias imgPath
tell application "Image Events"
set img to open imgPath
if dimensions of img = {640, 1136} then
set end of screenshots to imgAlias
end if
close img
end tell
end repeat
tell application "Finder"
move screenshots to screenshotFolder
end tell
return input
end run