RIP Dan Shafer

2017-06-21 Thread Jerry Jensen via use-livecode
We lost Dan Shafer yesterday. He did a lot for LiveCode. I’m sure anybody who 
met him will miss him.
.Jerry


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Widgets as Buttons

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
Re:  using widgets for buttons like disclosure triangles.

On mobile they seem very unresponsive.

Jacque says you have to actually tap the pixels inside the defined svg area.

We had this discussion before relative to using small graphics as buttons. So, 
are we back to making small groups with a background graphic fill white with 
blendlevel set to 1 or tranparent button on top etc.?

In Spotify, they have super small, tiny disclosure, reveal, popup thin arrows 
and they work so well, without your finger having to hit some exact target 
zone… It's almost as if for a small icon that may only be 20 X 20 the 
responsive zone is more like 50X50 with the icon in the middle so even "big 
thumbs" have no trouble.

Any thoughts on best approach? What are you doing?

One wonders if we need an enhancement request (if even possible) to set an 
object prop like:

fullRectResponsive = true

then mousedown/up works whereever you touch inside rect.

or something like that.

BR


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Levure??

2017-06-21 Thread Mike Kerner via use-livecode
Here's the wiki
https://github.com/trevordevore/levure/wiki
Here's Trevor's youtube channel, where you can see some levure videos
https://www.youtube.com/channel/UCluXVDvheCjGSJmCMssc0fw



On Wed, Jun 21, 2017 at 4:54 PM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks, Roger! :):)
> Bill P
> > On Jun 21, 2017, at 1:51 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > https://www.mail-archive.com/use-livecode@lists.runrev.com/msg82202.html
> >
> > ~Roger
> >
> > On Wed, Jun 21, 2017 at 4:48 PM, William Prothero via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Could somebody post a link to info about Levure? i must have missed it
> >> when it was first discussed. I have no idea what Levure’s purpose is,
> where
> >> to get it, or ….  However, it sounds (from the discussions) like it
> might
> >> be useful.
> >>
> >> Thanks,
> >> Bill P
> >>
> >> William A. Prothero
> >> http://earthlearningsolution.org/
> >>
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Bonner via use-livecode
Cool!  thanks Monte!

On Wed, Jun 21, 2017 at 5:48 PM, Mark Talluto via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > On Jun 21, 2017, at 4:40 PM, Monte Goulding via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi Guys
> >
> > I have done _some_ work on an autocomplete framework which could also be
> used for a snippet library. It is something we have on the radar to
> complete and integrate into the script editor but I’m not sure if we will
> be able to get to it before 9 goes to RC.
> >
> > Cheers
> >
> > Monte
>
> That is super exciting Monte.
>
> Best regards,
>
> Mark Talluto
> livecloud.io 
> nursenotes.net 
> canelasoftware.com 
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

HD Windows Video Formats

2017-06-21 Thread Jeff Reynolds via use-livecode
Hi,

Just curious what video wrappers and codecs folks are using for HD (1080) for 
windows 10 playback (surface) with the directshow drivers native now in 
livecode.

its an odd set listed in the directshow format page

https://msdn.microsoft.com/en-us/library/windows/desktop/dd407173(v=vs.85).aspx 


wmv looks to work but has a 10mps max which has some issues with underwater 
shots with lots of solids. the h264 compression option looks to be wrapping in 
an mpeg2 and not quite sure of a path to get there. Does anyone do h264 that 
playback decoders installed under generic win10 install and a path to how you 
made the files?

thanks

jeff reynolds
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mark Talluto via use-livecode
> On Jun 21, 2017, at 4:40 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> Hi Guys
> 
> I have done _some_ work on an autocomplete framework which could also be used 
> for a snippet library. It is something we have on the radar to complete and 
> integrate into the script editor but I’m not sure if we will be able to get 
> to it before 9 goes to RC.
> 
> Cheers
> 
> Monte

That is super exciting Monte. 

Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Monte Goulding via use-livecode

> On 22 Jun 2017, at 3:20 am, Mike Bonner via use-livecode 
>  wrote:
> 
> Perhaps a different direction here?  I think it would be helpful to me as a
> perpetual newbie to have the option to insert common scripts on demand.
> Maybe a context sensitive dropdown with a mouseup framework for buttons,
> for fields, textchanged, keyup, keydown.  Maybe backed by a personal
> snippet library so that once one creates their perfect script for entering
> only floating numbers.. or whatever, make the handlers snippable so that
> they can be added to a local repository for that object type.

Hi Guys

I have done _some_ work on an autocomplete framework which could also be used 
for a snippet library. It is something we have on the radar to complete and 
integrate into the script editor but I’m not sure if we will be able to get to 
it before 9 goes to RC.

Cheers

Monte
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Mark Talluto via use-livecode
> On Jun 21, 2017, at 11:31 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> Since 8, standalones have loaded their externals on startup - so no script 
> runs before the standalone expects them to be where they should. One way to 
> resolve this is to send a message *before* the externals are bound, allowing 
> the 'spit out' solution to work again by intercepting standaloneSaving / 
> Saved and handling an appropriate message on startup.

I am just working on this problem today. I need to be able to spit out the 
needed externals before the engine tries to use them. Otherwise I am getting an 
'Initialization Error' dialog stating 'failed to load external'.


Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android native widgets

2017-06-21 Thread Ali Lloyd via use-livecode
Further to Kevin's note about creating native widgets on Android in another
thread, I thought I'd post the LCB template here that gets you all the
android native widgets (that is, classes in the android.widget package -
see here:
https://developer.android.com/reference/android/widget/package-summary.html)

I have set it up so you can simply use the merge function with the
appropriate value of tWidget - Button, DatePicker, EditText (i.e. native
field), etc

widget com.livecode.widget.native.android.[[tWidget]]

use com.livecode.foreign
use com.livecode.java
use com.livecode.widget
use com.livecode.canvas
use com.livecode.engine
use com.livecode.library.widgetutils

metadata version is "1.0.0"
metadata author is "LiveCode"
metadata title is "Android Native [[tWidget]]"


__safe foreign handler _JNI_GetAndroidEngine() returns JObject \
   binds to
"java:com.runrev.android.Engine>getEngine()Lcom/runrev/android/Engine;!static"
__safe foreign handler _JNI_GetEngineContext(in pEngine as JObject) returns
JObject \
   binds to "java:android.view.View>getContext()Landroid/content/Context;"

// Handlers for creating and attaching view
__safe foreign handler _JNI_CreateView(in pContext as JObject) returns
JObject \
   binds to
"javaui:android.widget.[[tWidget]]>new(Landroid/content/Context;)"
__safe foreign handler _JNI_AddView(in pParentView as JObject, in
pChildView as JObject) returns nothing \
   binds to "javaui:android.view.ViewGroup>addView(Landroid/view/View;)V"

private variable mNativeObj as optional JObject
private variable mOpen as Boolean

private handler IsAndroid() returns Boolean
return the operating system is "android"
end handler

public handler OnCreate()
put false into mOpen
end handler

private handler InitView()
// Create an android button using the Engine Context
variable tEngine as JObject
put _JNI_GetAndroidEngine() into tEngine

variable tContext as JObject
put _JNI_GetEngineContext(tEngine) into tContext
put _JNI_CreateView(tContext) into mNativeObj

// put my native window into tParent
variable tParent as Pointer
MCWidgetGetMyStackNativeView(tParent)

// wrap the parent pointer
variable tParentObj as JObject
put PointerToJObject(tParent) into tParentObj

// add the view
_JNI_AddView(tParentObj, mNativeObj)

// get the pointer from the view and set the native layer
variable tPointer as Pointer
put PointerFromJObject(mNativeObj) into tPointer
set my native layer to tPointer
end handler

private handler FinalizeView()
set my native layer to nothing
put nothing into mNativeObj
end handler

public handler OnOpen()
put true into mOpen
if IsAndroid() then
   InitView()
end if
end handler

public handler OnClose()
   if IsAndroid() then
  FinalizeView()
   end if
put false into mOpen
end handler

public handler OnPaint()
if IsAndroid() then
return
end if

fill text "Native [[tWidget]]" at center of my bounds on this canvas
end handler

end widget

I've made a screenshot with a selection of widgets here:
https://www.dropbox.com/s/67tm95mnniwobqt/Screenshot_2017-06-21-22-46-04.png

Obviously none of these things actually do anything until you hook into
their properties and listeners, but it is relatively straightforward to do
this. If you're interested you'll need to look up the individual class in
the android API and find the appropriate methods - the button example
should give you an idea of how to do this:
https://github.com/livecode/livecode/blob/develop/extensions/widgets/androidbutton/androidbutton.lcb
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure??

2017-06-21 Thread William Prothero via use-livecode
Thanks, Roger! :):)
Bill P
> On Jun 21, 2017, at 1:51 PM, Roger Eller via use-livecode 
>  wrote:
> 
> https://www.mail-archive.com/use-livecode@lists.runrev.com/msg82202.html
> 
> ~Roger
> 
> On Wed, Jun 21, 2017 at 4:48 PM, William Prothero via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Could somebody post a link to info about Levure? i must have missed it
>> when it was first discussed. I have no idea what Levure’s purpose is, where
>> to get it, or ….  However, it sounds (from the discussions) like it might
>> be useful.
>> 
>> Thanks,
>> Bill P
>> 
>> William A. Prothero
>> http://earthlearningsolution.org/
>> 
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Levure??

