Append to image path

  • Автор темы Автор темы flexfanatic
  • Дата начала Дата начала
I recently created a ZP template that will grab image file names from a website (e.g., image123_abc.jpg) but I need to add the complete url to the beginning of the path (e.g., http://www.domain.com/upload/image123_abc.jpg).

I'm using a macro to parse the path and save them to a text file.


What is the question? Are you asking how to get the rest of the URL? Are the pictures you are grabbing the url for always saved in the same directory on that site?
 
What is the question? Are you asking how to get the rest of the URL? Are the pictures you are grabbing the url for always saved in the same directory on that site?

Yes, but the website does not include it in from the of the image name. I do know that the beginning of the image path is always the same so I just need to add a static value (www.domain.com/) to the parsed image name (right now in the text file I save its image_name.jpg, I need it to be saved as www.domain.com/image_name.jpg).
 
If I understand correctly this is the code you are looking for
Код:
Развернуть Свернуть Копировать
{-File.AppendString-|-\Results\YOURFILE.TXT-|-http://www.domain.com/insertyourparsedimagehere-|-true-}
 
{-File.AppendString-|-\Results\YOURFILE.TXT-|-http://www.domain.com{execution-result-of-image-you-parsed}-|-true-}

Done.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)