Convert to text
I'm trying to get a numerical value to put into this script, but I get an error when I try to convert the line to text
Is this possibly, I 'm trying to go back a set number of history steps in photoshop.
Many Thanks
Matt
tell application id "com.adobe.photoshop"
tell current document
set a to current history state
--undo larget action
log a
--(*history state 57 of document DJ30ER08204OR6GO.JPG*)---
set b to 3rd text item of (a as text)
set current history state to history state (b - 27)
end tell
end tell
Error "Can’t make «class cHst» 57 of document \"DJ30ER08204OR6GO.JPG\" of application \"Adobe Photoshop CC 2015\" into type text." number -1700 from «class cHst» 57 of document "DJ30ER08204OR6GO.JPG" totext