Re: parsing online data ?
Re: parsing online data ?
- Subject: Re: parsing online data ?
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 13 Mar 2018 21:24:38 +0900
> On Mar 13, 2018, at 20:39, Shane Stanley <email@hidden> wrote:
>
>
> On 13 Mar 2018, at 8:12 pm, Jim Underwood <email@hidden> wrote:
>>
>> We are both speculating about the starting conditions of the OP.
>
> Not totally -- he was quite specific about "most browser-agnostic".
Thank you all for the suggestions and sorry for not getting back to the list
earlier.
This thing is a follow up to my "date formatting" thing I sent earlier (and
thank you again for the very interesting suggestions).
Basically I have a version number that compute from the creation date of the
application that's on the disk, and I want to compare that to the latest
release data that is somewhere on a web page.
Just so that you see, here is the data:
https://sourceforge.net/projects/omegat/files/OmegaT - Standard/
where I'm looking for "2017-12-2" (which is not as precise as a creation date,
so I'll have to reconsider how I create my local version number, but it's good
enough).
I also have a similar page for the "latest" version, and a cloudbees page with
a slightly different structure for the repository trunk.
https://omegat.ci.cloudbees.com/job/omegat-trunk/lastBuild/
The issue I see is that if the version is checked each time the script is
launched (which can be many times a day), the version checking must be fast
(supposing I'm online, of course), and I don't want a browser to open just for
that task.
(on a side note, this whole thing is not only an exercise for me, I intend to
publish it on my blog and let readers use the code in their own workflow, and
for that I want the code to be generic, and fast enough.)
So I'm really looking for something that runs quickly and runs behind the
scene, because the whole things is not about checking versions so much as it is
using the script to open the application from the command line (and Terminal is
already a pain to deal with...)
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden