Photoshop 7.0 Saving file as

Hi all

I am converting some pdfs to jpgs and when my script comes to the save as portion I keep getting the save dialog box in PS. Is there a way I can just have PS accept my save as command from the script without displaying this dialog box?

Here’s my code for PS:

tell application “Adobe Photoshop 7.0”
activate
open thisFilePath showing dialogs never
set myOptions to {class:JPEG save options, embed color profile:false, format options:standard, matte:background color matte, quality:10}
save current document as JPEG with options myOptions without copying
close thisFilePath saving no
end tell

I figured it out

tell application "Adobe Photoshop 7.0"
							activate
							open thisFilePath showing dialogs never
							set myOptions to {class:JPEG save options, embed color profile:false, format options:standard, matte:background color matte, quality:10}
							save current document in thisFilePath as JPEG with options myOptions appending lowercase extension with copying
							close current document saving no
	end tell

Shane was right.
Following your advice, I modified the code, and the problem was finally resolved.
Shane! Thank you very much. You saved my day

—Before modification
set dataBlob to (every paragraph of (read POSIX file thisCSVFile))\n\

—After modification
tell application \"Finder\" to set myFile to (POSIX path of thisCSVFile)\n\
set dataBlob to (every paragraph of (read myFile))\n\

farmingmoney, I think you replied to the wrong topic.

If anyone’s confused, this refers to;

https://macscripter.net/viewtopic.php?pid=204147#p204147