2017-06-21 Thread Roger Eller via use-livecode
https://www.mail-archive.com/use-livecode@lists.runrev.com/msg82202.html

~Roger

On Wed, Jun 21, 2017 at 4:48 PM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Could somebody post a link to info about Levure? i must have missed it
> when it was first discussed. I have no idea what Levure’s purpose is, where
> to get it, or ….  However, it sounds (from the discussions) like it might
> be useful.
>
> Thanks,
> Bill P
>
> William A. Prothero
> http://earthlearningsolution.org/
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Levure??

2017-06-21 Thread William Prothero via use-livecode
Could somebody post a link to info about Levure? i must have missed it when it 
was first discussed. I have no idea what Levure’s purpose is, where to get it, 
or ….  However, it sounds (from the discussions) like it might be useful.

Thanks,
Bill P

William A. Prothero
http://earthlearningsolution.org/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread J. Landman Gay via use-livecode

On 6/21/17 1:31 PM, Mark Waddingham via use-livecode wrote:
Since 8, standalones have loaded their externals on startup - so no 
script runs before the standalone expects them to be where they should. 
One way to resolve this is to send a message *before* the externals are 
bound, allowing the 'spit out' solution to work again by intercepting 
standaloneSaving / Saved and handling an appropriate message on startup.


Could you expand on this a little bit? StandaloneSaving/Saved are only 
sent during a build, so I'm not sure how I'd use those to intercept a 
startup message.


Also, when do the externals actually load? If they load at startup 
before any messages are sent, then won't the externals already be done 
with before the stack receives the startup message?



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode

You're right, not a good solution for newcomers.

However, I think there's a (perhaps minority) class of newcomers - more 
or less, those who come as experienced developers in another language / 
IDE - for whom a good setup would include ST + linter +  just enough of 
Levure to provide the external editor interface. Not the whole framework 
- but the part that allows use of existing, powerful programming editor(s).


Then there's the remainder of newcomers, and I definitely agree many of 
then would benefit from a 'snippet' library / plugin. Probably a good 
candidate for crowdfunding, or for prompting someone to realize they 
would like it for their own use.


Alex.


On 21/06/2017 20:30, Mike Kerner via use-livecode wrote:

I am using ST and Levure, now, and I have the linter working, and am a
cheerleader for the setup.  However, that is not a good solution for
beginners, IMHO.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Kerner via use-livecode
I am using ST and Levure, now, and I have the linter working, and am a
cheerleader for the setup.  However, that is not a good solution for
beginners, IMHO.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Thank you!

The spaces where the culprit

Now working :)

> On Jun 21, 2017, at 11:40 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> If the browser widget is expecting an  encoded URL (i.e. %20 vs a space)
> then instead of replacing characters, you should use the urlEncode
> function, as in
> 
> put URLEncode(tFile) into tFile
> 
> This way any characters (spaces or Unicode or whatever) that are an
> issue are properly encoded.
> 
> 
> 
> On 6/21/2017 2:24 PM, panagiotis merakos via use-livecode wrote:
>> @Roger
>> 
>> Nice!
>> 
>> This code works with filenames with spaces, too:
>> 
>> on mouseUp
>> 
>> local tFile
>> 
>> answer file "Please choose the file you would like to display" with type "PDF
>> document|pdf|PDF"
>> 
>> if it is not empty then
>> 
>> put it into tFile
>> 
>> replace space with "%20" in tFile
>> 
>> set the url of widget 1 to tFile
>> 
>> end if
>> 
>> end mouseUp
>> 
>> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Have you tried "my%20Pdf"?
>>> 
>>> ~Roger
>>> 
>>> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Hmm, it seems that the spaces are the culprit. I did a quick test, and
 selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
>>> throws
 an error.
 
 This looks like a bug to me :)
 
 Best,
 Panos
 --
 
 On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> It contains spaces, but no unicode that I can see.  i.e.
>>> "Transportation
> Bus Software Laptop.pdf”
> 
> Thank you!
> 
> 
>> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>> Hi John,
>> 
>> Does the pdf filename you select contain any unicode characters?
>> 
>> Best,
>> Panos
>> --
>> 
>> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
>> use-livecode@lists.runrev.com  wrote:
>>> Hi All,
>>> 
>>> I am trying to display a PDF in a browser widget using the tutorial
> here:
>>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> http://lessons.livecode.com/m/4071/l/727199-how-do-i->
>>> display-a-pdf-in-livecode  http://lessons.livecode.com/>
>>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>>> 
>>> and this code:
>>> 
>>> on mouseUp
>>>  local tFile
>>>  answer file "Please choose the file you would like to display"
>>> with
>>> type "PDF document|pdf|PDF"
>>>  if it is not empty then
>>> put it into tFile
>>> set the url of widget "browser" to tFile
>>>  end if
>>> end mouseUp
>>> 
>>> 
>>> I’m getting this error:
>>> 
>>> button "Button": execution error at line 6 (extension: error occured
> with
>>> domain) near "runtime", char 1
>>> 
>>> 
>>> Would this be a bug, or am I doing something incorrectly?
>>> 
>>> 
>>> Thank you!
>>> John Patten
>>> SUSD
 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Paul Dupuis via use-livecode
If the browser widget is expecting an  encoded URL (i.e. %20 vs a space)
then instead of replacing characters, you should use the urlEncode
function, as in

put URLEncode(tFile) into tFile

This way any characters (spaces or Unicode or whatever) that are an
issue are properly encoded.



On 6/21/2017 2:24 PM, panagiotis merakos via use-livecode wrote:
> @Roger
>
> Nice!
>
> This code works with filenames with spaces, too:
>
> on mouseUp
>
> local tFile
>
> answer file "Please choose the file you would like to display" with type "PDF
> document|pdf|PDF"
>
> if it is not empty then
>
> put it into tFile
>
> replace space with "%20" in tFile
>
> set the url of widget 1 to tFile
>
> end if
>
> end mouseUp
>
> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Have you tried "my%20Pdf"?
>>
>> ~Roger
>>
>> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Hmm, it seems that the spaces are the culprit. I did a quick test, and
>>> selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
>> throws
>>> an error.
>>>
>>> This looks like a bug to me :)
>>>
>>> Best,
>>> Panos
>>> --
>>>
>>> On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>
 It contains spaces, but no unicode that I can see.  i.e.
>> "Transportation
 Bus Software Laptop.pdf”

 Thank you!


> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
 use-livecode@lists.runrev.com> wrote:
> Hi John,
>
> Does the pdf filename you select contain any unicode characters?
>
> Best,
> Panos
> --
>
> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com > Hi All,
>>
>> I am trying to display a PDF in a browser widget using the tutorial
 here:
>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
 http://lessons.livecode.com/m/4071/l/727199-how-do-i->
>> display-a-pdf-in-livecode 
>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>>
>> and this code:
>>
>> on mouseUp
>>   local tFile
>>   answer file "Please choose the file you would like to display"
>> with
>> type "PDF document|pdf|PDF"
>>   if it is not empty then
>>  put it into tFile
>>  set the url of widget "browser" to tFile
>>   end if
>> end mouseUp
>>
>>
>> I’m getting this error:
>>
>> button "Button": execution error at line 6 (extension: error occured
 with
>> domain) near "runtime", char 1
>>
>>
>> Would this be a bug, or am I doing something incorrectly?
>>
>>
>> Thank you!
>> John Patten
>> SUSD
>>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Mike Bonner via use-livecode
couldn't you also..

put quote & it & quote into tFile

On Wed, Jun 21, 2017 at 12:24 PM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> @Roger
>
> Nice!
>
> This code works with filenames with spaces, too:
>
> on mouseUp
>
> local tFile
>
> answer file "Please choose the file you would like to display" with type
> "PDF
> document|pdf|PDF"
>
> if it is not empty then
>
> put it into tFile
>
> replace space with "%20" in tFile
>
> set the url of widget 1 to tFile
>
> end if
>
> end mouseUp
>
> On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Have you tried "my%20Pdf"?
> >
> > ~Roger
> >
> > On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Hmm, it seems that the spaces are the culprit. I did a quick test, and
> > > selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
> > throws
> > > an error.
> > >
> > > This looks like a bug to me :)
> > >
> > > Best,
> > > Panos
> > > --
> > >
> > > On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > It contains spaces, but no unicode that I can see.  i.e.
> > "Transportation
> > > > Bus Software Laptop.pdf”
> > > >
> > > > Thank you!
> > > >
> > > >
> > > > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > > > use-livecode@lists.runrev.com> wrote:
> > > > >
> > > > > Hi John,
> > > > >
> > > > > Does the pdf filename you select contain any unicode characters?
> > > > >
> > > > > Best,
> > > > > Panos
> > > > > --
> > > > >
> > > > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > > > use-livecode@lists.runrev.com  runrev.com
> > >>
> > > > wrote:
> > > > >
> > > > >> Hi All,
> > > > >>
> > > > >> I am trying to display a PDF in a browser widget using the
> tutorial
> > > > here:
> > > > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > > > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > > > >> display-a-pdf-in-livecode  > > > http://lessons.livecode.com/>
> > > > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > > > >>
> > > > >> and this code:
> > > > >>
> > > > >> on mouseUp
> > > > >>   local tFile
> > > > >>   answer file "Please choose the file you would like to display"
> > with
> > > > >> type "PDF document|pdf|PDF"
> > > > >>   if it is not empty then
> > > > >>  put it into tFile
> > > > >>  set the url of widget "browser" to tFile
> > > > >>   end if
> > > > >> end mouseUp
> > > > >>
> > > > >>
> > > > >> I’m getting this error:
> > > > >>
> > > > >> button "Button": execution error at line 6 (extension: error
> occured
> > > > with
> > > > >> domain) near "runtime", char 1
> > > > >>
> > > > >>
> > > > >> Would this be a bug, or am I doing something incorrectly?
> > > > >>
> > > > >>
> > > > >> Thank you!
> > > > >> John Patten
> > > > >> SUSD
> > >
> > >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Mark Waddingham via use-livecode

On 2017-06-21 19:42, Richard Gaskin via use-livecode wrote:

One of the things I liked about SuperCard was that Bill Appleton had
written his own resource fork into his data file format.  This allowed
SC to store any number of data and even code (XCMDs and DFCNs) within
the data fork, without relying on the Mac's old file system resource
fork.


Mac Classic was a decidedly simpler OS than modern OS's...


Would it be worth considering some means of being able to store
externals directly in the stack file?


You mean like storing them in a custom property and spitting them out on 
startup into an appropriate folder (one which the OS clears out at 
appropriate times)?


What magic is dependent on having an external be a separate file on 
disk?


Dynamic linker magic - neither Windows nor Linux (where the 'problem' 
arises) have system APIs which allow shared libraries to be loaded from 
sections of a file. This is quite reasonable from an OS maker's point of 
view - after all, the point of shared libraries is that they can be 
shared.


Admittedly, systems like LiveCode use shared libraries for extensibility 
so the sharing aspect isn't actually all that interesting for this case.


However, the systems which don't have a 'bundle' type abstraction (i.e. 
Windows and Linux) have good stories for installation - there are 
numerous Windows Installer creators, and all Linux distros have their 
own package management system.



Couldn't the entry point for that code be found at least as easily
(and perhaps slightly more efficiently) if stored within the stack
file?


There's a lot more to it than that - a shared library is mostly linked, 
but the OS does a final link step at the point they are loaded. There 
are all kinds of things which go on there - resolution of dependent 
libraries, versioning, rewriting various bits of memory to ensure 
everything references the right addresses, allocated per-thread storage, 
etc.


Whilst it would be possible to do, it would be a huge sink of resources 
to solve a problem which has been solved by the relevant OSes in their 
own way - i.e. installers / packages. It would also be a huge 
maintenance burden - i.e. lets spend our time solving problems which 
haven't already been solved perfectly well.


Since 8, standalones have loaded their externals on startup - so no 
script runs before the standalone expects them to be where they should. 
One way to resolve this is to send a message *before* the externals are 
bound, allowing the 'spit out' solution to work again by intercepting 
standaloneSaving / Saved and handling an appropriate message on startup.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Alex Tweedly via use-livecode
Why not just use Sublime Text editor, with Levure to allow you to use an 
external editor?


(or plug in to that system to allow other external editors to be used)

Other than the fact that I can't get the 'linter' to work (and I know 
that'll just be me doing something stupid and wrong :-),  it seems to 
give everything I could want in a text editor - just takes a bit of a 
learning curve.


-- Alex.

On 21/06/2017 19:18, Mike Kerner via use-livecode wrote:

I like the idea of going even another step further, and having macros that
we can use.  An example from another tool I use adds the ability to add
structures (e.g. if-then-else, repeat, etc.), and even being able to hilite
text and have the macro do something with the text, for example
someContainer is empty

Hilite above, choose the macro (right-clicking or from a button in the
header), choose custom if-then-else macro, and the hilited text is replaced
with

if somecontainer is empty then

else #not (somecontainer is empty)
end if #somecontainer is empty

and on the blank line between the "if" and the "else", the insertion carat
is placed, waiting for the next thing to be added.

Ya know, if we had a crowdfund we could put up a bid for this and already
have the money set aside to assign it...

On Wed, Jun 21, 2017 at 2:07 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:


Mike Bonner wrote:


Perhaps a different direction here?  I think it would be helpful to me
as a perpetual newbie to have the option to insert common scripts on
demand.
Maybe a context sensitive dropdown with a mouseup framework for
buttons, for fields, textchanged, keyup, keydown.

HyperCard:


SuperCard:


and even MetaCard:


...all provided popup menus in the Script Editor to insert handler
outlines and more.

SC's was based on templates that included a tag for specifying the
insertion point - very handy for modifying/extending them.

That sort of guidance can go a long way in helping newcomers more readily
understand the scope of messages they can respond to.



Maybe backed by a personal snippet library so that once one creates
their perfect script for entering only floating numbers.. or whatever,
make the handlers snippable so that they can be added to a local
repository for that object type.

Extensibility would be very valuable.

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode







___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
@Roger

Nice!

This code works with filenames with spaces, too:

on mouseUp

local tFile

answer file "Please choose the file you would like to display" with type "PDF
document|pdf|PDF"

if it is not empty then

put it into tFile

replace space with "%20" in tFile

set the url of widget 1 to tFile

end if

end mouseUp

On Wed, Jun 21, 2017 at 7:19 PM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Have you tried "my%20Pdf"?
>
> ~Roger
>
> On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hmm, it seems that the spaces are the culprit. I did a quick test, and
> > selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf"
> throws
> > an error.
> >
> > This looks like a bug to me :)
> >
> > Best,
> > Panos
> > --
> >
> > On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > It contains spaces, but no unicode that I can see.  i.e.
> "Transportation
> > > Bus Software Laptop.pdf”
> > >
> > > Thank you!
> > >
> > >
> > > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > > >
> > > > Hi John,
> > > >
> > > > Does the pdf filename you select contain any unicode characters?
> > > >
> > > > Best,
> > > > Panos
> > > > --
> > > >
> > > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > > use-livecode@lists.runrev.com  >>
> > > wrote:
> > > >
> > > >> Hi All,
> > > >>
> > > >> I am trying to display a PDF in a browser widget using the tutorial
> > > here:
> > > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > > >> display-a-pdf-in-livecode  > > http://lessons.livecode.com/>
> > > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > > >>
> > > >> and this code:
> > > >>
> > > >> on mouseUp
> > > >>   local tFile
> > > >>   answer file "Please choose the file you would like to display"
> with
> > > >> type "PDF document|pdf|PDF"
> > > >>   if it is not empty then
> > > >>  put it into tFile
> > > >>  set the url of widget "browser" to tFile
> > > >>   end if
> > > >> end mouseUp
> > > >>
> > > >>
> > > >> I’m getting this error:
> > > >>
> > > >> button "Button": execution error at line 6 (extension: error occured
> > > with
> > > >> domain) near "runtime", char 1
> > > >>
> > > >>
> > > >> Would this be a bug, or am I doing something incorrectly?
> > > >>
> > > >>
> > > >> Thank you!
> > > >> John Patten
> > > >> SUSD
> >
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread Roger Eller via use-livecode
Have you tried "my%20Pdf"?

