Dual Incremental Macro

Author Message
BBros 06/26/2015 11:05 pm
Hi,

I have a question about macros and I tried looking through the help page. I could not find a similar feature. I tried searching the forum and I was not able to find a similar request. I hope that maybe I am just looking at the problem wrong.

I found a website that I would like to download files from. I want to search what is available on their site. Here is an example URL from the site.

http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3000-001.ext


I tried this macro but it is not following the pattern that I am trying to accomplish.

http://www.somewebsite.com/directory1/directory2/directory{:3000-4000}/files/directory{3000..4000}-001.ext


This is the pattern I am trying to get the macro to follow.

http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3000-001.ext
http://www.somewebsite.com/directory1/directory2/directory3001/files/directory3001-001.ext
http://www.somewebsite.com/directory1/directory2/directory3002/files/directory3002-001.ext
http://www.somewebsite.com/directory1/directory2/directory3003/files/directory3003-001.ext
http://www.somewebsite.com/directory1/directory2/directory3004/files/directory3004-001.ext


When I try my first macro, the scan pattern is like this and then the program stops the scan.

http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3000-001.ext
http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3001-001.ext
http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3002-001.ext
http://www.somewebsite.com/directory1/directory2/directory3000/files/directory3003-001.ext



Is there away to have both macros follow the same pattern in one increment at a time? I thought maybe the +1 macro feature would work but maybe I am doing something wrong. I hope that my question makes sense.

Thanks!
BBros 06/26/2015 11:33 pm
I may have made a mistake. My macros may have been scanning too wide. I changed it like this.

http://www.somewebsite.com/directory1/directory2/directory3{:000-999}/files/directory3{:000-999}-001.ext


It scans now but not matching at the same time like I want. If a feature for what I am need is not available, then not a problem. It will just take me a little longer to find the media that I need.

Oleg Chernavin 06/27/2015 06:29 am
Yes, there is a way to do what you want. You can assign a macro result to a variable. And then use it for other URL parts:

http://www.somewebsite.com/directory1/directory2/directory{:3000-4000#1}/files/directory{:#1}-001.ext

Best regards,
Oleg Chernavin
MP Staff