Background: I`m trying to create an OEP project so that I know when a new version of a software program becomes available. The particular web page with which I`m having trouble is at http://www.jetico.com/products.htm. Apparently, after OEP downloads the page (successfully), a JavaScript command inside the HTML is changing the location of the HTML file! This causes OEP to display a 404 error. Note that the only way that I could get the page to download at all was using "Online" translation. Here is the "bad" JavaScript command inside the HTML file:
<script language="javascript">
<!--
if (window.name != "JETICO_HOME") self.location.replace("http://www.jetico.com/index.htm#" + self.location.pathname);
//-->
</script>
My local URL for this page is N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
However, the JavaScript command (I`m guessing) is causing OEP`s internal browser to look for the page at http://www.jetico.com/index.htm#/N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
This results in a 404 error from the Jetico website.
Can you think of any good way to fix this?
One solution that I thought of is if OEP gives us the ability to include/exclude text from files in the same way that it lets us include/exclude Servers, Directories, & Filenames.
A different, more powerful solution would be the ability to search and replace text in files while downloading them (at least HTML files) so that I could change this part of the JavaScript command. Although not necessary, the ability to use UNIX-style Regular Expressions for this would be an added bonus.
Does anyone have any suggestions? Thanks in advance.
I use a prodcut for just such in-place editing from Crystalsoftware named TextPipePro. They even have a page on how their product integrates with OE Pro! Here is the link:
http://www.crystalsoftware.com.au/textpipe/integration/offlineexplorer.html
They support all sorts of text filters as well as regular expression -- a very nice compliment and powerful tool for manipulating files downloaded by OE Pro.
Good Luck!
Steve Sieloff
> I`d like to have the ability to search & replace text in HTML files while OEP downloads them.
>
> Background: I`m trying to create an OEP project so that I know when a new version of a software program becomes available. The particular web page with which I`m having trouble is at http://www.jetico.com/products.htm. Apparently, after OEP downloads the page (successfully), a JavaScript command inside the HTML is changing the location of the HTML file! This causes OEP to display a 404 error. Note that the only way that I could get the page to download at all was using "Online" translation. Here is the "bad" JavaScript command inside the HTML file:
>
> <script language="javascript">
> <!--
> if (window.name != "JETICO_HOME") self.location.replace("http://www.jetico.com/index.htm#" + self.location.pathname);
> //-->
> </script>
>
> My local URL for this page is N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
>
> However, the JavaScript command (I`m guessing) is causing OEP`s internal browser to look for the page at http://www.jetico.com/index.htm#/N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
>
> This results in a 404 error from the Jetico website.
>
> Can you think of any good way to fix this?
>
> One solution that I thought of is if OEP gives us the ability to include/exclude text from files in the same way that it lets us include/exclude Servers, Directories, & Filenames.
>
> A different, more powerful solution would be the ability to search and replace text in files while downloading them (at least HTML files) so that I could change this part of the JavaScript command. Although not necessary, the ability to use UNIX-style Regular Expressions for this would be an added bonus.
>
> Does anyone have any suggestions? Thanks in advance.
Thanks for the info. However, TextPipe Pro costs $229 USD! I understand that it is powerful, however I`m disappointed that OEP requires such an expensive solution for such a relatively simple task.
I already have plenty of tools to search/replace text in files, including a free "sed" utility that allows RegExps. However, I was hoping to not involve external programs for this task.
In any case, thanks for the info, it`s appreciated.
I also fogot about the "content filter" option for filtering within a file -- looks to be only a positive/include if type of filter -- no bypas if match or replce/edit or regular expression support .... yet!!!H?ope this helps!!
Steve
> I`d like to have the ability to search & replace text in HTML files while OEP downloads them.
>
> Background: I`m trying to create an OEP project so that I know when a new version of a software program becomes available. The particular web page with which I`m having trouble is at http://www.jetico.com/products.htm. Apparently, after OEP downloads the page (successfully), a JavaScript command inside the HTML is changing the location of the HTML file! This causes OEP to display a 404 error. Note that the only way that I could get the page to download at all was using "Online" translation. Here is the "bad" JavaScript command inside the HTML file:
>
> <script language="javascript">
> <!--
> if (window.name != "JETICO_HOME") self.location.replace("http://www.jetico.com/index.htm#" + self.location.pathname);
> //-->
> </script>
>
> My local URL for this page is N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
>
> However, the JavaScript command (I`m guessing) is causing OEP`s internal browser to look for the page at http://www.jetico.com/index.htm#/N:\Databases\Offline Explorer\New Software Releases\www.jetico.com\products.htm
>
> This results in a 404 error from the Jetico website.
>
> Can you think of any good way to fix this?
>
> One solution that I thought of is if OEP gives us the ability to include/exclude text from files in the same way that it lets us include/exclude Servers, Directories, & Filenames.
>
> A different, more powerful solution would be the ability to search and replace text in files while downloading them (at least HTML files) so that I could change this part of the JavaScript command. Although not necessary, the ability to use UNIX-style Regular Expressions for this would be an added bonus.
>
> Does anyone have any suggestions? Thanks in advance.
There is such option already - you can type the following in the URLs field:
http://www.server.com/file.htm
RunAfter=c:\file.exe
c:\file.exe will be called when the Project completes downloading.
I hope this helps.
Best regards,
Oleg Chernavin
MetaProducts corp.
Oleg.
Trying
RunAfter=c:\windows\notepad.exe
I select the project and click download. The project completes but notepad doesn`t open.
NB I`m using the eval version - does this make a difference?
Given I can get notepad to work, how do I construct the command to run textpipe with the downloaded file and obviously a textpipe filter.
Thanks
Terry
http://www.site.com/
TextPipe=c:\path\filter.fll
The updated oe.exe file is here:
http://www.metaproducts.com/download/betas/oep1749.zip
Best regards,
Oleg Chernavin
MP Staff