Which script are you describing now?
I guess that it’s the one entitled “three sizes.scpt”
May you, at last, post what you are asked to do:
I want to see the log history.
I carefully sent you a copy of it showing in huge 24 points size the different descriptions of the file.
With the original file which you sent to me, you were supposed to see three dialogs,
dialog #1
"origSizeXXX : 1754025 bytes
origDimensions : 3264, 1836
origResolution : 72,0, 72,0
newDimensions : 800, 450
newResolution : 72,0, 72,0
newSize800 : 52949 bytes
dialog #2
"origSize800 : 52949 bytes
origDimensions : 800, 450
origResolution : 72,0, 72,0
newDimensions : 1600, 900
newResolution : 72,0, 72,0
newSize1600 : 126642 bytes
step#3
"origSize1600 : 126642 bytes
origDimensions : 1600, 900
origResolution : 72,0, 72,0
newDimensions : 3200, 1800
newResolution : 72,0, 72,0
newSize3200 : 320141 bytes
I don’t understand how you may have missed that because you were urged three times to click the button [OK] in the dialogs displaying the values listed above.
This said, if you save the script below as an application (a droplet)
on open draggeditems
tell application "Image Events" to launch
repeat with currentFile in draggeditems
tell application "Image Events"
set openedFile to open file (currentFile as string)
scale openedFile to size 678 --<<<< here we define the wanted greater dimension
save openedFile with icon
close openedFile
end tell
end repeat
end open
and drag and drop a jpeg file on its icon, you will get a file whose greater dimension is 678 pixels.
If you save the script below as an application (a droplet)
on open draggeditems
tell application "Image Events" to launch
repeat with currentFile in draggeditems
tell application "Image Events"
set openedFile to open file (currentFile as string)
scale openedFile to size 800 --<<<< here we define the wanted greater dimension
save openedFile with icon
close openedFile
end tell
end repeat
end open
and drag and drop a jpeg file on its icon, you will get a file whose greater dimension is 800 pixels.
If you save the script below as an application (a droplet)
on open draggeditems
tell application "Image Events" to launch
repeat with currentFile in draggeditems
tell application "Image Events"
set openedFile to open file (currentFile as string)
scale openedFile to size 1200 --<<<< here we define the wanted greater dimension
save openedFile with icon
close openedFile
end tell
end repeat
end open
and drag and drop a jpeg file on its icon, you will get a file whose greater dimension is 1200 pixels.
Must I continue ?
As I already wrote, don’t edit one to change the wanted size, apply copy from a script, paste in a blank one, edit the size to fit your needs, save it as an application with a new name.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) dimanche 24 mai 2020 16:00:05