Re: Is this possible on iOS?

2012-04-10 Thread Gerry Orkin
Yes.

Gerry



On 10/04/2012, at 3:47 PM, Geoff Canyon wrote:

  But is it possible to save out a
 stack from the app locally, allowing it to be saved periodically and loaded
 locally at startup?

___
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: Is this possible on iOS?

2012-04-10 Thread Gerry Orkin
Try something like this (untested):

   if the environment contains mobile then
  put (specialFolderPath(engine)  /yourStackInEngine.livecode) into 
EngineStack
  put url (binfile:  EngineStack) into EngineStackPath
  put EngineStackPath into url (binfile:
(specialFolderPath(Documents)  /yourStackOnDevice.livecode))
  go stack specialFolderPath(Documents)  /yourStackOnDevice.livecode
   end if

Gerry



On 10/04/2012, at 5:12 PM, Gerry Orkin wrote:

 Yes.
 
 Gerry
 
 
 
 On 10/04/2012, at 3:47 PM, Geoff Canyon wrote:
 
 But is it possible to save out a
 stack from the app locally, allowing it to be saved periodically and loaded
 locally at startup?


___
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


Looks like runrev.com is down

2012-04-10 Thread Roger Eller
http://www.isup.me/runrev.com

~Roger
___
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: Looks like runrev.com is down

2012-04-10 Thread Mike Bonner
yeah just noticed myself. Its toast at the moment.

On Tue, Apr 10, 2012 at 8:07 AM, Roger Eller roger.e.el...@sealedair.comwrote:

 http://www.isup.me/runrev.com

 ~Roger
 ___
 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: Unicode Problem

2012-04-10 Thread Takashi Yoshino
Hi, Kojima!

Your script is perfect!

Thank you for your help!

_.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
Takashi Yoshino 
http://www.wakayama-u.ac.jp/~yoshino/lab/
Tel: +81-73-457-8441

On 2012/04/09, at 21:58, Kenji Kojima wrote:

 Hi Takashi-san,
 
 
 2. set the unicode text
 
 Here is my script.
 
 on mouseUp
 
 put A1.txt into theFileName
 put AbsolutePathFromStack(theFileName) into theFullPath
 
 open file theFullPath
 read from file theFullPath until EOF
 set the unicodeText of fld A1 to it
 close file theFullPath
 
 end mouseUp
 
 I want read some Japanese from a file.
 
 
 If your Japanese text file is UTF 8 
 
 on mouseUp
   answer file  
   put url (file:  it) into tUrl 
   set the unicodeText of field 1 to uniencode(tUrl, utf8)
 end mouseUp
 
 
 best,
 --
 Kenji Kojima / 小島健治
 http://www.kenjikojima.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: iOS Control Instantiation problem

2012-04-10 Thread Andrew Meit
I agree fully with you Graham. Its what has been holding me back for doing work 
with ios. I admire and thank those who can wrestle with the docs and ins/outs 
of Apple stuff dealing with ios. Here is an idea, provide free (many year 
agreement) copies of LC mobile to a school/classroom that develops lots of 
example stacks/docs to help others master developing on mobile lc. It would be 
a win-win for all.

On Apr 10, 2012, at 9:37 AM, Graham Samuel livf...@mac.com wrote:
 
 Thanks Chris, very helpful. I have not yet found out  how to filter the 
 Console output so that I only see my own 'put' lines, but give me time...
 
 IMNSHO the mother ship makes working with iOS unnecessarily difficult by not 
 explaining things like this more clearly. There are a lot of not fully 
 explained things in the iOS release notes - to take a small instance, I had 
 to experiment to work out that  iphoneControlGet is a function, not a 
 substitute for the 'get' command. It's a tiny point, but it makes getting 
 familiar with a new environment just that bit more difficult. 
 
 A much worse one is the description of the use of the scroller control, where 
 they virtually give up explaining it in words and hand you over to an 
 example. This is tough, because the concept is a very unfamiliar one - that 
 the scroller is not a container but a kind of mask or overlay through which 
 you see and control an underlying LC control. I am still struggling with 
 this, especially as it apparently involves the 'unboundedScroll' concept, 
 which itself is very badly explained in the docs, and indeed includes another 
 undocumented concept, the 'clamping' of a scroll. This concept applies to a 
 group, but not to a scrolling list, which is a mystery in itself. By copying 
 the example as closely as possible, I have got something to work, which is 
 not the same as saying I understand it fully.
 
 Really none of the three available documents (Release Notes, User Guide, 
 Dictionary) are much use here. Thank goodness for this list and the 
 generosity of people on it.
 
 Graham


___
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: iOS Control Instantiation problem

2012-04-10 Thread J. Landman Gay

Graham Samuellivf...@mac.com  wrote:



I have not yet found out  how to filter
the Console output so that I only see my own 'put' lines, but give
me time...


Put the name of your app in the filter field.

--
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: Script editor instability

2012-04-10 Thread Mark Schonewille
Hi Craig,

I use LC 5.0.2 and earlier and have problem with the script editor whenever an 
error occurs in e.g. a resizeStack handler. When this happens, I usually 
activate a different application and click in the red close button while 
LiveCode is in the background. This closes the script window and allows me to 
continue working. This seems very similar to your observations. I am sure that 
the cause is a scripting error somewhere in the script editor.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 04:37, dunb...@aol.com wrote:

 
 
 Since I upgraded to 5.5, now and then the script editor cannot be moved. 
 Rather the titlebar becomes a sort of resize tab,
 as if I clicked and dragged the actual resize tab. So trying to move the 
 script editor window only results in resizing that
 window.I think it only changes the width, not the actual rect, like the real 
 resize tab would.
 
 
 I cannot reproduce it, but it happens at least two or three times in a 
 session. I can dismiss the window with cmd-W, but
 this sometimes crashes LC.
 
 
 Anyone else see this? I have to save often to prevent real data loss. Never 
 heard of this before the upgrade.
 
 
 Craig Newman


___
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: Zipping Up an LC standalone program

2012-04-10 Thread Mark Schonewille
Pete,

This is a line from my Compression Tool software. It zips without the .DS_Store 
files. Item -1 of fld File is the name of a file or folder in the current 
defaultFolder.

put zip -r  quote  myZipFile  quote   quote  item -1 of fld File  
quote   -x .* *.DS_Store *Icon* into myShell

Installer Maker compresses all embedded files with the compress() function. 
Compressing the resulting installer again hardly saves any space. The 
compress() function is very efficient.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 17:25, Pete wrote:

 Thanks guys.  I was hoping for a way to automate this and a few other steps
 involved in getting my app ready for release by using the standaloneSaved
 message, that's why I was using the revZIPxxx commands.
 
 I was also hoping that they would get around the problem I came across with
 the built in Mac compress function when the archive is unzipped on a
 Windows machine - some unnecessary files are included in the archive -
 .dstore if I remember correctly.  I found a program named CleanArchiver
 that gets around that problem but, once again, makes it difficult to
 automate things using an external program.
 
 I'll give tar a try.
 
 Pete
 


___
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: Another iOS native control instantiation question

2012-04-10 Thread Graham Samuel
Just to add to my message below, I have an interesting (at least to me!) 
real-life example. In my iOS app, I have a card with a scrolling list on it (an 
instantiated native control) and an action when a user touches one of the lines 
in the scrolled list which includes cloning some template cards in the stack 
and then returning to the original card. At this point in the app, the user 
only sees the original card because the cloning is hidden by a 'lock screen'.

I found that this meant that the preOpenCard message for the card was being 
invoked every time I did a set of clones and then returned to the original card 
- this is correct behaviour from the engine's point of view. I was able to use 
a switch (a custom property) checked in the preOpenCard handler to prevent the 
destruction and recreation of the scroller on this card during the cloning 
sequence. It works, which seems to show that you don't **have to** destroy 
native controls when you leave a card, and they will be waiting for you when 
you come back. This makes me even more confused about the necessity to destroy 
native controls.

Graham

I wrote:

 Can someone confirm that if one moves from card to card in an iOS app, any 
 native controls (such as text input) need to be instantiated as the card is 
 opened, and destroyed when another card is shown? This is very unlike the 
 behaviour of LC on other platforms, where a field remains a field whether 
 it's shown or not, that I feel I may have missed a trick here.
 
 Suppose for example one of my cards is dedicated to input of several small 
 and essentially unrelated data items, with a lot of little one-line fields 
 which the user has to fill in. When the user decides to invoke this feature 
 of the app, the 'input' card appears. At this point, if it's as described (a 
 lot of little essentially identical fields), then presumably I just have to 
 create one single-line input control which will appear each time one of my 
 fields get the focus, and script the handling of each input text accordingly: 
 and when the user steers away from this card I should destroy the control.
 
 Is this right, and what would happen if I didn't do the destroy? I ask here 
 because I'm getting overwhelmed by the need to experiment for almost every 
 aspect of the behaviour of my iOS device and I'm frankly keen to learn from 
 others' experience.

___
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: Zipping Up an LC standalone program

2012-04-10 Thread Pete
Thanks Mark, I'll take a look.
Pete

On Tue, Apr 10, 2012 at 8:39 AM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Pete,

 This is a line from my Compression Tool software. It zips without the
 .DS_Store files. Item -1 of fld File is the name of a file or folder in
 the current defaultFolder.

 put zip -r  quote  myZipFile  quote   quote  item -1 of fld
 File  quote   -x .* *.DS_Store *Icon* into myShell

 Installer Maker compresses all embedded files with the compress()
 function. Compressing the resulting installer again hardly saves any space.
 The compress() function is very efficient.


 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 Get the extIco2Png external for LiveCode here http://qery.us/1w6

 On 10 apr 2012, at 17:25, Pete wrote:

  Thanks guys.  I was hoping for a way to automate this and a few other
 steps
  involved in getting my app ready for release by using the standaloneSaved
  message, that's why I was using the revZIPxxx commands.
 
  I was also hoping that they would get around the problem I came across
 with
  the built in Mac compress function when the archive is unzipped on a
  Windows machine - some unnecessary files are included in the archive -
  .dstore if I remember correctly.  I found a program named CleanArchiver
  that gets around that problem but, once again, makes it difficult to
  automate things using an external program.
 
  I'll give tar a try.
 
  Pete
 


 ___
 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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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


Can I put advisory text in an 'ask' dialog?

2012-04-10 Thread Graham Samuel
Sometimes one sees apps (on different platforms) where the user is invited to 
type something into a field, and the field is pre-filled with a text which 
disappears the moment the user starts typing - the initial text says stuff like 
'type your name here'. This type of text is not preselected (apparently) - so 
it must be a special type of text, but I don't know how to make it appear. 
Specifically, in LC's iOS implementation, the 'ask' dialog scripting looks like 
this:

ask [ question | password ] prompt [ with initialAnswer ] [ titled title ]

so the question resolves to: how do I make the initialAnswer text a 'ghost' 
text such as I have described, or is it impossible?

Graham

___
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: Can I put advisory text in an 'ask' dialog?

2012-04-10 Thread Mark Schonewille
Hi Graham,

You can't do exactly what you want with the ask dialog, but the default text is 
select disappears as soon as the user starts typing. In msot cases, that should 
do the job.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 19:02, Graham Samuel wrote:

 Sometimes one sees apps (on different platforms) where the user is invited to 
 type something into a field, and the field is pre-filled with a text which 
 disappears the moment the user starts typing - the initial text says stuff 
 like 'type your name here'. This type of text is not preselected (apparently) 
 - so it must be a special type of text, but I don't know how to make it 
 appear. Specifically, in LC's iOS implementation, the 'ask' dialog scripting 
 looks like this:
 
 ask [ question | password ] prompt [ with initialAnswer ] [ titled title ]
 
 so the question resolves to: how do I make the initialAnswer text a 'ghost' 
 text such as I have described, or is it impossible?
 
 Graham


___
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: Script editor instability

2012-04-10 Thread dunbarx
Mark.


But have you seen the actual behavior I explained? That dragging in the 
titleBar to try to move the window instead changes the width of that window?


I will keep in mind what you said. I have tried this, I think, or at least must 
have in the scramble to try to restore order. I certainly went back to the 
finder. Sometimes I can, sometimes I have to force quit. It is one of the few 
times I get an unexpected quit message with its concomitant messages and 
offers to relaunch and send error reports






-Original Message-
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Apr 10, 2012 11:33 am
Subject: Re: Script editor instability


Hi Craig,

I use LC 5.0.2 and earlier and have problem with the script editor whenever an 
error occurs in e.g. a resizeStack handler. When this happens, I usually 
activate a different application and click in the red close button while 
LiveCode is in the background. This closes the script window and allows me to 
continue working. This seems very similar to your observations. I am sure that 
the cause is a scripting error somewhere in the script editor.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 04:37, dunb...@aol.com wrote:

 
 
 Since I upgraded to 5.5, now and then the script editor cannot be moved. 
Rather the titlebar becomes a sort of resize tab,
 as if I clicked and dragged the actual resize tab. So trying to move the 
script editor window only results in resizing that
 window.I think it only changes the width, not the actual rect, like the real 
resize tab would.
 
 
 I cannot reproduce it, but it happens at least two or three times in a 
session. I can dismiss the window with cmd-W, but
 this sometimes crashes LC.
 
 
 Anyone else see this? I have to save often to prevent real data loss. Never 
heard of this before the upgrade.
 
 
 Craig Newman


___
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: play sound from url on iOS

2012-04-10 Thread Giulio Mastrosanti
Hi Klaus,

yes,

I use the player this way:

   iphoneControlCreate player, ioscontrol
   iphoneControlSet ioscontrol, filename, 
http://www.yoursitecom/audiofolder/audiofile.mp3;
   iphoneControlSet ioscontrol, preserveAspect, true
   iphoneControlSet ioscontrol, showController, true
   iphoneControlSet ioscontrol, visible, true
   iphoneControlSet ioscontrol, rect, 0,106,320,106
   iphoneControlDo ioscontrol, play

Hope this helps,

 Giulio

 
 Subject: Re: play sound from url on iOS
 Hi all,
 
 Am 09.04.2012 um 15:35 schrieb Klaus on-rev:
 
 Hi friends,
 
 short question, is it possible to play a sound file from an URL in iOS? 
 If yes, what do I need to use: play ... or iphonePlaySoundOnChannel...?
 
 The docs do not mention URL, only in the Video playback section.
 
 Thanks a lot in advance!
 
 noone done this before? :-)
 
 I don't have an iOS license nor an iDevice to check this in the moment!
 
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.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


iOS: using data grid on a retina display

2012-04-10 Thread Chris Sheffield
Is anyone using a data grid in an app that supports multiple resolutions? In 
particular, both iPad screens? I'm having a problem getting the data grid 
resized correctly to display on the iPad retina display. Is there a trick to 
it? Perhaps some property that can be set on the data grid that resizes 
everything at once? I have code that I'm running when my app starts up that 
resizes all my controls, and it works great, except with the data grid. Not 
quite sure how to handle that one. The grid is resizing correctly width-wise I 
believe, but not height-wise. I've customized my row template to display the 
data the way I want, and it looks great on the non-retina display. Do I need to 
resize the controls in my row template stack? I'm not currently doing that. 
Maybe that's my problem...

Anyone?

Thanks,
Chris



___
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: play sound from url on iOS

2012-04-10 Thread Klaus on-rev
Buonasera Giulio,

Am 10.04.2012 um 19:25 schrieb Giulio Mastrosanti:

 Hi Klaus,
 
 yes, I use the player this way:
 
   iphoneControlCreate player, ioscontrol
   iphoneControlSet ioscontrol, filename, 
 http://www.yoursitecom/audiofolder/audiofile.mp3;
   iphoneControlSet ioscontrol, preserveAspect, true
   iphoneControlSet ioscontrol, showController, true
   iphoneControlSet ioscontrol, visible, true
   iphoneControlSet ioscontrol, rect, 0,106,320,106
   iphoneControlDo ioscontrol, play
 
 Hope this helps,

Ma certo! 
Tante grazie! :-)

 Giulio

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Script editor instability

2012-04-10 Thread Mark Wieder
Mark Talluto userev@... writes:

 We are having a number of issues with stability in 5.5.  The problem is that
the script editor issues you are
 seeing are very sporadic.  I think the majority of issues arise if you save
with a command S often like I do.  I
 find that the IDE becomes locked down for a period of time before it returns.
 Everything you do to it gets
 queued up and runs through very fast once the IDE returns.  Once we have a
better recipe, I will bugzilla it.
 For now, I to am looking for others that may be seeing this problem.  For the
moment, our studio is moving all
 desktop work back to 5.02 and leaving 5.5 for mobile work only.

I had to hack around this in the glx2 environment - the problem seems to be that
something changed with respect to menubars. In glx2 I now grab the command- or
control-c,v,x keys and process them myself instead of letting the IDE take care
of things. The IDE's lockup period is very annoying - there seems to be a delay
between mouseDown and mouseUp events, so that a command-S will insert an s
into the text unless the key combo is held down long enough. Doesn't affect
Windows, but does on OSX and linux.

I've also found that compiling a script in the IDE's script editor changes the
focus away from the script editor window, so that following a compile with a
command-S doesn't save the stack, I have to click in the script field first.

-- 
 Mark Wieder


___
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: Script editor instability

2012-04-10 Thread J. Landman Gay

On 4/10/12 12:26 PM, Mark Talluto wrote:

On Apr 9, 2012, at 7:37 PM, dunb...@aol.com wrote:




Since I upgraded to 5.5, now and then the script editor cannot be
moved. Rather the titlebar becomes a sort of resize tab, as if I
clicked and dragged the actual resize tab. So trying to move the
script editor window only results in resizing that window.I think
it only changes the width, not the actual rect, like the real
resize tab would.


We are having a number of issues with stability in 5.5.  The problem
is that the script editor issues you are seeing are very sporadic.  I
think the majority of issues arise if you save with a command S often
like I do.  I find that the IDE becomes locked down for a period of
time before it returns.  Everything you do to it gets queued up and
runs through very fast once the IDE returns.  Once we have a better
recipe, I will bugzilla it. For now, I to am looking for others that
may be seeing this problem.  For the moment, our studio is moving all
desktop work back to 5.02 and leaving 5.5 for mobile work only.



I've seen some issues too, but like you I can't pinpoint them. I've had 
more lockups recently than ever before. There's a decided delay before 
menus drop down too, and menu key shortcuts don't always work reliably 
any more, as Mark mentioned.


I rarely Cmd-S from within the script editor, I usually save after 
bringing the stack to the front. But the lockups I've had are almost 
always in the editor, usually while stepping through code in debug mode.


I've wondered if the problems are related to the rewrite of the field 
object.


--
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


[ANN] SQLiteAdmin

2012-04-10 Thread Pete
I'm happy to announce the release of my first commercial Livecode
application, SQLiteAdmin, a db admin tool for SQLite databases.  A 30-day
trial version of SQLiteAdmin is available at www.lcsql.com/products.html

In recognition of the amazing amount of knowledge imparted to me by
subscribers to this list, I am making SQLiteAdmin available for $4.99, a
$20 discount, to any list member until midnight on Friday April 13th.
 Please email me off list at p...@lcsql.com if you would like to take
advantage of this deal, and I will send you a link to buy it at that price.

SQLiteAdmin has been tested on OS X and Windows.  I do not have access to
Linux (yet!) but would be happy to compile a Linux standalone for anyone
who would be willing to try it and give me feedback on what changes might
be needed to make it a viable Linux product.

OK, now on to the sales pitch.

SQLiteAdmin is a full-featured administration tool for SQLite databases
that removes all of the restrictions and omissions inherent in the standard
SQLite Data Definition Language.  You can safely  add, modify, or delete
any of the properties of a table or column including name, data type, data
length, primary key, foreign key, check, unique, not null, and default
constraints, all while maintaining the integrity of your data.

SQLiteAdmin extends the DDL even further with convenience features that
provide you with the ability to add multiple columns that share the same
properties with a single click, and optional automatic index creation for
foreign key fields.

SQLiteAdmin provides complete data export and import capability in a number
of formats including csv, delimited text files with your choice of
delimiter, and SQL INSERT statements.  You can export all or selected rows
of a table.  You can also export the CREATE statements necessary to build
your database, with or without the INSERT statements to populate it.

With SQLiteAdmin's Utilities view, you will be able to audit your database,
get recommendations for better performance, and modify any of your
database's PRAGMA settings.

SQLiteAdmin's Browse view gives you access to the SQLite Data Manipulation
Language.  You can display data from any table with filtering capability on
any columns in the table, select the columns you want to view and display
them in your preferred sequence, all by filling in the blanks instead of
writing any SQL statements.  The Browse Tool also provides complete insert,
duplicate, update and delete capabilities, including modification or
deletion of multiple rows in one operation.  And you can save your filter
definitions, column selections, and sort sequence for later use.

If you need to write your own SQL statements, you can enter any SQLite
command in SQLiteAdmin's SQL tool and execute it.  SQL commands can be
saved and recalled for later use.

SQliteAdmin includes full support for in memory databases and also provides
the ability to save an in memory database as a permanent disk file.

A 30-day demo version of SQLiteAdmin is available at
http://www.lcsql.com/products.html. Some functionality is disabled in the
demo version.

-- 
Peter Haworth
lcSQL Software http://www.lcsql.com



-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Zipping Up an LC standalone program

2012-04-10 Thread Mark Schonewille
Kee,

This doesn't get rid of the .DS_Store files.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 04:29, Kee Nethery wrote:

 Or just use the Mac Archive or Compress menu item in the Finder. It works 
 great.
 
 Kee


___
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: Zipping Up an LC standalone program

2012-04-10 Thread Mark Schonewille
Hi,

Tar is a bad idea because it glues files together and doesn't compress. Tar was 
invented to allow gzip to compress multiple files. It is easier and faster to 
use the zip command line tool rather than to use both tar and gzip. Many unix 
geeks still prefer tar+gzip but I'm not sure why.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 05:48, stephen barncard wrote:

 tar (from the shell) works even better.


___
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: Zipping Up an LC standalone program

2012-04-10 Thread Tim Jones
On Apr 10, 2012, at 4:02 PM, Mark Schonewille wrote:

 Hi,
 
 Tar is a bad idea because it glues files together and doesn't compress. Tar 
 was invented to allow gzip to compress multiple files. It is easier and 
 faster to use the zip command line tool rather than to use both tar and gzip. 
 Many unix geeks still prefer tar+gzip but I'm not sure why.

Wha???

tar (Tape ARchiver) has been around since before we even considered 
compression schemes.  It wasn't until the Linux / FreeBSD movement that 
compression options were added.  On most systems still using ATT tar sources, 
you have to compress an archive after tar creates it and decompress an archive 
before tar can extract its contents.

We prefer tar and a compressor because it allows up to properly bundle up bits 
of code, regardless of the file types, and share them with others while reduing 
the overall footprint required on disk and for transfer.  The tar app is 
available in one form or another on every platform out there, so you can pretty 
much always open another's tarball.

In fact, I believe Dennis' original PDP MULTIX 9-track install tapes used a 
precursor to the modern tar format.

Tim


___
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: Browse tool. I give up.

2012-04-10 Thread Mark Schonewille
Hi Craig,

My explanation won't help much, but maybe you like to know the reasons why it 
doesn't work as expected.

I HyperCard there is an IDE layer and a stack layer. Except for the stacks 
themselves, the IDE is written in Pascal (later C) and handle everything. The 
scripts in the Home stack don't get in the way. When you open a stack, 
HyperCard chooses the browse tool and if you want to change tools in your 
openStack script then you can just do that.

MetaCard was written like that too. The engine took care of everything and the 
IDE was minimalistic and didn't get in the way. You could change the tool in 
your openStack script if you wanted to. MetaCard opened with the browse tool as 
the active tool and you could change that to the pointer tool in a plugin for 
instance.

The Revolution (LiveCode) IDE is a different beast. It comes on top of 
everything, including the engine and the remnants of the original MetaCard IDE. 
In the past, after the engine set the tool, the Revolution IDE took over and 
set the tool again --maybe even 2 or 3 times. I believe there are a few bugs in 
the Revolution IDE that prevent it from setting the tool correctly. There were 
some issues with this in the past. 

It seems that RunRev has applied a hack to make sure that the tool is alwaus 
the browse tool (and not a watch cursor as it used to be for many years). After 
all scripts have run, including your own openStack scripts, the IDE chooses the 
pointer tool one more time, just to be sure.

You could move back to the MetaCard IDE. 

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 15:37, dunb...@aol.com wrote:

 Thanks all.
 
 
 I figured this out too, though the explanation was most helpful.
 
 
 When I say figured it out, I meant I tried sending the command in time, 
 well, just because.
 
 
 In HC, the loading must be different, since one can choose, say, the field 
 tool with a one-liner like I tried to do.
 
 
 There are millions of legacy habits that I have, coming from a HC background, 
 that I need to reThink. Thanks again for the help.
 
 
 Craig Newman
 


___
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: Zipping Up an LC standalone program

