Append to image path

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0
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.
 
Регистрация
26.03.2012
Сообщения
44
Благодарностей
6
Баллы
0
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?
 

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0
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).
 

reislet

Client
Регистрация
02.04.2012
Сообщения
33
Благодарностей
1
Баллы
0
If I understand correctly this is the code you are looking for
Код:
{-File.AppendString-|-\Results\YOURFILE.TXT-|-http://www.domain.com/insertyourparsedimagehere-|-true-}
 

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
{-File.AppendString-|-\Results\YOURFILE.TXT-|-http://www.domain.com{execution-result-of-image-you-parsed}-|-true-}

Done.
 

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0

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