Thanks Mike, I like your code, cleaner, smaller and easier to understand.
And thanks for the explanation… I get it:)
Again, thanks to all who responded!
> On Jul 28, 2018, at 11:02 PM, Mike Bonner via use-livecode
> wrote:
>
> It's just how file systems work. If the beginning character is /
It's just how file systems work. If the beginning character is / that
means it starts at the root of the file system. Since you had already set
the defaultfolder, and wanted to go relative to there, you would just
specify the folder name/filename. Or as I said, pre-pend a dot. In fact,
2 dots
Thank you to all who replied!
Adding the “.” solved the problem and the file saved where it was supposed to.
Confusing, because you would think that setting the defaultFolder would allow
you to specify the next sub folder like I did… and it’s not mentioned, that I
saw, in the docs.
Thanks aga
Hi Steve
First, a quick way to the stack or standalone folder is
specialfolderpath(“resources”).
Check that your folders permissions are ok.
export snapshot from rect 0,0,100,100 of this card to url
("binfile:"&specialFolderPath("resources")&"/Pic.jpg") as JPEG
See if this helps when using
If you use the path /tempMedia that forces it to the root of the
filesystem and if there isn't a folder /tempmedia, it'll fail. Either
leave off the preceding slash, or prepend it with a . <--(a dot) which
designates the current directory.
On Sat, Jul 28, 2018 at 3:40 PM Peter Bogdanoff via u
That is (or use variables for the filename):
> export image "testimage.jpg" to file "/tempMedia/testimage.jpg" as JPEG
> On Jul 28, 2018, at 2:37 PM, Peter Bogdanoff via use-livecode
> wrote:
>
> Hi,
>
> Try using this syntax:
> export image "tImage" to file "/tempMedia/testimage.jpg" as
Hi,
Try using this syntax:
export image "tImage" to file "/tempMedia/testimage.jpg" as JPEG
I think you need binfile to read but not to write.
Peter
> On Jul 28, 2018, at 1:41 PM, Stephen MacLean via use-livecode
> wrote:
>
> Hi All,
>
> Been a long time since I’ve done file work with LC,
1) Since working with 9.0.1. RC1 I have not been able to get a home screen icon
to show. I get something generic... Everything is set in the SA settings…
Well, I kept on with development, saying "I'll worry about the icon later"
Then today I added some devices to my Apple Developer Profile and
Hi All,
Been a long time since I’ve done file work with LC, but I’m having an issue
saving an image to a file:
# set the defaultFolder to the folder containing the stackfile
set the itemDelimiter to slash
get the effective filename of this stack
set the defaultFolder to item 1 to -2 of it
pu
A little late to the respond on this but I’d send a HTTP HEAD request. You will
get a 200 response back with no data if you have an http connection to the url
you specify. You could use your own server to send the request to but it is
common to use a well known service such as google to send the
Keith Clarke wrote:
> Is anyone running LS Server on CentOS 6?
> I notice that only version 7 is officially supported and not being a
> Linux expert, I’d like to know if this server OS would need to be
> upgraded before attempting anything with LC server on it.
"Officially Supported" only design
Bob...
Wondering if you would post the windows-version of this technique again... or
copy it to this forum, ideally?
The dropbox entry I can find is expired.
> Subject: Re: Checking if internet is connected using tsNet?
>
> And don't forget my telnet technique. Telnet will tell you if there i
Hi Folks,
Is anyone running LS Server on CentOS 6?
I notice that only version 7 is officially supported and not being a Linux
expert, I’d like to know if this server OS would need to be upgraded before
attempting anything with LC server on it.
TIA
Keith
__
13 matches
Mail list logo