On 23/03/2016 13:18, Tore Nilsen wrote:
Thank you this is very useful. As file names can also contain other
characters that may be changed during urlEncoding I will have to
experiment to take them into consideration as well. From what I can
see I will need to convert apostrophes, parenthesises an
Thank you this is very useful. As file names can also contain other characters
that may be changed during urlEncoding I will have to experiment to take them
into consideration as well. From what I can see I will need to convert
apostrophes, parenthesises and commas back to their original charact
On Wed, Mar 23, 2016 at 8:30 AM, Tore Nilsen wrote:
> It did not work. URLEncode also encodes “/“ to %2 and spaces to + as you
> can see:
>
> file://%2FUsers%2Ftorenilsen%2FDocuments%2FMultimedieLab%2FMusikk%2F01+My+My%2C+Hey+Hey+%28Out+of+the+Blue%29.m4p
>
This is a function I use to convert f
On 2016-03-23 13:22, Peter TB Brett wrote:
You should use URLEncode(). For example:
on mouseUp
answer file "Choose file"
put "file://" & URLEncode(it) into tUrl
put tUrl into field "url"
set url of widget "browser" to tUrl
end mouseUp
I'm just in the process
It did not work. URLEncode also encodes “/“ to %2 and spaces to + as you can
see:
file://%2FUsers%2Ftorenilsen%2FDocuments%2FMultimedieLab%2FMusikk%2F01+My+My%2C+Hey+Hey+%28Out+of+the+Blue%29.m4p
Tore
> 23. mar. 2016 kl. 13.24 skrev Tore Nilsen :
>
> I’ll try that. Thank you.
>
> Tore
>
>
I’ll try that. Thank you.
Tore
> 23. mar. 2016 kl. 13.22 skrev Peter TB Brett :
>
> On 23/03/2016 12:11, Tore Nilsen wrote:
>> This would work unless the file name contained space characters. Changing
>> the script to replace space characters with %20 would rectify this problem.
>>
>> on mouse
On 23/03/2016 12:11, Tore Nilsen wrote:
This would work unless the file name contained space characters. Changing the
script to replace space characters with %20 would rectify this problem.
on mouseUp
answer file "Choose file"
put "file://"& it into tPath
repeat with i = 1 to the number of c
I have been working with the browser widget this morning, trying to use it to
show/play media files, and I have come across some oddities with some
characters in file names being incompatible with the widget. The script I
originally used use is as follows:
on mouseUp
answer file "Choose file"