~Roger

On Wed, Jun 21, 2017 at 2:04 PM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hmm, it seems that the spaces are the culprit. I did a quick test, and
> selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws
> an error.
>
> This looks like a bug to me :)
>
> Best,
> Panos
> --
>
> On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It contains spaces, but no unicode that I can see.  i.e. "Transportation
> > Bus Software Laptop.pdf”
> >
> > Thank you!
> >
> >
> > > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Hi John,
> > >
> > > Does the pdf filename you select contain any unicode characters?
> > >
> > > Best,
> > > Panos
> > > --
> > >
> > > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > > use-livecode@lists.runrev.com >
> > wrote:
> > >
> > >> Hi All,
> > >>
> > >> I am trying to display a PDF in a browser widget using the tutorial
> > here:
> > >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> > http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> > >> display-a-pdf-in-livecode  > http://lessons.livecode.com/>
> > >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> > >>
> > >> and this code:
> > >>
> > >> on mouseUp
> > >>   local tFile
> > >>   answer file "Please choose the file you would like to display" with
> > >> type "PDF document|pdf|PDF"
> > >>   if it is not empty then
> > >>  put it into tFile
> > >>  set the url of widget "browser" to tFile
> > >>   end if
> > >> end mouseUp
> > >>
> > >>
> > >> I’m getting this error:
> > >>
> > >> button "Button": execution error at line 6 (extension: error occured
> > with
> > >> domain) near "runtime", char 1
> > >>
> > >>
> > >> Would this be a bug, or am I doing something incorrectly?
> > >>
> > >>
> > >> Thank you!
> > >> John Patten
> > >> SUSD
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Kerner via use-livecode
I like the idea of going even another step further, and having macros that
we can use.  An example from another tool I use adds the ability to add
structures (e.g. if-then-else, repeat, etc.), and even being able to hilite
text and have the macro do something with the text, for example
someContainer is empty

Hilite above, choose the macro (right-clicking or from a button in the
header), choose custom if-then-else macro, and the hilited text is replaced
with

if somecontainer is empty then

else #not (somecontainer is empty)
end if #somecontainer is empty

and on the blank line between the "if" and the "else", the insertion carat
is placed, waiting for the next thing to be added.

Ya know, if we had a crowdfund we could put up a bid for this and already
have the money set aside to assign it...

On Wed, Jun 21, 2017 at 2:07 PM, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mike Bonner wrote:
>
> > Perhaps a different direction here?  I think it would be helpful to me
> > as a perpetual newbie to have the option to insert common scripts on
> > demand.
> > Maybe a context sensitive dropdown with a mouseup framework for
> > buttons, for fields, textchanged, keyup, keydown.
>
> HyperCard:
> 
>
> SuperCard:
> 
>
> and even MetaCard:
> 
>
> ...all provided popup menus in the Script Editor to insert handler
> outlines and more.
>
> SC's was based on templates that included a tag for specifying the
> insertion point - very handy for modifying/extending them.
>
> That sort of guidance can go a long way in helping newcomers more readily
> understand the scope of messages they can respond to.
>
>
> > Maybe backed by a personal snippet library so that once one creates
> > their perfect script for entering only floating numbers.. or whatever,
> > make the handlers snippable so that they can be added to a local
> > repository for that object type.
>
> Extensibility would be very valuable.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.com
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Richard Gaskin via use-livecode

Mike Bonner wrote:

> Perhaps a different direction here?  I think it would be helpful to me
> as a perpetual newbie to have the option to insert common scripts on
> demand.
> Maybe a context sensitive dropdown with a mouseup framework for
> buttons, for fields, textchanged, keyup, keydown.

HyperCard:


SuperCard:


and even MetaCard:


...all provided popup menus in the Script Editor to insert handler 
outlines and more.


SC's was based on templates that included a tag for specifying the 
insertion point - very handy for modifying/extending them.


That sort of guidance can go a long way in helping newcomers more 
readily understand the scope of messages they can respond to.



> Maybe backed by a personal snippet library so that once one creates
> their perfect script for entering only floating numbers.. or whatever,
> make the handlers snippable so that they can be added to a local
> repository for that object type.

Extensibility would be very valuable.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hmm, it seems that the spaces are the culprit. I did a quick test, and
selecting a pdf "myPdf" works fine, whereas selecting a pdf "my Pdf" throws
an error.

This looks like a bug to me :)

Best,
Panos
--

On Wed, Jun 21, 2017 at 6:50 PM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It contains spaces, but no unicode that I can see.  i.e. "Transportation
> Bus Software Laptop.pdf”
>
> Thank you!
>
>
> > On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi John,
> >
> > Does the pdf filename you select contain any unicode characters?
> >
> > Best,
> > Panos
> > --
> >
> > On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> Hi All,
> >>
> >> I am trying to display a PDF in a browser widget using the tutorial
> here:
> >> http://lessons.livecode.com/m/4071/l/727199-how-do-i- <
> http://lessons.livecode.com/m/4071/l/727199-how-do-i->
> >> display-a-pdf-in-livecode  http://lessons.livecode.com/>
> >> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
> >>
> >> and this code:
> >>
> >> on mouseUp
> >>   local tFile
> >>   answer file "Please choose the file you would like to display" with
> >> type "PDF document|pdf|PDF"
> >>   if it is not empty then
> >>  put it into tFile
> >>  set the url of widget "browser" to tFile
> >>   end if
> >> end mouseUp
> >>
> >>
> >> I’m getting this error:
> >>
> >> button "Button": execution error at line 6 (extension: error occured
> with
> >> domain) near "runtime", char 1
> >>
> >>
> >> Would this be a bug, or am I doing something incorrectly?
> >>
> >>
> >> Thank you!
> >> John Patten
> >> SUSD
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com 
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com 
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
It contains spaces, but no unicode that I can see.  i.e. "Transportation Bus 
Software Laptop.pdf”

Thank you!


> On Jun 21, 2017, at 10:47 AM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hi John,
> 
> Does the pdf filename you select contain any unicode characters?
> 
> Best,
> Panos
> --
> 
> On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Hi All,
>> 
>> I am trying to display a PDF in a browser widget using the tutorial here:
>> http://lessons.livecode.com/m/4071/l/727199-how-do-i- 
>> 
>> display-a-pdf-in-livecode > 
>> m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>> 
>> and this code:
>> 
>> on mouseUp
>>   local tFile
>>   answer file "Please choose the file you would like to display" with
>> type "PDF document|pdf|PDF"
>>   if it is not empty then
>>  put it into tFile
>>  set the url of widget "browser" to tFile
>>   end if
>> end mouseUp
>> 
>> 
>> I’m getting this error:
>> 
>> button "Button": execution error at line 6 (extension: error occured with
>> domain) near "runtime", char 1
>> 
>> 
>> Would this be a bug, or am I doing something incorrectly?
>> 
>> 
>> Thank you!
>> John Patten
>> SUSD
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Display PDF in Browser Widget Error?

2017-06-21 Thread panagiotis merakos via use-livecode
Hi John,

Does the pdf filename you select contain any unicode characters?

Best,
Panos
--

On Wed, Jun 21, 2017 at 6:31 PM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi All,
>
> I am trying to display a PDF in a browser widget using the tutorial here:
> http://lessons.livecode.com/m/4071/l/727199-how-do-i-
> display-a-pdf-in-livecode  m/4071/l/727199-how-do-i-display-a-pdf-in-livecode>
>
> and this code:
>
> on mouseUp
>local tFile
>answer file "Please choose the file you would like to display" with
> type "PDF document|pdf|PDF"
>if it is not empty then
>   put it into tFile
>   set the url of widget "browser" to tFile
>end if
> end mouseUp
>
>
> I’m getting this error:
>
> button "Button": execution error at line 6 (extension: error occured with
> domain) near "runtime", char 1
>
>
> Would this be a bug, or am I doing something incorrectly?
>
>
> Thank you!
> John Patten
> SUSD
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread ELS prothero via use-livecode
What about Mike Doub’s MasterLibrary?
I just tried it in latest LC, and it fails because there is a function named a 
reserved word. But, it seems like a valuable resource that might be used as a 
starting point?
Best,
Bill

William Prothero, PhD
Professor Emeritus
University of California, Santa Barbara
http://earthlearningsolutions.org

> On Jun 21, 2017, at 8:03 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Kevin, 
> 
> Thanks for jumping in, very inspiring work you have all been doing recently. 
> One has to wonder if anyone sleeps in Edinborough!
> 
> I've been having a running conversation with Richard on how to make small 
> solutions available to the whole community, in the spirit of "this would make 
> adoption of LC as a platform more tenable."  I had ideas about how to turn 
> that into revenue  for LC company also, But Richard pointed out the I was a 
> bit naïve on ROI (which I was/am)  but that is a different discussion.
> 
> Simply put: one can enter google "SQL Query Descending Order" and get 100's 
> of hits with examples.
> OR (different context entirely but…_)
> Go to the Unity plug in store and find 1000+ plugins (open source) free or 
> from 2.99 to 99.99. 
> 
> Newbies and even us "old timers" need a leg up on "how to" with 
> 
> a) examples scripts
> b) actual LC native binary stacks as demos.
> c) script only behaviors attached to custom controls
> (I'm only getting into this now… awesome potential for "plug-ins)
> c) central respository/index of some kind
> d) ways we all can contribute.
> 
> presently key info is fragmented across.
> 
> 1) dictionary (no or very few robust examples)
> 2) API tab 
> 3) on line lessons (many of which are obsolete)
> 4) answers in the email list
> 5) forum treads
> 6) blogs
> 7) Course (different from on line lessons?)
> 8) various develop web site where they off there "stuff" for free
> 9) Rev-online
> 9) behind paywalls like Global Connect
> 
> So, fantastic work you are doing! Indeed, but please consider the "high 
> level" documentation/indexing/global LC knowledge base as important a key 
> feature to develop for the platform as new "deep tech" features.
> 
> Brahmanathaswami
> 
> 
> On 6/20/17, 8:06 AM, "use-livecode on behalf of Kevin Miller via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>Sooner would have been better. However just in case you missed it, the
>architecture has been available to play with for many months and a native
>field for Android is doable in 9-dp-7 posted last week. You have to change
>a few words in Ali¹s native button LCB file - he explained which ones in
>his talk. We¹ll follow with a blog post on that too shortly. There is a
>widget course available https://livecode.com/topic/introduction-2/ now
>which covers getting started with widgets. We will add in the info about
>the FFI layer to that course shortly. We will also modify the object Ali
>supplied to cover a whole variety of other native controls from the tools
>palette given each is just a tweak to that LCB. Its all in there and open
>source right now. Objective-C (and thus iOS) will be in DP 8.
> 
>Kind regards,
> 
>Kevin
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Richard Gaskin via use-livecode
Making scripted elements is a great thing for scripters to do.  And the 
one thing we all have in common here is that we're all scripters.


There should be no need to make LC Ltd's C++ experts set aside work on 
the engine to build these instead.


What prevents any of us from delivering those?

--
 Richard Gaskin
 Fourth World Systems


Sannyasin Brahmanathaswami wrote:

Kevin, 


Thanks for jumping in, very inspiring work you have all been doing recently. 
One has to wonder if anyone sleeps in Edinborough!

I've been having a running conversation with Richard on how to make small solutions 
available to the whole community, in the spirit of "this would make adoption of LC 
as a platform more tenable."  I had ideas about how to turn that into revenue  for 
LC company also, But Richard pointed out the I was a bit naïve on ROI (which I was/am)  
but that is a different discussion.

Simply put: one can enter google "SQL Query Descending Order" and get 100's of 
hits with examples.
OR (different context entirely but…_)
Go to the Unity plug in store and find 1000+ plugins (open source) free or from 2.99 to 99.99. 

Newbies and even us "old timers" need a leg up on "how to" with 


a) examples scripts
b) actual LC native binary stacks as demos.
c) script only behaviors attached to custom controls
 (I'm only getting into this now… awesome potential for "plug-ins)
c) central respository/index of some kind
d) ways we all can contribute.

presently key info is fragmented across.

1) dictionary (no or very few robust examples)
2) API tab 
3) on line lessons (many of which are obsolete)

4) answers in the email list
5) forum treads
6) blogs
7) Course (different from on line lessons?)
8) various develop web site where they off there "stuff" for free
9) Rev-online
9) behind paywalls like Global Connect

So, fantastic work you are doing! Indeed, but please consider the "high level" 
documentation/indexing/global LC knowledge base as important a key feature to develop for the 
platform as new "deep tech" features.

Brahmanathaswami


On 6/20/17, 8:06 AM, "use-livecode on behalf of Kevin Miller via use-livecode" 
 
wrote:

Sooner would have been better. However just in case you missed it, the
architecture has been available to play with for many months and a native
field for Android is doable in 9-dp-7 posted last week. You have to change
a few words in Ali¹s native button LCB file - he explained which ones in
his talk. We¹ll follow with a blog post on that too shortly. There is a
widget course available https://livecode.com/topic/introduction-2/ now
which covers getting started with widgets. We will add in the info about
the FFI layer to that course shortly. We will also modify the object Ali
supplied to cover a whole variety of other native controls from the tools
palette given each is just a tweak to that LCB. Its all in there and open
source right now. Objective-C (and thus iOS) will be in DP 8.

Kind regards,

Kevin


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Exploring A Single File Deploy on Windows

2017-06-21 Thread Richard Gaskin via use-livecode

Dan Friedman wrote:

> With LC 8.1 and later, we’re now using tsNet rather than libURL.
> That’s fine.  However, a Windows standalone that uses tsNet cannot
> even launch unless tsNet.dll is in the same directory as the
> standalone.exe.  This makes deploying a single file on Windows
> impossible.

The others here have offered good suggestions for suck-up-and-spit-out 
solutions to solve the problem for now. but looking ahead:


One of the things I liked about SuperCard was that Bill Appleton had 
written his own resource fork into his data file format.  This allowed 
SC to store any number of data and even code (XCMDs and DFCNs) within 
the data fork, without relying on the Mac's old file system resource fork.


I really really really prefer to deliver truly stand-alone standalones 
whenever practical, but with more and more new features being 
implemented in bundled externals the number of apps I can do this for is 
shrinking with each release.


Would it be worth considering some means of being able to store 
externals directly in the stack file?


What magic is dependent on having an external be a separate file on disk?

Couldn't the entry point for that code be found at least as easily (and 
perhaps slightly more efficiently) if stored within the stack file?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Display PDF in Browser Widget Error?

2017-06-21 Thread JOHN PATTEN via use-livecode
Hi All,

I am trying to display a PDF in a browser widget using the tutorial here:  
http://lessons.livecode.com/m/4071/l/727199-how-do-i-display-a-pdf-in-livecode 


and this code:

on mouseUp
   local tFile
   answer file "Please choose the file you would like to display" with type 
"PDF document|pdf|PDF"
   if it is not empty then
  put it into tFile
  set the url of widget "browser" to tFile
   end if
end mouseUp  


I’m getting this error:  

button "Button": execution error at line 6 (extension: error occured with 
domain) near "runtime", char 1


Would this be a bug, or am I doing something incorrectly?


Thank you!
John Patten
SUSD
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Mike Bonner via use-livecode
Perhaps a different direction here?  I think it would be helpful to me as a
perpetual newbie to have the option to insert common scripts on demand.
Maybe a context sensitive dropdown with a mouseup framework for buttons,
for fields, textchanged, keyup, keydown.  Maybe backed by a personal
snippet library so that once one creates their perfect script for entering
only floating numbers.. or whatever, make the handlers snippable so that
they can be added to a local repository for that object type.

