problem with "put URL"

Richard Gaskin ambassador at fourthworld.com
Sun Aug 28 12:45:08 EDT 2016


jbv  wrote:

 > I'm using the "ask" command, but when using the path returned in the
 > it variable in
 >    put URL "http://myDomain.com/myArchibe.zip" into URL it
 > I always get "invalid url" for the content of it, no matter what it
 > is.
 >
 > I'm using LC 6.5.2 on Mac, and I have checked the permissions of the
 > folders in which I try to save the archive.
 >
 > What am I missing ?

A protocol specifier.  URLs can handle HTTP, HTTPS, FTP, file, or 
binfile, but yours has none.

What you have is a URL like:

    /path/to/some/file.zip

...and what you want is:

   binfile:/path/to/some/file.zip


To remedy:

   put URL "http://myDomain.com/myArchibe.zip" into \
    URL ("binfille:" & it )


-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the Use-livecode mailing list