2012-04-10 Thread Mark Schonewille
Hi Tim,

Yes, you're right, tar is older. Nonetheless, can you think of any other reason 
why one would want to use tar, except for glueing files together in preparation 
of compression? I'm not sure what you mean by property bundle up bits of code.

I don't think that tar is available on Windows by default, but that's another 
story.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 11 apr 2012, at 01:14, Tim Jones wrote:

 On Apr 10, 2012, at 4:02 PM, Mark Schonewille wrote:
 
 Hi,
 
 Tar is a bad idea because it glues files together and doesn't compress. Tar 
 was invented to allow gzip to compress multiple files. It is easier and 
 faster to use the zip command line tool rather than to use both tar and 
 gzip. Many unix geeks still prefer tar+gzip but I'm not sure why.
 
 Wha???
 
 tar (Tape ARchiver) has been around since before we even considered 
 compression schemes.  It wasn't until the Linux / FreeBSD movement that 
 compression options were added.  On most systems still using ATT tar 
 sources, you have to compress an archive after tar creates it and decompress 
 an archive before tar can extract its contents.
 
 We prefer tar and a compressor because it allows up to properly bundle up 
 bits of code, regardless of the file types, and share them with others while 
 reduing the overall footprint required on disk and for transfer.  The tar app 
 is available in one form or another on every platform out there, so you can 
 pretty much always open another's tarball.
 
 In fact, I believe Dennis' original PDP MULTIX 9-track install tapes used a 
 precursor to the modern tar format.
 
 Tim


___
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: Script editor instability

2012-04-10 Thread dunbarx
Interesting stuff from all.


Am I to understand that events queued in the IDE are taking sizable fractions 
of minutes to process, or flush? And that if I wait a while normalcy returns? 
Minutes?? I will try this tonight.


I usually cmd-S to save in either the script editor or in the stack, wherever I 
am when it seems prudent to do so Often, lately. But I never noticed an issue 
with focus from either place. I will watch for that as well.


Craig


-Original Message-
From: J. Landman Gay jac...@hyperactivesw.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Apr 10, 2012 2:40 pm
Subject: Re: Script editor instability


On 4/10/12 12:26 PM, Mark Talluto wrote:
 On Apr 9, 2012, at 7:37 PM, dunb...@aol.com wrote:



 Since I upgraded to 5.5, now and then the script editor cannot be
 moved. Rather the titlebar becomes a sort of resize tab, as if I
 clicked and dragged the actual resize tab. So trying to move the
 script editor window only results in resizing that window.I think
 it only changes the width, not the actual rect, like the real
 resize tab would.

 We are having a number of issues with stability in 5.5.  The problem
 is that the script editor issues you are seeing are very sporadic.  I
 think the majority of issues arise if you save with a command S often
 like I do.  I find that the IDE becomes locked down for a period of
 time before it returns.  Everything you do to it gets queued up and
 runs through very fast once the IDE returns.  Once we have a better
 recipe, I will bugzilla it. For now, I to am looking for others that
 may be seeing this problem.  For the moment, our studio is moving all
 desktop work back to 5.02 and leaving 5.5 for mobile work only.


I've seen some issues too, but like you I can't pinpoint them. I've had 
more lockups recently than ever before. There's a decided delay before 
menus drop down too, and menu key shortcuts don't always work reliably 
any more, as Mark mentioned.

I rarely Cmd-S from within the script editor, I usually save after 
bringing the stack to the front. But the lockups I've had are almost 
always in the editor, usually while stepping through code in debug mode.

I've wondered if the problems are related to the rewrite of the field 
object.

-- 
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: Browse tool. I give up.

2012-04-10 Thread dunbarx
Mark.


Good reading. Thanks.


I think a preference ought to be available to set the startup tool. Most times, 
I would think, the browse tool is the one users (or even developers) want. But 
I do not mind a stable workaround, as long as I don't forget it.


Craig



-Original Message-
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Apr 10, 2012 7:20 pm
Subject: Re: Browse tool. I give up.


Hi Craig,

My explanation won't help much, but maybe you like to know the reasons why it 
doesn't work as expected.

I HyperCard there is an IDE layer and a stack layer. Except for the stacks 
themselves, the IDE is written in Pascal (later C) and handle everything. The 
scripts in the Home stack don't get in the way. When you open a stack, 
HyperCard 
chooses the browse tool and if you want to change tools in your openStack 
script 
then you can just do that.

MetaCard was written like that too. The engine took care of everything and the 
IDE was minimalistic and didn't get in the way. You could change the tool in 
your openStack script if you wanted to. MetaCard opened with the browse tool as 
the active tool and you could change that to the pointer tool in a plugin for 
instance.

The Revolution (LiveCode) IDE is a different beast. It comes on top of 
everything, including the engine and the remnants of the original MetaCard IDE. 
In the past, after the engine set the tool, the Revolution IDE took over and 
set 
the tool again --maybe even 2 or 3 times. I believe there are a few bugs in the 
Revolution IDE that prevent it from setting the tool correctly. There were some 
issues with this in the past. 

It seems that RunRev has applied a hack to make sure that the tool is alwaus 
the 
browse tool (and not a watch cursor as it used to be for many years). After all 
scripts have run, including your own openStack scripts, the IDE chooses the 
pointer tool one more time, just to be sure.

You could move back to the MetaCard IDE. 

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 15:37, dunb...@aol.com wrote:

 Thanks all.
 
 
 I figured this out too, though the explanation was most helpful.
 
 
 When I say figured it out, I meant I tried sending the command in time, 
well, just because.
 
 
 In HC, the loading must be different, since one can choose, say, the field 
tool with a one-liner like I tried to do.
 
 
 There are millions of legacy habits that I have, coming from a HC background, 
that I need to reThink. Thanks again for the help.
 
 
 Craig Newman
 


___
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: how to do this type of search

2012-04-10 Thread Robert Brenstein

On 10.04.2012 at 10:06 Uhr +0900 Nicolas Cueto apparently wrote:

  The 'lineOffset' function will be your friend here...

If only it truly were that simple...

In my example, lineOffset would return 3 for is. But 5 is what 
I'm after.


--
Nicolas Cueto



untested but something along this should work:

function lineContainsExactMatch pWord,pText
  set the wholematches to true
  replace slash with tab in pText -- so we can search for was or were 
in was/were

  return the number of lines of (item 1 to itemOffset(pWord, pText) of pText)
end lineContainsExactMatch

Robert

___
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: Zipping Up an LC standalone program

2012-04-10 Thread Pete
I guess my primary concern is that a user can simply download the
compressed file and either have his browser autoatically un-compress it or
just be able to double-click on it to un-compress it, then have the program
be ready to use.  I may be misunderstanding but sounds like it might not be
that straightforward with tar?
Pete

On Tue, Apr 10, 2012 at 4:24 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Tim,

 Yes, you're right, tar is older. Nonetheless, can you think of any other
 reason why one would want to use tar, except for glueing files together in
 preparation of compression? I'm not sure what you mean by property bundle
 up bits of code.

 I don't think that tar is available on Windows by default, but that's
 another story.

 --
 Best regards,

 Mark Schonewille

 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553

 Get the extIco2Png external for LiveCode here http://qery.us/1w6

 On 11 apr 2012, at 01:14, Tim Jones wrote:

  On Apr 10, 2012, at 4:02 PM, Mark Schonewille wrote:
 
  Hi,
 
  Tar is a bad idea because it glues files together and doesn't compress.
 Tar was invented to allow gzip to compress multiple files. It is easier and
 faster to use the zip command line tool rather than to use both tar and
 gzip. Many unix geeks still prefer tar+gzip but I'm not sure why.
 
  Wha???
 
  tar (Tape ARchiver) has been around since before we even considered
 compression schemes.  It wasn't until the Linux / FreeBSD movement that
 compression options were added.  On most systems still using ATT tar
 sources, you have to compress an archive after tar creates it and
 decompress an archive before tar can extract its contents.
 
  We prefer tar and a compressor because it allows up to properly bundle
 up bits of code, regardless of the file types, and share them with others
 while reduing the overall footprint required on disk and for transfer.  The
 tar app is available in one form or another on every platform out there, so
 you can pretty much always open another's tarball.
 
  In fact, I believe Dennis' original PDP MULTIX 9-track install tapes
 used a precursor to the modern tar format.
 
  Tim


 ___
 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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Zipping Up an LC standalone program

2012-04-10 Thread Tim Jones
On Apr 10, 2012, at 5:54 PM, Pete wrote:

 Hi Warren,
 It's the un-zipping at the other end that concerns me, not the zip on my
 machine.  Sounds like the ability to handle tar files might require a
 Windows user to install some software.

You might be surprised at just how many Windows users actually already have one 
of these installed.  Far too many developers shortcut the installer process and 
go this route.  That means that a lot of apps floating around in Windows space 
are already in tar, zip, rar, or other non-standard Windows file format.  To 
access these, the Windows users have already had to install an appropriate tool.

Don't be afraid of something just because you're not an expert.  We've (app 
creators) been using these formats to deliver files and data to users for as 
long as I've been doing this (over 30 years at this point…).  If you're not 
going to be using an installer, then a zip file or tarball are very valid and 
accepted formats for delivery.

Tim



___
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: play sound from url on iOS

2012-04-10 Thread Thomas McGrath III
Klaus,

I have downloaded files and I have played downloaded sounds but I have not 
played downloading sounds while downloading i.e. streaming.

I also can not get the play command with mediaPicker to play iCloud music, but 
these do play and stream in the apple music app just not in LC……

sorry I can't be more helpful on this one


-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net

On Apr 10, 2012, at 11:39 AM, Klaus on-rev wrote:

 Hi all,
 
 Am 09.04.2012 um 15:35 schrieb Klaus on-rev:
 
 Hi friends,
 
 short question, is it possible to play a sound file from an URL in iOS? 
 If yes, what do I need to use: play ... or iphonePlaySoundOnChannel...?
 
 The docs do not mention URL, only in the Video playback section.
 
 Thanks a lot in advance!
 
 noone done this before? :-)
 
 I don't have an iOS license nor an iDevice to check this in the moment!
 
 
 Best
 
 Klaus
 
 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.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: Zipping Up an LC standalone program

