Applescript hangs

BS
Posted By
Bill Steele
Dec 23, 2008
Views
419
Replies
4
Status
Closed
Got a simple script:

set onePic to choose file
tell application "Adobe Photoshop CS"
open onePic
set oneImage to current document
resize image oneImage width 350
end tell

Image opens, progress bar appears, starts, gets about 25% along and freezes.

Ideas?

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

N
nomail
Dec 23, 2008
Bill Steele wrote:

Got a simple script:

set onePic to choose file
tell application "Adobe Photoshop CS"
open onePic
set oneImage to current document
resize image oneImage width 350
end tell

Image opens, progress bar appears, starts, gets about 25% along and freezes.

Ideas?

As you can set the width to pixels, centimeters, inches, percent, perhaps you should also specify this in the script?


Johan W. Elzenga johan<<at>>johanfoto.nl Editor / Photographer http://www.johanfoto.com
J
jjs
Dec 23, 2008
"Bill Steele" wrote in message
Got a simple script:

set onePic to choose file
tell application "Adobe Photoshop CS"
open onePic
set oneImage to current document
resize image oneImage width 350
end tell

tell theDocument
resize image width 350 height ??? resolution ??? resample method bicubic
end tell

It may still be waiting for the rez, and sample method
J
jjs
Dec 23, 2008
"John J" wrote in message
"Bill Steele" wrote in message
Got a simple script:

set onePic to choose file
tell application "Adobe Photoshop CS"
open onePic
set oneImage to current document
resize image oneImage width 350
end tell

tell theDocument
resize image width 350 height ??? resolution ??? resample method bicubic
end tell

It may still be waiting for the rez, and sample method

Correction. resample method default is bicubic. No need to specify it. Default for height is pixels.

Dunno what’s going wrong for you.
BS
Bill Steele
Dec 24, 2008
In article ,
"John J" wrote:

"Bill Steele" wrote in message
Got a simple script:

set onePic to choose file
tell application "Adobe Photoshop CS"
open onePic
set oneImage to current document
resize image oneImage width 350
end tell

tell theDocument
resize image width 350 height ??? resolution ??? resample method bicubic
end tell

It may still be waiting for the rez, and sample method

Tried that. What happens is that the progress bar moves a little farther before it stops.

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections