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?

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

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.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections