Photoshop CS5 problem

Hi,

I’m encountering a problem with a minor change in a applescript.
In a script which is working just fine pdf-files are opened and saved as jpeg-files using Photoshop CS4.

Now we want to use Photoshop CS5 instead and after changing the application-call in de script to CS5
the script errors with “Object not found”.
With debugging I’ve determined that the “breaking point” is the open command.

==============
open myFilePath as PDF with options {class:PDF open options, mode:RGB, resolution:300, crop page:media box, use antialias:true, page:1, constrain proportions:true}

This command worked fine with CS4.
In the reference guides of CS4 and CS5 I can’t see any difference in the two programmes.

Can anyone help me with this problem.

Thanks in advance

Erwin

Where does myFilePath come from? It should be an alias.

It is.

You drop a folder on the script and the script gets the pdf-files from a location within that folder converts them to jpeg.
Realy strait forward.
An like I said it works like a charm with Photoshop CS4.

==================

	set myFilePath to (webMap & ":" & figNaam) as alias

================

It looks like a CS5 bug. See kb2.adobe.com/cps/847/cpsid_84767.html

Looks like a problem I had already. If I remember, my filepath was (as string) and (open alias myFilePath…) instead of just open.

open alias myFilePath as PDF with options {class:PDF open options, mode:RGB, resolution:300, crop page:media box, use antialias:true, page:1, constrain proportions:true}

hi,

guess you have to coerce myFilePath to text and change the open-Line to “open file myFilePath …”

Bye

Hans

Thanks a lot guys!

The suggestion of sbriss worked out very well.

The script is working again. And this time with Photoshop CS5.

Thanks a million