On Wed, Jun 21, 2017 at 10:19 AM, Andre Garzia via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Going back to the original issue of "not applying the empty mouseup
> handler", wouldn't a frontscript running on a plugin on the IDE be enough
> to remove those scripts by interfeering with the IDE Editor at runtime?
> (PS: I have a thing for dangerous scripts...)
>
> On Wed, Jun 21, 2017 at 12:03 PM, Sannyasin Brahmanathaswami via
> use-livecode  wrote:
>
> > Kevin,
> >
> > Thanks for jumping in, very inspiring work you have all been doing
> > recently. One has to wonder if anyone sleeps in Edinborough!
> >
> > I've been having a running conversation with Richard on how to make small
> > solutions available to the whole community, in the spirit of "this would
> > make adoption of LC as a platform more tenable."  I had ideas about how
> to
> > turn that into revenue  for LC company also, But Richard pointed out the
> I
> > was a bit naïve on ROI (which I was/am)  but that is a different
> discussion.
> >
> > Simply put: one can enter google "SQL Query Descending Order" and get
> > 100's of hits with examples.
> > OR (different context entirely but…_)
> > Go to the Unity plug in store and find 1000+ plugins (open source) free
> or
> > from 2.99 to 99.99.
> >
> > Newbies and even us "old timers" need a leg up on "how to" with
> >
> > a) examples scripts
> > b) actual LC native binary stacks as demos.
> > c) script only behaviors attached to custom controls
> >  (I'm only getting into this now… awesome potential for "plug-ins)
> > c) central respository/index of some kind
> > d) ways we all can contribute.
> >
> > presently key info is fragmented across.
> >
> > 1) dictionary (no or very few robust examples)
> > 2) API tab
> > 3) on line lessons (many of which are obsolete)
> > 4) answers in the email list
> > 5) forum treads
> > 6) blogs
> > 7) Course (different from on line lessons?)
> > 8) various develop web site where they off there "stuff" for free
> > 9) Rev-online
> > 9) behind paywalls like Global Connect
> >
> > So, fantastic work you are doing! Indeed, but please consider the "high
> > level" documentation/indexing/global LC knowledge base as important a key
> > feature to develop for the platform as new "deep tech" features.
> >
> > Brahmanathaswami
> >
> >
> > On 6/20/17, 8:06 AM, "use-livecode on behalf of Kevin Miller via
> > use-livecode"  > use-livecode@lists.runrev.com> wrote:
> >
> > Sooner would have been better. However just in case you missed it,
> the
> > architecture has been available to play with for many months and a
> > native
> > field for Android is doable in 9-dp-7 posted last week. You have to
> > change
> > a few words in Ali¹s native button LCB file - he explained which ones
> > in
> > his talk. We¹ll follow with a blog post on that too shortly. There
> is a
> > widget course available https://livecode.com/topic/introduction-2/
> now
> > which covers getting started with widgets. We will add in the info
> > about
> > the FFI layer to that course shortly. We will also modify the object
> > Ali
> > supplied to cover a whole variety of other native controls from the
> > tools
> > palette given each is just a tweak to that LCB. Its all in there and
> > open
> > source right now. Objective-C (and thus iOS) will be in DP 8.
> >
> > Kind regards,
> >
> > Kevin
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
There is some caveat to revcopyfile that I ran into when I went the url
binfile way, but I forget what it is.  It might have been the directory
separators being platform-dependent, but it was months ago.

On Wed, Jun 21, 2017 at 10:34 AM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I knew that, but didn't want to sound like a know-it-all.  ;-p
>
> ~Roger
>
> On Wed, Jun 21, 2017 at 10:17 AM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I don´t want to sound like a know-it-all, but revcopyfile also uses just
> > the shell to copy the files:
> >
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Andre Garzia via use-livecode
Going back to the original issue of "not applying the empty mouseup
handler", wouldn't a frontscript running on a plugin on the IDE be enough
to remove those scripts by interfeering with the IDE Editor at runtime?
(PS: I have a thing for dangerous scripts...)

On Wed, Jun 21, 2017 at 12:03 PM, Sannyasin Brahmanathaswami via
use-livecode  wrote:

> Kevin,
>
> Thanks for jumping in, very inspiring work you have all been doing
> recently. One has to wonder if anyone sleeps in Edinborough!
>
> I've been having a running conversation with Richard on how to make small
> solutions available to the whole community, in the spirit of "this would
> make adoption of LC as a platform more tenable."  I had ideas about how to
> turn that into revenue  for LC company also, But Richard pointed out the I
> was a bit naïve on ROI (which I was/am)  but that is a different discussion.
>
> Simply put: one can enter google "SQL Query Descending Order" and get
> 100's of hits with examples.
> OR (different context entirely but…_)
> Go to the Unity plug in store and find 1000+ plugins (open source) free or
> from 2.99 to 99.99.
>
> Newbies and even us "old timers" need a leg up on "how to" with
>
> a) examples scripts
> b) actual LC native binary stacks as demos.
> c) script only behaviors attached to custom controls
>  (I'm only getting into this now… awesome potential for "plug-ins)
> c) central respository/index of some kind
> d) ways we all can contribute.
>
> presently key info is fragmented across.
>
> 1) dictionary (no or very few robust examples)
> 2) API tab
> 3) on line lessons (many of which are obsolete)
> 4) answers in the email list
> 5) forum treads
> 6) blogs
> 7) Course (different from on line lessons?)
> 8) various develop web site where they off there "stuff" for free
> 9) Rev-online
> 9) behind paywalls like Global Connect
>
> So, fantastic work you are doing! Indeed, but please consider the "high
> level" documentation/indexing/global LC knowledge base as important a key
> feature to develop for the platform as new "deep tech" features.
>
> Brahmanathaswami
>
>
> On 6/20/17, 8:06 AM, "use-livecode on behalf of Kevin Miller via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
> Sooner would have been better. However just in case you missed it, the
> architecture has been available to play with for many months and a
> native
> field for Android is doable in 9-dp-7 posted last week. You have to
> change
> a few words in Ali¹s native button LCB file - he explained which ones
> in
> his talk. We¹ll follow with a blog post on that too shortly. There is a
> widget course available https://livecode.com/topic/introduction-2/ now
> which covers getting started with widgets. We will add in the info
> about
> the FFI layer to that course shortly. We will also modify the object
> Ali
> supplied to cover a whole variety of other native controls from the
> tools
> palette given each is just a tweak to that LCB. Its all in there and
> open
> source right now. Objective-C (and thus iOS) will be in DP 8.
>
> Kind regards,
>
> Kevin
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
Kevin, 

Thanks for jumping in, very inspiring work you have all been doing recently. 
One has to wonder if anyone sleeps in Edinborough!

I've been having a running conversation with Richard on how to make small 
solutions available to the whole community, in the spirit of "this would make 
adoption of LC as a platform more tenable."  I had ideas about how to turn that 
into revenue  for LC company also, But Richard pointed out the I was a bit 
naïve on ROI (which I was/am)  but that is a different discussion.

Simply put: one can enter google "SQL Query Descending Order" and get 100's of 
hits with examples.
OR (different context entirely but…_)
Go to the Unity plug in store and find 1000+ plugins (open source) free or from 
2.99 to 99.99. 

Newbies and even us "old timers" need a leg up on "how to" with 

a) examples scripts
b) actual LC native binary stacks as demos.
c) script only behaviors attached to custom controls
 (I'm only getting into this now… awesome potential for "plug-ins)
c) central respository/index of some kind
d) ways we all can contribute.

presently key info is fragmented across.

1) dictionary (no or very few robust examples)
2) API tab 
3) on line lessons (many of which are obsolete)
4) answers in the email list
5) forum treads
6) blogs
7) Course (different from on line lessons?)
8) various develop web site where they off there "stuff" for free
9) Rev-online
9) behind paywalls like Global Connect

So, fantastic work you are doing! Indeed, but please consider the "high level" 
documentation/indexing/global LC knowledge base as important a key feature to 
develop for the platform as new "deep tech" features.

Brahmanathaswami


On 6/20/17, 8:06 AM, "use-livecode on behalf of Kevin Miller via use-livecode" 
 wrote:

Sooner would have been better. However just in case you missed it, the
architecture has been available to play with for many months and a native
field for Android is doable in 9-dp-7 posted last week. You have to change
a few words in Ali¹s native button LCB file - he explained which ones in
his talk. We¹ll follow with a blog post on that too shortly. There is a
widget course available https://livecode.com/topic/introduction-2/ now
which covers getting started with widgets. We will add in the info about
the FFI layer to that course shortly. We will also modify the object Ali
supplied to cover a whole variety of other native controls from the tools
palette given each is just a tweak to that LCB. Its all in there and open
source right now. Objective-C (and thus iOS) will be in DP 8.

Kind regards,

Kevin

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Desktop Fork Menu for Mobile Picker

2017-06-21 Thread Sannyasin Brahmanathaswami via use-livecode
OH… never mind… "popup menu at" 

How could I have forgotten that (by work on mobile most of this year..)

BR
 

On 6/20/17, 4:50 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami via 
use-livecode"  wrote:

OK , who knew we would be building for mobile first, and *then* go fishing 
for a desktop solution to the same requirement?

this is too easy:
-
sort tList
put "All" & cr before tList
mobilePick tList, "cancel"
if the result is 0 then
put empty into tModule
else
put line (the result) of tList into tTitle


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
I knew that, but didn't want to sound like a know-it-all.  ;-p

~Roger

