j.catlin@nmscolo.org wrote: ↑Wed Jul 29, 2020 3:45 pm
Code: Select all
Windows server 2016 Version 1607 iMacros Version 12.0.501.6698 FF vVerison 60.8.0 ESR
Hi,
I realize this post is fairly old and likely could not be functional any longer due to version change. When try to simply read the end of file row number via a prompt with this code it simply hangs on the URL GOTO line.
Code is:
Code: Select all
VERSION BUILD=10021450
TAB T=1
URL GOTO=file:///C:\Users\Person\names.csv
TAG POS=1 TYPE=PRE ATTR=* EXTRACT=TXT
SET Last_Row_Nb EVAL("'{{!EXTRACT}}'.split('###').length-2;")
prompt LastRow:<Last_Row_Nb>
Any idea on why this would be. FYI I am fairly new to iMacros and completely new to JS. Any info would be greatly appreciated.
>>>
Goldclownfish wrote: ↑Fri Feb 12, 2021 2:37 am
My first guess is the poster was too busy gloating over his script to pay attention to the fact that he wasn't even using a csv file to do the test. But what do I know other then the same person is all over the whole forum running his mouth about how good he is.
Yeah, LOL, always "nice" to hear back from the Fan-Club from time to time
, with your "positive" Attitude on the Forum, @GCF, ah-ah...!
Hum, "gloating", nice Word...!, that I didn't know... Hum..., I think I like it, oops...!
(Fun-Fact: First time sbd is using it on the Forum, btw, ah-ah...!
)
>>>
Then OK, @j.catlin, euh..., yep indeed, sorry I never replied to your Post..., I don't know, maybe you had not mentioned your FCI when I had approved your Post, and you "silently" added that Info "later", or I was "busy" at that time..., and I "regularly" have very difficult Access to Internet, for several weeks, or the Forum was "a bit busy" at that time..., or hum, "July 2020", maybe it was nice Weather in NL, and I was "practicing" my "Gloating-Skills" with some "Peer-Gloating-Adepts" from my Local "Gloating-Club" in a Park in the Sun..., I don't remember..., but anyway...
>
But..., yep indeed..., the Technique I ["gloatingly"...!?, rhooo...!, I think I really like this Word, ah-ah...!
] "demonstrated" doesn't "really" work with '.CSV' Files, because most Users will have associated the '.CSV' File Extension (at the OS/Application Level) with 'Excel' (or similar Soft like 'OO' or 'LO'), and FF (+ other Browsers also) will then treat/see opening a '.CSV' File as a "Download", even if the File is already Local.
You would need to associate the '.CSV' File Extension with 'Notepad' for example for that Method to work...
And that's the Reason, I have mentioned many times that you need to use a '.TXT' File, or I used a '.LOG' File in the Script in this Thread..., or use any Extension you like and that is not associated with any Program on your System, like '.ABC' or '.XYZ' and for sure not with 'Excel'...
But hum, stg else might also be playing a Role in the Behaviour you describe(d), about "Hanging", is that I'm "afraid", v10.0.2 for FF that you are using might be seeing the Local URI/Path with the 'file:///' Protocol like a "privileged URL", and @Dev were forced by @Mozilla to disable/prevent iMacros from being able to open such Files, in order to be able to release v10.0.2 for FF for the Mozilla Add-on Gallery...
Documented in the
Wiki/Release Notes...:
For security reasons in Firefox, you cannot navigate using URL GOTO to a privileged URL such as file:, data:, and about: (although about:home and about:blank are allowed)
=> Yep indeed, 'file' is clearly mentioned, oops...! So I think that's the Reason...
>
Best Option for you I would think, would be to use v8.9.7 for FF, + FF v55.0.3 (old and not maintained anymore, I know...!), or + PM28/Basilisk2021/WaterFox2021...
v8.9.7 for FF doesn't have all those "stupid" (fake Security) Limitations and is much more Functional than v10.0.x (and is Free...!).
- (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...