Copy link to clipboard
Copied
HI
In was wondering if anyone could help me. I have written a code that edits images but i am having trouble with the save for web export everytime it gets to saving it photoshop just crashes. I have tried a few different ways of coding it but all of them end of crashing PS and i am at a loss as to what is wrong.
Here is the code that i am using:
set webFolder to (choose folder with prompt "Select the folder to link to")
set webOpt to {class:save for web export options, web format:JPEG, quality:89}
set theDoc to current document
export theDoc in webFolder as save for web with options webOpt
any help would be great. I have tried it on CS6 and CC, both of which crash.
You need to pass a full file path to the export command… Probably need to change the extension too.
set myFullFilePath to (path to desktop as text) & docName
export in file myFullFilePath as save for web with options myOptions
Copy link to clipboard
Copied
You need to pass a full file path to the export command… Probably need to change the extension too.
set myFullFilePath to (path to desktop as text) & docName
export in file myFullFilePath as save for web with options myOptions