Create a folder name with an extracted text

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
petard001
Posts: 48
Joined: Fri Mar 19, 2010 8:04 am

Create a folder name with an extracted text

Post by petard001 » Tue Jan 15, 2019 12:29 pm

Hi,
I use Windows 10, Imacros Personal Edition VERSION BUILD=12.5.503.8802 and Firefox 64.0.2

I try to use an extracted text to create a folder.

I have try this :

Code: Select all

TAG POS=45 TYPE=LI ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
ONDOWNLOAD FOLDER=C:\temp_firefox\{{!VAR1}} FILE={{!NOW:hhnnss}}_{{!LOOP}}.jpg WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:https://www.familysearch.org/das/v2/*/dist.jpg CONTENT=EVENT:SAVEPICTUREAS
TAG POS=1 TYPE=SPAN ATTR=CLASS:next<SP>pager-icon<SP>fs-civ-circle-chevron-right<SP>enabled&&TITLE:&&DATA-ORIGINAL-TITLE:Suivant&&TXT:
SET !EXTRACT NULL
wait seconds=2
The pop-up give me the correct text, but I have this "error" : ReferenceError: folder is not defined, line: 4 (but the folder creation is in line 3 !)

When I use only

Code: Select all

ONDOWNLOAD FOLDER=C:\temp_firefox FILE={{!NOW:hhnnss}}_{{!LOOP}}.jpg WAIT=YES
, it works

Any help would be appreciated
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Create a folder name with an extracted text

Post by chivracq » Wed Jan 16, 2019 2:49 am

petard001 wrote:
Tue Jan 15, 2019 12:29 pm
Hi,
I use

Code: Select all

Windows 10, Imacros Personal Edition VERSION BUILD=12.5.503.8802 and Firefox 64.0.2
I try to use an extracted text to create a folder.

I have try this :

Code: Select all

TAG POS=45 TYPE=LI ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
ONDOWNLOAD FOLDER=C:\temp_firefox\{{!VAR1}} FILE={{!NOW:hhnnss}}_{{!LOOP}}.jpg WAIT=YES
TAG POS=1 TYPE=IMG ATTR=SRC:https://www.familysearch.org/das/v2/*/dist.jpg CONTENT=EVENT:SAVEPICTUREAS
TAG POS=1 TYPE=SPAN ATTR=CLASS:next<SP>pager-icon<SP>fs-civ-circle-chevron-right<SP>enabled&&TITLE:&&DATA-ORIGINAL-TITLE:Suivant&&TXT:
SET !EXTRACT NULL
wait seconds=2
The pop-up give me the correct text, but I have this "error" : ReferenceError: folder is not defined, line: 4 (but the folder creation is in line 3 !)

When I use only

Code: Select all

ONDOWNLOAD FOLDER=C:\temp_firefox FILE={{!NOW:hhnnss}}_{{!LOOP}}.jpg WAIT=YES
, it works

Any help would be appreciated
Hum, v12.5.503 is for iMB/IE, there is no v12.5 'PE' Version for FF... => Will be v10.0.2 'PE' for FF, I reckon...? :?

Nothing much specific to iMacros for FF anyway I would think, try to open your Threads in the correct Sub-Forum(s), I've already asked you... :roll:

But yep, concerning your Qt, you'll find the Answer in this recent Thread (and Post by @Tom from TechSup), the 'Create Folder' Functionality through the 'FOLDER' Parameter from the 'ONDOWNLOAD' Command apparently doesn't work at the moment/anymore in v10.0.x for CR + FF...:
- Re: Create Folder with iMacros / JavaScript
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
petard001
Posts: 48
Joined: Fri Mar 19, 2010 8:04 am

Re: Create a folder name with an extracted text

Post by petard001 » Sun Feb 10, 2019 4:51 pm

Thanks !
Post Reply