![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
We have different users that will be doing development work in AutomationAnywhere. We want to do development in our My Documents folder and then move the scripts and images to another folder once they're ready for production. The only problem is that the image paths in the script will be still pointing to C:\My Documents... Is there a way in AutomationAnywhere to move the script and embedded images to another folder without corrupting the script???? |
| |||
|
I'm not sure you understood what we're looking for. We want to do development under our developer's My Documents folder because we may through the course of development create 5 different versions of a script but only the last version will go into production. After development is done we want to move the scripts to a production folder to keep the production folder clean of unwanted development versions. I think one of the short-comings of AutomationAnywere is that when you copy an AA script it doesn't copy the images from the original script's folder to an image folder of the new copy's folder. If you look at the atmn file in notepad the image path's are "hard-coded" to the orginal script's image folder. Thanks to all who respond to this post. |
| |||
|
Hello, What we understand, you are talking about the images that are captured while running the task. What you can do is, insert 'Copy Folder' command as last line of task to copy images folder of respective task into production folder. We have attached a sample task for our reference. To run this task, . Please copy it under C:\. . Edit attached task to change the 'Source Folder' path at line #7 as per your machine configuration. When you will run this task, it will copy sampletest folder located under 'C:\Users\...\Documents\Automation Anywhere\Automation Anywhere\My Tasks\Images\My Tasks\' to C:\. |
| |||
|
The sample script copies the images from one folder to another but the copied atmn is still going to be pointing to the original folder where the images were first captured. Below is a sample of an atmn file that I got from opening it up in Notepad: ˙˙˙ ˙˙˙ţ˙˙˙ d C:\Documents and Settings\KTheeck\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\Images\My Tasks\Test x y coordinates\Test x y coordinates_1.png C:\Documents and Settings\KTheeck\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\Images\My Tasks\Test x y coordinates\Test x y coordinates_2.png I suppose I could fix this in two steps. First copy the atmn file and images to a new production folder. Then open the atmn file in notepad and do a search and replace so that I could change the development folder path to the production folder path. I thought there might be an easy way to do this but it appears as though there isn't. Hopefully someone from AutomationAnywhere can get this change put on the development list. Thx |
| |||
|
Hello, Thank you for your suggestion. Yes the sample provided copies images from development folder to production folder. An additional step could be deleting the images from development folder using Delete Files command. Changing the path in notepad will not reflect in atmn. Task will always save the images to default 'My Images' folder. However, we will certainly forward your requirement, to be able to change the default location of 'My Images' folder to product development team for future release. |
| |||
|
It would also be nice if you copied the script that it would 1. create a new image folder 2. COPY all the images to this folder 3. Update the copied .atmn file with the new image folder's location. In addition, if you rename a script I would think it should rename the folder where the images are located (to match the new script name) as well as update the .atmn file with the new image folder's location. I think this would alleviate confusion when you multiple people doing development or making changes to production scripts. Thanks for your help. |
| |||
|
Hello, What we understand you will copy task/script i.e. atmn file from development folder to production folder and run the task from production folder. In that case, any changes to script (renaming or editing) in development folder will not affect script in production folder. You need to copy the script again to production folder if you need those changes. Now, when you run the task saved in production folder, the images will always be save at default location so through script we will copy the images from default folder into Images folder of production and will delete the images from default folder. Currently, we cannot update the image folder location. Note: Images we are talking about are the images captured while running the task. |
![]() |
| Thread Tools | |
| Display Modes | |
| |