textutil -convert txt /path/to/folder/inputfile.html
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Get-url-file-tp4705988p4706034.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-live
t;htm"
put shell("textutil -convert txt " & f0&"*.htm") into nirwana
end mouseUp
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Get-url-file-tp4705988p4706032.html
Sent from the Revolution - User mailing list archive at Nabb
> On Jun 21, 2016, at 10:09 AM, Klaus major-k wrote:
>
>> Yes, that works well. Thank you.
>> But it gives me the html source code.
>
> yes, I thought that is what you were after! Not?
Yeah, that's what I thought. I made that incorrect assumption when the first
proximate
sing this link:
http://www.google.com/advanced_search?q=site:lists.runrev.com
Message: 1
Date: Mon, 20 Jun 2016 22:06:41 -0700 (PDT)
From: "[-hh]" <h...@hh.on-rev.com>
To: use-revolut...@lists.runrev.com
Subject: Re: Get url "file:///..."
Message-ID: <1466485601879-4706007.p...
t;
> put url "file:/Users/jimhurley/Library/Mail
> Downloads/elec_web/precincts/241.htm" into msg box
> On Jun 21, 2016, at 3:00 AM, use-livecode-requ...@lists.runrev.com wrote:
>
>>
>> Message: 1
>> Date: Mon, 20 Jun 2016 22:06:41 -0700 (PDT)
>> From:
ing this link:
>
> http://www.google.com/advanced_search?q=site:lists.runrev.com
>
>
> Message: 1
> Date: Mon, 20 Jun 2016 22:06:41 -0700 (PDT)
> From: "[-hh]" <h...@hh.on-rev.com>
> To: use-revolut...@lists.runrev.com
> Subject: Re: Get url "fil
ddress field in Safari.
>
> But
>
>get url
"file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm"
>
> in Live Code leaves "it" empty.
>
> I need to get the source code (programmatically) so that I may parse
> "it" for vot
rstatement of the year: "Using above "text" instead of "source" may save
>> you some work."
>>
>> It saves a mountain of parsing.
>>
>> Shouldn't this be a part of LiveCode?
>>
>> Jim Hurley
>>
>>&
gt;
>> Message: 1
>> Date: Mon, 20 Jun 2016 22:06:41 -0700 (PDT)
>> From: "[-hh]" <h...@hh.on-rev.com>
>> To: use-revolut...@lists.runrev.com
>> Subject: Re: Get url "file:///..."
>> Message-ID: <1466485601879-4706007.p...@n4.nabble
06:41 -0700 (PDT)
> From: "[-hh]" <h...@hh.on-rev.com>
> To: use-revolut...@lists.runrev.com
> Subject: Re: Get url "file:///..."
> Message-ID: <1466485601879-4706007.p...@n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> A
t;tell application " & q&"Safari" & \
" open POSIX file " & q(f) & \
" set rslt to " & x & " of document 1" & \
"end tell"
end iScript
--
View this messa
/Mail%20Downloads/elec_web/precincts/241.htm
It opens when I paste it into the address field in Safari.
But
get url
"file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm"
in Live Code leaves "it" empty.
I need to get the source code (progr
> On 21 Jun 2016, at 11:37 AM, Jim Hurley wrote:
>
> Thanks for all the suggestions. So far no luck with any.
>
> No combination of back slashes work, and urlDecode() simply returns the file
> name.
>
> Sarfari opens the file with no difficulty.
>
> Apparently
Great minds
>
> You might want to get rid of any control characters that got caught in the
> string as you did a copy and paste.
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage
0me/steering.txt"); put it && the
result )
If it works the result will be empty and you'll see the contents of the
file.
If it doesn't work, hopefully the result will show the error.
Did you try setting the folder method?
set the folder to
urldecode("/Users/jimHurley/Library/Mail%20Downloa
t;> On Mon, Jun 20, 2016 at 6:23 PM, Dar Scott wrote:
>>
>>> urlDecode() ?
>>>
>>>> On Jun 20, 2016, at 5:54 PM, Jim Hurley
>>> wrote:
>>>>
>>>> I got this web page address from the county election's office:
>>>
;>
>>> I got this web page address from the county election's office:
>>>
>>>
>> file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm
>>>
>>> It opens when I paste it into the address field in Safari.
>>>
>
gt;
> >> wrote:
> >>>
> >>> I got this web page address from the county election's office:
> >>>
> >>>
> >>
> file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm
> >>>
> >>>
cglobal.net>
>> wrote:
>>>
>>> I got this web page address from the county election's office:
>>>
>>>
>> file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm
>>>
>>> It opens when I paste it into the add
n's office:
> >
> >
> file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm
> >
> > It opens when I paste it into the address field in Safari.
> >
> > But
> >
> > get url
> "file:///Users/jimhurley/Library/Mail
it into the address field in Safari.
>
> But
>
> get url
> "file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm"
>
> in Live Code leaves "it" empty.
>
> I need to get the source code (programmatically) so th
text of the browser widget, (since it knows how to handle
> file:///... type urls) but just eliminating the superfluous // should help.
>
> Yet another option. Set the default folder to "/Users/jimhurley/
> Library/Mail%20Downloads/elec_web/precincts"
> at which point you
, (since it knows how to handle
file:///... type urls) but just eliminating the superfluous // should help.
Yet another option. Set the default folder to "/Users/jimhurley/
Library/Mail%20Downloads/elec_web/precincts"
at which point you can simply: get URL "file:241.htm"
On Mon, Jun
I got this web page address from the county election's office:
file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm
It opens when I paste it into the address field in Safari.
But
get url
"file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precinct
24 matches
Mail list logo