How to access a file on a remote computer

Peter Haworth pete at lcsql.com
Mon Jan 19 16:26:23 EST 2015


Hi Jacque,

Using the "/Volumes" way of opening the file worked!

I ran into one issue - some of the filenames have unicode characters in
them.  I searched the list and found this solution from Bjornke:

put unidecode(uniencode(tVar,"UTF8")) into tFilename

That makes things work whether the file name has unicode characters in it
or not.

This, of course, is using pre-7.0 technology.  Ou of interest, if I used
7.0 how would I set about translating a string with unicode characters in
it into a form acceptable as an OSX filename?

In answer to your thought about sandboxing, I'm doing exactly the same as
iTunes - accessing music files in the ~/Music/iTunes folder so I assume
they would be within the app's sandbox.


Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Mon, Jan 19, 2015 at 11:50 AM, Peter Haworth <pete at lcsql.com> wrote:

> Right, yes I did try that and all works fine using the contents of the it
> variable that comes back. It uses the "/Volumes" format for the mounted
> folder/file.
>
> Problem is though that I already have the location of the file I want to
> play (but in "file://" URL format so don't want to prompt for it.
>
> Maybe I can get this working by somehow transposing the "file://" format
> file URL I already have into a "/Volumes" format.  I'll give that a try and
> report back.
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
> On Mon, Jan 19, 2015 at 11:23 AM, J. Landman Gay <jacque at hyperactivesw.com
> > wrote:
>
>> On January 19, 2015 1:14:04 PM CST, Peter Haworth <pete at lcsql.com> wrote:
>> >Thanks for all the suggestions.  Still trying to get this working.
>>
>>
>> I can't remember if you tried this yet but what happens if you do an
>> "answer file" dialog and use the file path that comes back?
>> --
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>



More information about the Use-livecode mailing list