2012-04-10 Thread Phil Davis

Pete,

I wonder if your revZip issue comes from the fact that a .app file is really a 
folder in disguise.


To pick an app via dialog on OS X, you must say answer file but then 
immediately you must treat the .app file you picked as a folder containing 
subfolders and files.


Consider this button code:

on mouseUp
answer file Pick an app to zip
if it = empty then exit to top

set the defaultFolder to it
put the defaultFolder  cr  the folders
end mouseUp


When you run this, the defaultFolder is now indeed the selected .app file and 
it contains a Contents folder which contains all the app parts. So you'll need 
to drill down into the .app folder and add each file to your zip file.


Then when it's restored at installation time, you may have to turn on the .app 
folder's bundle bit, I'm not really sure. I think someone on the list told how 
to do this some time ago but I couldn't tell you who or how. There's probably a 
line command for it.


Food for thought.

Phil Davis



On 4/9/12 5:19 PM, Pete wrote:

Been putting together a litte script to get all my files ready for a
release and used the revZIPxxx commands to make a zip file of the LC
standalone program - this all on a Mac.  The resulting zip file is only 4kb
in size, obvioulsy not correct.

The code is pretty straightfroward:

revZipOpenArchive myZipFile,write

*if* the result is not empty *then* *answer* the result

*answer* file Zip file

revZipAddItemWithFile myZipFile,myApp.app,it

*if* the result is not empty *then* *answer* the result

revZipCloseArchive myZipFile

Zipping the same file with the built-in OS X compress function works fine
and so does the CleanARchiver utitlity.

ANy ideas?



--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


___
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: Zipping Up an LC standalone program

2012-04-10 Thread Tim Jones
Hi Pete,

Understood - what I saw in the thread was others offering up tar options that 
can easily be executed in a shell in much the same manner as the revZip stuff.  
But, as Phil mentions concerning folders with the revZip functions, tar will 
automatically pickup the folder structures and compress the resulting output as 
a single file.  My responses were simply aimed at reassuring you that a tar 
file (gzipped or otherwise) was a valid and successful way to achieve what you 
were looking for and that recipients wouldn't have an issue receiving such a 
package.

Tim

On Apr 10, 2012, at 6:59 PM, Pete wrote:

 Hi Tim,
 The origin of this thread was me trying to automate the packaging of the
 app at my end by writing a script to handle the standaloneSaved message.
 It used the revZIPxxx commands which, unfortunately, don't seem to work
 very well, so other scripted solutions were offered, including tar and zip.
 I can definitely continue to create the compressed files manually in a
 format that will work just fine for Mac and WIndows (and hopefully Linux).
 
 I'm thinking about a proper installer but, other than moving the
 application to it's appropriate folder for the platform, there's nothing
 else to do so it just seems like overkill.
 
 Pete
 
 On Tue, Apr 10, 2012 at 6:19 PM, Tim Jones tolis...@me.com wrote:
 
 On Apr 10, 2012, at 5:54 PM, Pete wrote:
 
 Hi Warren,
 It's the un-zipping at the other end that concerns me, not the zip on my
 machine.  Sounds like the ability to handle tar files might require a
 Windows user to install some software.
 
 You might be surprised at just how many Windows users actually already
 have one of these installed.  Far too many developers shortcut the
 installer process and go this route.  That means that a lot of apps
 floating around in Windows space are already in tar, zip, rar, or other
 non-standard Windows file format.  To access these, the Windows users
 have already had to install an appropriate tool.
 
 Don't be afraid of something just because you're not an expert.  We've
 (app creators) been using these formats to deliver files and data to users
 for as long as I've been doing this (over 30 years at this point…).  If
 you're not going to be using an installer, then a zip file or tarball are
 very valid and accepted formats for delivery.
 
 Tim
 
 
 
 ___
 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
 
 
 
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Can I put advisory text in an 'ask' dialog?

2012-04-10 Thread FlexibleLearning
Achievable by rolling your own dialog and trapping keystrokes. If the field
is empty, then set the text of the field to the advisory text. If the field
is the advisory text and the selectedText is not empty, then set the text of
the field to empty.

Hugh Senior
FLCo

--

Message: 1
Date: Tue, 10 Apr 2012 19:02:09 +0200
From: Graham Samuel livf...@mac.com
To: use-livecode@lists.runrev.com
Subject: Can I put advisory text in an 'ask' dialog?
Message-ID: cddabb42-d169-489d-87bc-161563cf9...@mac.com
Content-Type: text/plain; CHARSET=US-ASCII

Sometimes one sees apps (on different platforms) where the user is invited
to type something into a field, and the field is pre-filled with a text
which disappears the moment the user starts typing - the initial text says
stuff like 'type your name here'. This type of text is not preselected
(apparently) - so it must be a special type of text, but I don't know how to
make it appear. Specifically, in LC's iOS implementation, the 'ask' dialog
scripting looks like this:

ask [ question | password ] prompt [ with initialAnswer ] [ titled title ]

so the question resolves to: how do I make the initialAnswer text a 'ghost'
text such as I have described, or is it impossible?

Graham


___
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