Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#E3FCEF

Please read the Terms of Use for Materials on ZennoLab

Table of contents

Expand
titleClick here to expand the table of contents
Table of Contents
exclude^Оглавление$

...

Copying text from a file with the ability to write to a variable.

...

File path

Variable macros can be used.

Here you need to specify the path to the file from which the data will be read.

...

The text to be written to the file.

Variable macros can be used.

Append to file

...

Info

When working in multi-threaded mode, it is recommended to write lines to a file using an action List processing ...

...

Move

This is moving the file to the specified directory. Also, this option can be used to rename the file.

...

We set ourselves the task:

  1. Download picture from vk.com

  2. Rename it

  3. Move to the desired folder

Let's imagine that we have already received a direct link to the picture: https://sun9-71.userapi.com/zcp0gi3hCgW39FmT3J7vsAiawigKHI_WP4J5YA/fWlAmX-lUM8.jpg

Using Get request, we download the picture to our computer. Specify PicPath as a variable. After executing this action in the specified variable, we will have a direct path to the picture:

...

{-Project.Directory-} - a macro, when specified, the directory where the project is located will be used. Where the project is located (you can read more about this and other macros here).

After performing this action, the file will move to the desired folder and you can upload the next picture.

...

To get the file extension, you can use the Text Processing and Regular Expressions action, for more details: Regular Expression Tester.

...