Hi there,
I have been using macro scheduler for 2 days and have managed to automate 80% my online product creation process. However its a process that takes 2-3 minutes per mock-up and I have 500 to do which will take a huge amount of my time to go through it all and I want the process to be fully automated. The main problem is selecting the design file to apply to the product. what I essentially want is for the design file to be selected from a specific location on my windows computer but the filename is copied to be used as the title of the mock-up when the upload is complete. After the design file is uploaded and the title has been made, the script completes the process and repeats but selects the next design file and copies the filename for a different product mock-up to be created when it reaches the upload part of the repeated process.
Any solution to this problem will be much appreciated.
If more information is required, please reply and I will go in further detail on the process.
Kind regards,
Zakariya
Generating multiple mock-ups (please read description for deatil)
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 1
- Joined: Tue Oct 01, 2019 6:30 pm
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Re: Generating multiple mock-ups (please read description for deatil)
If I am understanding correctly, you want to process all the files in one folder, and save each output with the same file name as it's "master".
The code below should give you enough to play with, if that is the case.
The code below should give you enough to play with, if that is the case.
Code: Select all
//Set the location
Let>FileLocation=d:\MJT\files
//Get a list of all files in folder
GetFileList>%FileLocation%\*.*,files
Separate>files,;,file_names
//The Loop
Let>k=0
Repeat>k
Let>k=k+1
Let>FileNameAndPath=file_names_%k%
ExtractFileName>FileNameAndPath,FileName,1
ExtractFilePath>FileNameAndPath,FilePath
//Now insert your automation routine here instead of the code below
MessageModal>The Filename and path is %FileNameAndPath%
MessageModal>The Filename is %FileName%
MessageModal>The Filepath is %FilePath%
MessageModal>So therefore %FileNameAndPath% is your file to process
MessageModal>And %FileName% is your save file name
MessageModal>But Maybe save your output somewhere else like d:\AnotherDir\%FileName%.jpg
//Exit after ONE file has been processed. Remove the line below once you know all is working well with one cycle
Exit
Until>k,file_names_count