applescript – Automator – Modify the outcomes of Get Picture URLs from Webpage


I am making an attempt to switch the outcomes of an inventory of 30 objects from “Get Picture URLs on Webpage”.

For instance:

"https://dspncdn.com/a1/media/236x/82/58/da/8258da274aa4b81ab00c9c92cf5bcf50.jpg",
  "https://dspncdn.com/a1/media/236x/4e/9a/75/4e9a75bec9041112751ca2dd08a45026.jpg",
  "https://dspncdn.com/a1/media/236x/33/83/46/338346575aa402b13cb778c9525018fb.jpg",

What I wish to do is substitute “236x” with “originals”.

The issue is that the closest I can get eliminates the ” “, and line breaks, which renders makes Downloading inconceivable.

"https://dspncdn.com/a1/media/unique/82/58/da/8258da274aa4b81ab00c9c92cf5bcf50.jpghttps://dspncdn.com/a1/media/unique/4e/9a/75/4e9a75bec9041112751ca2dd08a45026.jpghttps://dspncdn.com/a1/media/unique/33/83/46/338346575aa402b13cb778c9525018fb.jpghttps://dspncdn.com/a1/media/unique/a1/4f/7b/a14f7b07c1fafb12fce1ccdd53b52e69.jpghttps://dspncdn.com/a1/media/unique/30/42/64/304264157b118808f6702f82c043aa65.jpg

And many others.

Forgive me for being extraordinarily noob. The code I am utilizing to make the change is:

on run {enter}
    set enter to replaceText("236x", "unique", enter as string)
finish run

on replaceText(discover, substitute, textString)
    set prevTIDs to AppleScript's textual content merchandise delimiters
    set AppleScript's textual content merchandise delimiters to seek out
    set textString to textual content objects of textString
    set AppleScript's textual content merchandise delimiters to switch
    set textString to "" & textString
    set AppleScript's textual content merchandise delimiters to prevTIDs
    return textString
finish replaceText

I am undecided of the correct phrases to explain strings and paragraphs, actually noob, however I might guess that the preservation of every line within the paragraph may require one thing else fully. Is it nonetheless a string if it has a number of strains?

Thanks upfront for any assist might be given. I imagine it is my last step to fixing this.