On Wed, Jun 21, 2017 at 10:17 AM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don´t want to sound like a know-it-all, but revcopyfile also uses just
> the shell to copy the files:
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: put url tricks to copy files on windows

2017-06-21 Thread Matthias Rebbe via use-livecode
I don´t want to sound like a know-it-all, but revcopyfile also uses just the 
shell to copy the files:

replace "\" with "/" in pDestFile
replace "\" with "/" in pSrcFile
  
if there is a directory pDestFile then
set the itemDel to "/"
if char -1 of pDestFile is "/" then
delete char -1 of pDestFile
end if
   
local tDestFileName
put item -1 of pSrcFile into tDestFileName
set the itemDel to comma
put "/" & tDestFileName after pDestFile
end if
get shell ("copy" && revWindowsFromUnixPath(quote) && 
revWindowsFromUnixPath(quote))


Matthias

Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌

> Am 21.06.2017 um 15:57 schrieb Roger Eller via use-livecode 
> >:
> 
> You could also try the revCopyFile and revCopyFolder commands.  I normally
> only use the URL syntax to save new data I've created in a variable to a
> file.  When copying existing files/folders I either use "get shell" to call
> native commands, or the built-in revCopyFile.
> 
> ~Roger
> 
> On Wed, Jun 21, 2017 at 9:40 AM, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Let me be clearer.  I think the message could be better (or perhaps the
>> dictionary could list the error messages and explain them), because even
>> though we use the "open" command in LC to read from a file or create a
>> file, the lack of the need for a "create file" command in LCS doesn't
>> remove that thing in my intuition that says "well, the only file that needs
>> to be opened is the one that exists, already, so the problem must be on
>> that side".
>> 
>> 
>> On Wed, Jun 21, 2017 at 8:39 AM, Matthias Rebbe via use-livecode <
>> use-livecode@lists.runrev.com > wrote:
>> 
>>> to write to a file, even if it is copied, it has to be opened first.
>>> 
>>> Did you try to remove the 2 slashes in the to path also?
>>> 
>>> 
>>> Matthias Rebbe
>>> +49 5741 31
>>> ‌matthiasrebbe.eu  >> >‌
>>> 
 Am 21.06.2017 um 14:31 schrieb Mike Kerner via use-livecode <
>>> use-livecode@lists.runrev.com  
>>> >> >>:
 
 also what is confusing is when I removed the // from the FROM file but
>>> left
 it in for the TO file, I get the same error, "can't open file", which
>> to
>>> me
 implies that the file that exists can't be read, not that the TO path
>> is
 wrong.
 
 On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <
 use-livecode@lists.runrev.com  
 >>
>>> wrote:
 
> Without meaning to add more confusion, a Windows UNC path from a
>> server
>>> to
> a file does work with the form
> "binfile://servername/folder/folder/filename.txt 
> 
>>> >> >", while local access
>> (or
> mapped drives) are like "binfile:C:/folder/folder/filename.txt".
> 
> ~Roger
> 
> On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
> use-livecode@lists.runrev.com  
>  >>
>>> wrote:
> 
>> As others have pointed out, for binfile and file urls you shouldn't
>> include the standard '//' in front of the (absolute) path. These are
>>> not
>> parsed by the engine as standard urls - everything after the : is
>>> parsed
> as
>> the filename.
>> 
>> On an unrelated not you don't need to twiddle with the defaultfolder
>> as
>> files() and folders() now take an optional argument for the path :)
>> 
>> Mark
>> 
>> Sent from my iPhone
>> 
>>> On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
>> use-livecode@lists.runrev.com  
>> > 
 
>>> wrote:
>>> 
 On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
 I'm not on a mac a lot :-(
 So is "binfile:" more universal, or do I have to check the
>> platform,
 first?  What is the technique on linux?
>>> 
>>> As far as I can remember, the "//" has never been recommended or
>> approved for file or binfile. I'm surprised it gets parsed properly
>> for
>> OSX. You don't need or want it.
>>> 
>>> --
>>> Mark Wieder
>>> ahsoftw...@gmail.com  
>>> >
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 

Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
You could also try the revCopyFile and revCopyFolder commands.  I normally
only use the URL syntax to save new data I've created in a variable to a
file.  When copying existing files/folders I either use "get shell" to call
native commands, or the built-in revCopyFile.

~Roger

On Wed, Jun 21, 2017 at 9:40 AM, Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Let me be clearer.  I think the message could be better (or perhaps the
> dictionary could list the error messages and explain them), because even
> though we use the "open" command in LC to read from a file or create a
> file, the lack of the need for a "create file" command in LCS doesn't
> remove that thing in my intuition that says "well, the only file that needs
> to be opened is the one that exists, already, so the problem must be on
> that side".
>
>
> On Wed, Jun 21, 2017 at 8:39 AM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > to write to a file, even if it is copied, it has to be opened first.
> >
> > Did you try to remove the 2 slashes in the to path also?
> >
> >
> > Matthias Rebbe
> > +49 5741 31
> > ‌matthiasrebbe.eu ‌
> >
> > > Am 21.06.2017 um 14:31 schrieb Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com >:
> > >
> > > also what is confusing is when I removed the // from the FROM file but
> > left
> > > it in for the TO file, I get the same error, "can't open file", which
> to
> > me
> > > implies that the file that exists can't be read, not that the TO path
> is
> > > wrong.
> > >
> > > On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <
> > > use-livecode@lists.runrev.com >
> > wrote:
> > >
> > >> Without meaning to add more confusion, a Windows UNC path from a
> server
> > to
> > >> a file does work with the form
> > >> "binfile://servername/folder/folder/filename.txt
> > ", while local access
> (or
> > >> mapped drives) are like "binfile:C:/folder/folder/filename.txt".
> > >>
> > >> ~Roger
> > >>
> > >> On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
> > >> use-livecode@lists.runrev.com >
> > wrote:
> > >>
> > >>> As others have pointed out, for binfile and file urls you shouldn't
> > >>> include the standard '//' in front of the (absolute) path. These are
> > not
> > >>> parsed by the engine as standard urls - everything after the : is
> > parsed
> > >> as
> > >>> the filename.
> > >>>
> > >>> On an unrelated not you don't need to twiddle with the defaultfolder
> as
> > >>> files() and folders() now take an optional argument for the path :)
> > >>>
> > >>> Mark
> > >>>
> > >>> Sent from my iPhone
> > >>>
> >  On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
> > >>> use-livecode@lists.runrev.com  >>
> > wrote:
> > 
> > > On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
> > > I'm not on a mac a lot :-(
> > > So is "binfile:" more universal, or do I have to check the
> platform,
> > > first?  What is the technique on linux?
> > 
> >  As far as I can remember, the "//" has never been recommended or
> > >>> approved for file or binfile. I'm surprised it gets parsed properly
> for
> > >>> OSX. You don't need or want it.
> > 
> >  --
> >  Mark Wieder
> >  ahsoftw...@gmail.com 
> > 
> >  ___
> >  use-livecode mailing list
> >  use-livecode@lists.runrev.com
> >  Please visit this url to subscribe, unsubscribe and manage your
> > >>> subscription preferences:
> >  http://lists.runrev.com/mailman/listinfo/use-livecode <
> > http://lists.runrev.com/mailman/listinfo/use-livecode>
> > >>>
> > >>>
> > >>> ___
> > >>> use-livecode mailing list
> > >>> use-livecode@lists.runrev.com 
> > >>> Please visit this url to subscribe, unsubscribe and manage your
> > >>> subscription preferences:
> > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>>
> > >> ___
> > >> use-livecode mailing list
> > >> use-livecode@lists.runrev.com 
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >
> > >
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > >   and did a little diving.
> > > And God said, "This is good."
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com 
> > > Please 

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
Let me be clearer.  I think the message could be better (or perhaps the
dictionary could list the error messages and explain them), because even
though we use the "open" command in LC to read from a file or create a
file, the lack of the need for a "create file" command in LCS doesn't
remove that thing in my intuition that says "well, the only file that needs
to be opened is the one that exists, already, so the problem must be on
that side".


On Wed, Jun 21, 2017 at 8:39 AM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> to write to a file, even if it is copied, it has to be opened first.
>
> Did you try to remove the 2 slashes in the to path also?
>
>
> Matthias Rebbe
> +49 5741 31
> ‌matthiasrebbe.eu ‌
>
> > Am 21.06.2017 um 14:31 schrieb Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com >:
> >
> > also what is confusing is when I removed the // from the FROM file but
> left
> > it in for the TO file, I get the same error, "can't open file", which to
> me
> > implies that the file that exists can't be read, not that the TO path is
> > wrong.
> >
> > On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> Without meaning to add more confusion, a Windows UNC path from a server
> to
> >> a file does work with the form
> >> "binfile://servername/folder/folder/filename.txt
> ", while local access (or
> >> mapped drives) are like "binfile:C:/folder/folder/filename.txt".
> >>
> >> ~Roger
> >>
> >> On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
> >> use-livecode@lists.runrev.com >
> wrote:
> >>
> >>> As others have pointed out, for binfile and file urls you shouldn't
> >>> include the standard '//' in front of the (absolute) path. These are
> not
> >>> parsed by the engine as standard urls - everything after the : is
> parsed
> >> as
> >>> the filename.
> >>>
> >>> On an unrelated not you don't need to twiddle with the defaultfolder as
> >>> files() and folders() now take an optional argument for the path :)
> >>>
> >>> Mark
> >>>
> >>> Sent from my iPhone
> >>>
>  On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
> >>> use-livecode@lists.runrev.com >
> wrote:
> 
> > On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
> > I'm not on a mac a lot :-(
> > So is "binfile:" more universal, or do I have to check the platform,
> > first?  What is the technique on linux?
> 
>  As far as I can remember, the "//" has never been recommended or
> >>> approved for file or binfile. I'm surprised it gets parsed properly for
> >>> OSX. You don't need or want it.
> 
>  --
>  Mark Wieder
>  ahsoftw...@gmail.com 
> 
>  ___
>  use-livecode mailing list
>  use-livecode@lists.runrev.com
>  Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
>  http://lists.runrev.com/mailman/listinfo/use-livecode <
> http://lists.runrev.com/mailman/listinfo/use-livecode>
> >>>
> >>>
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com 
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com 
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com 
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is 

Re: put url tricks to copy files on windows

2017-06-21 Thread Matthias Rebbe via use-livecode
to write to a file, even if it is copied, it has to be opened first.

Did you try to remove the 2 slashes in the to path also?


Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌

> Am 21.06.2017 um 14:31 schrieb Mike Kerner via use-livecode 
> >:
> 
> also what is confusing is when I removed the // from the FROM file but left
> it in for the TO file, I get the same error, "can't open file", which to me
> implies that the file that exists can't be read, not that the TO path is
> wrong.
> 
> On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Without meaning to add more confusion, a Windows UNC path from a server to
>> a file does work with the form
>> "binfile://servername/folder/folder/filename.txt 
>> ", while local access (or
>> mapped drives) are like "binfile:C:/folder/folder/filename.txt".
>> 
>> ~Roger
>> 
>> On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
>> use-livecode@lists.runrev.com > wrote:
>> 
>>> As others have pointed out, for binfile and file urls you shouldn't
>>> include the standard '//' in front of the (absolute) path. These are not
>>> parsed by the engine as standard urls - everything after the : is parsed
>> as
>>> the filename.
>>> 
>>> On an unrelated not you don't need to twiddle with the defaultfolder as
>>> files() and folders() now take an optional argument for the path :)
>>> 
>>> Mark
>>> 
>>> Sent from my iPhone
>>> 
 On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
>>> use-livecode@lists.runrev.com > wrote:
 
> On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
> I'm not on a mac a lot :-(
> So is "binfile:" more universal, or do I have to check the platform,
> first?  What is the technique on linux?
 
 As far as I can remember, the "//" has never been recommended or
>>> approved for file or binfile. I'm surprised it gets parsed properly for
>>> OSX. You don't need or want it.
 
 --
 Mark Wieder
 ahsoftw...@gmail.com 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode 
 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: put url tricks to copy files on windows

2017-06-21 Thread Mike Kerner via use-livecode
also what is confusing is when I removed the // from the FROM file but left
it in for the TO file, I get the same error, "can't open file", which to me
implies that the file that exists can't be read, not that the TO path is
wrong.

On Wed, Jun 21, 2017 at 7:37 AM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Without meaning to add more confusion, a Windows UNC path from a server to
> a file does work with the form
> "binfile://servername/folder/folder/filename.txt", while local access (or
> mapped drives) are like "binfile:C:/folder/folder/filename.txt".
>
> ~Roger
>
> On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
> use-livecode@lists.runrev.com> wrote:
>
> > As others have pointed out, for binfile and file urls you shouldn't
> > include the standard '//' in front of the (absolute) path. These are not
> > parsed by the engine as standard urls - everything after the : is parsed
> as
> > the filename.
> >
> > On an unrelated not you don't need to twiddle with the defaultfolder as
> > files() and folders() now take an optional argument for the path :)
> >
> > Mark
> >
> > Sent from my iPhone
> >
> > > On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > >> On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
> > >> I'm not on a mac a lot :-(
> > >> So is "binfile:" more universal, or do I have to check the platform,
> > >> first?  What is the technique on linux?
> > >
> > > As far as I can remember, the "//" has never been recommended or
> > approved for file or binfile. I'm surprised it gets parsed properly for
> > OSX. You don't need or want it.
> > >
> > > --
> > > Mark Wieder
> > > ahsoftw...@gmail.com
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: put url tricks to copy files on windows

2017-06-21 Thread Roger Eller via use-livecode
Without meaning to add more confusion, a Windows UNC path from a server to
a file does work with the form
"binfile://servername/folder/folder/filename.txt", while local access (or
mapped drives) are like "binfile:C:/folder/folder/filename.txt".

~Roger

On Jun 21, 2017 2:07 AM, "Mark Waddingham via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> As others have pointed out, for binfile and file urls you shouldn't
> include the standard '//' in front of the (absolute) path. These are not
> parsed by the engine as standard urls - everything after the : is parsed as
> the filename.
>
> On an unrelated not you don't need to twiddle with the defaultfolder as
> files() and folders() now take an optional argument for the path :)
>
> Mark
>
> Sent from my iPhone
>
> > On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >> On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
> >> I'm not on a mac a lot :-(
> >> So is "binfile:" more universal, or do I have to check the platform,
> >> first?  What is the technique on linux?
> >
> > As far as I can remember, the "//" has never been recommended or
> approved for file or binfile. I'm surprised it gets parsed properly for
> OSX. You don't need or want it.
> >
> > --
> > Mark Wieder
> > ahsoftw...@gmail.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: Standalonebuilder destination folder is being ignored

2017-06-21 Thread Tiemo Hollmann TB via use-livecode
Oh yes, being able to read, sometimes helps.
Thanks Jacque!
Tiemo

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von J. Landman Gay via use-livecode
Gesendet: Dienstag, 20. Juni 2017 20:20
An: Tiemo Hollmann TB via use-livecode 
Cc: J. Landman Gay 
Betreff: Re: Standalonebuilder destination folder is being ignored

The destination in the Copy Files pane is intended for files that are
referred to by reference, such as images. The list of files in that pane
says it is for "non-stack" files.

Try adding your stack to the Stacks pane instead.

On 6/20/17 8:26 AM, Tiemo Hollmann TB via use-livecode wrote:
> Hello,
> 
>   
> 
> LC 8.1.4: I added an additional stack file "foo2" to the "copy Files"
> section in the standalone builder settings (of stack "foo1") and have 
> set the destination folder to "Resources"
> 
> The additional stack files source "foo2" is in the same folder, as the 
> main stack "foo1".
> 
> Expected result: the stack "foo2" would be copied to the standalones 
> subfolder /resources
> 
> Shown result: the stack "foo2" is copied into the same folder, as the 
> standalone "foo1" (same structure as the source) and the destination 
> folder is being ignored.
> 
>   
> 
> Am I expecting something wrong or is this a bug?
> 
> Tiemo
> 
>   
> 
>   
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: put url tricks to copy files on windows

2017-06-21 Thread Mark Waddingham via use-livecode
As others have pointed out, for binfile and file urls you shouldn't include the 
standard '//' in front of the (absolute) path. These are not parsed by the 
engine as standard urls - everything after the : is parsed as the filename.

On an unrelated not you don't need to twiddle with the defaultfolder as files() 
and folders() now take an optional argument for the path :)

Mark

Sent from my iPhone

> On 21 Jun 2017, at 03:37, Mark Wieder via use-livecode 
>  wrote:
> 
>> On 06/20/2017 07:19 PM, Mike Kerner via use-livecode wrote:
>> I'm not on a mac a lot :-(
>> So is "binfile:" more universal, or do I have to check the platform,
>> first?  What is the technique on linux?
> 
> As far as I can remember, the "//" has never been recommended or approved for 
> file or binfile. I'm surprised it gets parsed properly for OSX. You don't 
> need or want it.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode