Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Paul Hibbert
Bob,

Cut, copy, paste & clear are available as commands in LC, so maybe simplifying 
your Edit menu a little may help, for example…

--The following menuPick handler was generated by the Menu Builder (& 
simplified a little).
on menuPick pWhich
   switch pWhich
  case "Preferences"
 --Insert script for Preferences menu item here
 break
  default
 do pWhich
   end switch
end menuPick

…It works for what you are describing as far as I can see, although it's not 
perfect.

Tested in LC 5.5.5 + 6.6.2 & 7.0(rc1) on Mac OS X 10.9.3

Cutting, or pasting within a field then tabbing out does trigger a closeField 
message, but "Copy" doesn't, possibly because the field didn't change even 
though the field still closed on tab, it does trigger an exitField.

However, "Clear" doesn't trigger a closeField message for some odd reason, but 
it does trigger an exitField, that seems a little inconsistent to me, because 
the contents of the field did change before exiting in much the same way that 
"cut" changes the field, I realise the "Cleared" text doesn't go onto the 
clipboard, but the effect on the field is the same.

So as far as I can see, "Clear" is the only case you would need to add a script 
for the lack of "closeField".

If anybody else sees the inconsistency with the "Clear" command as a bug, I 
would be happy to make a sample stack and report it, I'd just like to be sure 
I'm seeing it right before I do.

Paul


On Sep 13, 2014, at 5:55 PM, Bob Sneidar  wrote:

> First, if I cut or paste something in a field then tab out, closeField is not 
> triggered.

___
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: Writing ID3 Tags to files

2014-09-13 Thread J. Landman Gay

On 9/13/2014, 9:04 PM, Brahmanathswami wrote:

I would like to be able to write these from inside LiveCode,  using
scripts I would trigger changes in the Track Title, album, artist and
genre etc, while traversing directories/repositories filled with these
*.mp3 files. I have so 1000 plus files to add ID3 tags to and I'm not
looking forward to doing that by hand!


Before we lost Mark Smith, he had written an ID3 library. It's old now 
but it may still be useful. That, and his other work, is preserved here:




--
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: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread J. Landman Gay

On 9/13/2014, 7:55 PM, Bob Sneidar wrote:

As many know, creating a custom menu set on OS X (not sure about
Windows) will typically add the File and Edit menus to your customer
menu set. This has the net effect of*disabling*
cut/copy/paste/clear.


Not really. Did you use Menu Builder to set up the menu, and then click 
"Auto-script"? That inserts a menuPick handler with a switch statement 
all set up and ready to go, but without any specific commands. You have 
to add those yourself. If you don't, you have an empty menuPick that 
effectively blocks menu selections and keyboard shortcuts.


Also make sure you set the menubar of the stack to the name of the menu 
group. I've not had any problems with menus as long as I do all that.


If you have access to the RevLive conference videos, I covered a lot of 
this in my talk on menus.



So what gets sent to the engine exactly that lets it know that the
contents of a field have changed, so that tabbing out generates the
proper closeField message?


I agree with Kay that we don't want the engine sending closefields for 
us when scripts alter a field, and that's what textChanged is supposed 
to help with. But in this case I'd probably write the instructions into 
a separate handler, and then call that from the script that did the text 
alterations, and also from a closefield handler. That way either method 
will do the same thing. For example:


on closeField
  doStuff
end closeField

And in some other handler somewhere:

put "xyz" into fld 1
doStuff

--
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: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Kay C Lan
Your suggestion, if it didn't break many stacks, would certainly slow them down.

I mainly work with a Stack, a single card with anywhere between 10s to
over a 100 fields, and a database. Going Next or Previous record
populates those fields by using 'put' statements. Currently, even with
100+ fields it all happens in a blink of the eye. The user is then
left to check the data, and if any are wrong those individual fields
are changed, the closeField message is sent, which normally goes
through some convoluted data verification process which includes not
only checking the format of the data but also checking the MAX, MIN
and UNIQUE entries in the database. Once all that is done the record
is updated and everything is sweet.

With what you are suggesting, every time I go Previous or Next the
closeField message would be triggered 100+ times which is just a
complete waste of time. The current logic of not triggering a
closeField message has been with us since the birth of HyperCard.

Frankly I wouldn't be surprised if you don't already have 1000s of
situations across all your own stacks that already rely on this
behaviour; the initial opening of your stack with all the fields
prepopulated with data immediately comes to mind.

From memory I handled your situation by setting a custom property in
each field if data was pasted into it and then 'on exitField' testing
to see if data had been pasted in:

In the Edit Menu Script something like this:

   ...
case "Copy"
 set the clipboardData["Text"] to the selectedText of the focusedObject
 break
  case "Paste"
 put clipboardData["text"] into the focusedObject
 set the cFldModByPaste of the focusedObject  to true
 break
 ...

and then in every fld script * something like this:

on closeField
   --do what you need to here
end closeField

on exitField
   if (the cFldModByPaste of me = true) then
  --content change by paste so do closefield
  set the cFldModByPaste of me to false
  send closeField to me
   else
  --content hasn't been pasted in or changed
   end if
end exitField

* if groups of flds do exactly the same thing then you can save time
by placing these scripts in a button and using behaviors.

HTH

On Sun, Sep 14, 2014 at 9:01 AM, Bob Sneidar
 wrote:
> I read from the Dictionary under closeField: "The closeField message is not 
> sent when a handler changes the field's contents using the put command.”
>
> May I submit that it ought to? An edited field is an edited field, and when 
> it loses focus, if the contents are not what they were when it was opened, 
> closeField *ought* to be sent!
>
> At any rate, I do not think there is a message I can send the the field to 
> let it know the contents have changed. I am probably going to have to recode 
> for textChanged.
>
> Bob S
>
>
> On Sep 13, 2014, at 17:55 , Bob Sneidar  wrote:
>
>> Hi all.
>>
>> As many know, creating a custom menu set on OS X (not sure about Windows) 
>> will typically add the File and Edit menus to your customer menu set. This 
>> has the net effect of *disabling* cut/copy/paste/clear. I can live with 
>> that, because I have scripted the necessary menus to mimic the behaviors of 
>> those actions, but I am finding some quirks.
>>
>> First, if I cut or paste something in a field then tab out, closeField is 
>> not triggered. I assumed this was because the field was not getting 
>> selectionChanged, so I sent selectionChanged to the focusedObject after the 
>> cut/copy operations. Still, closeField does not get sent when I tab out of 
>> it. closeField DOES get sent if I simply edit the field then tab out.
>>
>> So what gets sent to the engine exactly that lets it know that the contents 
>> of a field have changed, so that tabbing out generates the proper closeField 
>> message?
>>
>> I suppose I could use textChanged to work around it, but frankly I would 
>> have to go through all my scripts which send a closeField to this object, 
>> and I’d rather not mess with what is already working.
>>
>> Bob S
>
>
> ___
> 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

Writing ID3 Tags to files

2014-09-13 Thread Brahmanathswami
If you open any [*.aif, *.mp3,] file in iTunes, you go to the " info" 
tab and enter ID3 tags (artist, album, track, genre, year, etc)  then 
when you switch to a different song you can see in the finder that the 
file is updated as the ID3 tags were written and saved transparently. 
Modification date changes today when you just added the info.


 In  Audacity or Audition you can enter these on save (audacity) or as 
metadata which is saved on save (audition)


I would like to be able to write these from inside LiveCode,  using 
scripts I would trigger changes in the Track Title, album, artist and 
genre etc, while traversing directories/repositories filled with these 
*.mp3 files. I have so 1000 plus files to add ID3 tags to and I'm not 
looking forward to doing that by hand!


Since this is an in house production app, I'm opening to using LiveCode 
to drive externals like


a) applescript
b) shell commands that drive some low-level nix tool?

Before I dive into further R & D I thought I would ask here.


Swasti Astu, Be Well!
Brahmanathaswami

Kauai's Hindu Monastery
www.HimalayanAcademy.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: stack "Unt!itled 1" ?

2014-09-13 Thread Dr. Hawkins
On Sat, Sep 13, 2014 at 1:31 PM, Peter Haworth  wrote:

> (?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$
>

Wow.  And there was a time I could have read that without putting serious
time into it.   There are a *lot* of those left . . .

I switched to my own logging partly to be able to catch things spewing to
message.

What concerns me is that "Unt!itled" is not something that I would ever
have typed.  For that matter, it would take multiple flukes to create
it--an open box, getting focus, deselecting the text, and moving to that
position, followed by me happening to hit shift-1 without realizing what I
was doing . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: url question

2014-09-13 Thread Kay C Lan
If you are on OS X and Safari you can 'do statementList as applescript'

tell application "Safari"
repeat with t in tabs of windows
tell t
if name starts with "google.com" then close
end tell
end repeat
end tell

Other browsers YMMV


On Sat, Sep 13, 2014 at 1:54 PM,   wrote:
> Hello,
>
> I use the following:
>
> launch url myUrl
>
> and LC opens a browser tab in my default browser - cool.
>
> My question is this:
>
> Is there any way to close that tab when I want to?
>
> TIA
> Larry
> ___
> 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: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Bob Sneidar
I read from the Dictionary under closeField: "The closeField message is not 
sent when a handler changes the field's contents using the put command.”

May I submit that it ought to? An edited field is an edited field, and when it 
loses focus, if the contents are not what they were when it was opened, 
closeField *ought* to be sent! 

At any rate, I do not think there is a message I can send the the field to let 
it know the contents have changed. I am probably going to have to recode for 
textChanged. 

Bob S


On Sep 13, 2014, at 17:55 , Bob Sneidar  wrote:

> Hi all.
> 
> As many know, creating a custom menu set on OS X (not sure about Windows) 
> will typically add the File and Edit menus to your customer menu set. This 
> has the net effect of *disabling* cut/copy/paste/clear. I can live with that, 
> because I have scripted the necessary menus to mimic the behaviors of those 
> actions, but I am finding some quirks. 
> 
> First, if I cut or paste something in a field then tab out, closeField is not 
> triggered. I assumed this was because the field was not getting 
> selectionChanged, so I sent selectionChanged to the focusedObject after the 
> cut/copy operations. Still, closeField does not get sent when I tab out of 
> it. closeField DOES get sent if I simply edit the field then tab out. 
> 
> So what gets sent to the engine exactly that lets it know that the contents 
> of a field have changed, so that tabbing out generates the proper closeField 
> message? 
> 
> I suppose I could use textChanged to work around it, but frankly I would have 
> to go through all my scripts which send a closeField to this object, and I’d 
> rather not mess with what is already working. 
> 
> Bob S


___
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


Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Bob Sneidar
Hi all.

As many know, creating a custom menu set on OS X (not sure about Windows) will 
typically add the File and Edit menus to your customer menu set. This has the 
net effect of *disabling* cut/copy/paste/clear. I can live with that, because I 
have scripted the necessary menus to mimic the behaviors of those actions, but 
I am finding some quirks. 

First, if I cut or paste something in a field then tab out, closeField is not 
triggered. I assumed this was because the field was not getting 
selectionChanged, so I sent selectionChanged to the focusedObject after the 
cut/copy operations. Still, closeField does not get sent when I tab out of it. 
closeField DOES get sent if I simply edit the field then tab out. 

So what gets sent to the engine exactly that lets it know that the contents of 
a field have changed, so that tabbing out generates the proper closeField 
message? 

I suppose I could use textChanged to work around it, but frankly I would have 
to go through all my scripts which send a closeField to this object, and I’d 
rather not mess with what is already working. 

Bob S
___
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: stack "Unt!itled 1" ?

2014-09-13 Thread Peter Haworth
I think Thierry holds that title, I'm just one of his students!

I made one change to the regex because it wouldnt have recognized anything
other the comments that start with "--".  This version will recognize any
of the valid single line comment indicators.  Haven't figured out how to
handle block comments in a regex yet, but I'm betting Thierry will chime in!

(?im)^(?!--|#|//)\s*put\s((?!(into|after|before|\\)).)*$

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Sat, Sep 13, 2014 at 1:46 PM, Skip Kimpel  wrote:

> Pete, you are a regex Jedi master.
>
> SKIP
>
> > On Sep 13, 2014, at 4:31 PM, Peter Haworth  wrote:
> >
> > Sounds like you have a stray "put" with no target.
> >
> > Go into the script editor Find window, click "More", select Stack File in
> > the "Look In" menu, click the Find Options and select "Regular
> Expression"
> > in the Search method options, then type this in the FInd field:
> >
> > (?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$
> >
> > It will list any lines in your stack file that contain "put" and don't
> have
> > Into, after, or before.
> >
> > Pete
> > lcSQL Software 
> > Home of lcStackBrowser  and
> > SQLiteAdmin 
> >
> >> On Sat, Sep 13, 2014 at 12:54 PM, Dr. Hawkins 
> wrote:
> >>
> >> I am seeing the message box opened with
> >>
> >> stack "Unt!itled 1"
> >>
> >> as my project opens; this has been a few weeks, I think  (I just noticed
> >> the ! the other day).
> >>
> >> Of course, if I try trap for it, it doesn't happen . . . there are
> various
> >> things, such as an actual "put" to the message box that seem to stop it.
> >>
> >> It appears that the output of the message box is field 1 of cd 1 of
> stack
> >> "Message box"
> >>
> >> So, cleverly, I try to use that--but
> >>
> >> answer field 1 of cd 1 of stack "Message box"
> >>
> >> empties the field before proceeding!
> >>
> >> (I can answer field 2 to get the command without a problem.)
> >>
> >> Can anyone suggest what is going on, or how to find it?
> >> --
> >> Dr. Richard E. Hawkins, Esq.
> >> (702) 508-8462
> >> ___
> >> 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: stack "Unt!itled 1" ?

2014-09-13 Thread stephen barncard
On Sat, Sep 13, 2014 at 1:31 PM, Peter Haworth  wrote:

> Sounds like you have a stray "put" with no target.
>
> Go into the script editor Find window, click "More", select Stack File in
> the "Look In" menu, click the Find Options and select "Regular Expression"
> in the Search method options, then type this in the FInd field:
>
> (?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$
>
> It will list any lines in your stack file that contain "put" and don't have
> Into, after, or before.
>
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
>

I've been looking for this one for years. I even asked Jerry Daniels once,
and go no reply. I think he probably left it up to me to find out for
myself as an exercise! He was too polite to say "DUH"


*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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: OS X codesigning best practise?

2014-09-13 Thread Matthias Rebbe | M-R-D
Tiemo.

Thank you for your explanation. Tried it and it went through without problems.

App Wrappe at least tells me, that it was successful. But is there a way to 
check the bundle, if it is really signed?

Regards,

Matthias

Am 11.09.2014 um 17:40 schrieb Tiemo Hollmann TB :

> Hi Matthias,
> with App Wrapper it's really easy:
> 1. Buy a developer codesigning certificate at Apple
> 2. Start App Wrapper
> 3. Drag an unsigned app onto App Wrapper
> 4. Go to TAB "Package"
> 5. Check the "Codesign" checkbox
> 6. Choose your developer certificate
> 7. Don't choose any of the options below
> 8. Choose "Wrap to" folder and click "Wrap" at topright
> 
> Beside the codesigning it makes some more "validation and finishing" tasks,
> which seems to be fine and don't bother me.
> 
> In my case it also removed the PPC code from my app and from ALL apps and
> bundles inside my app. I don't know, if you can control that, I didn't
> needed the PPC code anymore.
> 
> That’s all 
> Tiemo
> 
> 
>> -Ursprüngliche Nachricht-
>> Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
> Auftrag
>> von Matthias Rebbe | M-R-D
>> Gesendet: Donnerstag, 11. September 2014 13:49
>> An: How to use LiveCode
>> Betreff: Re: OS X codesigning best practise?
>> 
>> Tiemo,
>> 
>> if you have some time, would you describe step by step how this is done
> with
>> AppWrapper?
>> That would be very helpful.
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> Am 11.09.2014 um 13:29 schrieb Tiemo Hollmann TB :
>> 
>>> FYI to answer my own questions:
>>> 1. the --deep option in codesign seems to be not valid anymore since
>>> Mavericks, so if you are using apples codesign tool, you really have
>>> to codesign each single component from inside to outside step by step.
>>> 2. Yes App Wrapper does it in one step, I will go on with App Wrapper,
>>> it's super easy.
>>> 3. I have asked Runrev and it is ok with them, if I codesign runrevs
>>> bundles included in my app.
>>> Tiemo
>>> 
>>> 
 -Ursprüngliche Nachricht-
 Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im
>>> Auftrag
 von Tiemo Hollmann TB
 Gesendet: Mittwoch, 10. September 2014 18:21
 An: 'How to use LiveCode'
 Betreff: OT: OS X codesigning best practise?
 
 Hello,
 
 I am just trying the first time to codesign my app on OS X 10.9, the
 certificate I bought already.
 
 When using the command line codesign utility, it seems that I have to
>>> codesign
 each .bundle and .app, which is included in my app first, before I
 can codesign my app itself.
 
 1.   Is this correct to do all codesignings as single steps, or is
>>> there
 an option to codesign a complete package with all included components
 in
>>> one
 step?
 
 2.   Do codesigning tools like app wrapper do this job in one step,
> or
 do I also have to sign all components myself?
 
 3.   What about the owners rights? E.g.if my app contains the
 revxml.bundle or another third party external and I would codesign
 this
>>> rev
 bundle with my certificate, may I do this? If not, what is the
>>> alternative?
 
 
 
 Thanks for your experience
 
 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
>>> 
>>> 
>>> ___
>>> 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: stack "Unt!itled 1" ?

2014-09-13 Thread Skip Kimpel
Pete, you are a regex Jedi master.

SKIP

> On Sep 13, 2014, at 4:31 PM, Peter Haworth  wrote:
> 
> Sounds like you have a stray "put" with no target.
> 
> Go into the script editor Find window, click "More", select Stack File in
> the "Look In" menu, click the Find Options and select "Regular Expression"
> in the Search method options, then type this in the FInd field:
> 
> (?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$
> 
> It will list any lines in your stack file that contain "put" and don't have
> Into, after, or before.
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> 
>> On Sat, Sep 13, 2014 at 12:54 PM, Dr. Hawkins  wrote:
>> 
>> I am seeing the message box opened with
>> 
>> stack "Unt!itled 1"
>> 
>> as my project opens; this has been a few weeks, I think  (I just noticed
>> the ! the other day).
>> 
>> Of course, if I try trap for it, it doesn't happen . . . there are various
>> things, such as an actual "put" to the message box that seem to stop it.
>> 
>> It appears that the output of the message box is field 1 of cd 1 of stack
>> "Message box"
>> 
>> So, cleverly, I try to use that--but
>> 
>> answer field 1 of cd 1 of stack "Message box"
>> 
>> empties the field before proceeding!
>> 
>> (I can answer field 2 to get the command without a problem.)
>> 
>> Can anyone suggest what is going on, or how to find it?
>> --
>> Dr. Richard E. Hawkins, Esq.
>> (702) 508-8462
>> ___
>> 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: stack "Unt!itled 1" ?

2014-09-13 Thread Peter Haworth
Sounds like you have a stray "put" with no target.

Go into the script editor Find window, click "More", select Stack File in
the "Look In" menu, click the Find Options and select "Regular Expression"
in the Search method options, then type this in the FInd field:

(?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$

It will list any lines in your stack file that contain "put" and don't have
Into, after, or before.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Sat, Sep 13, 2014 at 12:54 PM, Dr. Hawkins  wrote:

> I am seeing the message box opened with
>
> stack "Unt!itled 1"
>
> as my project opens; this has been a few weeks, I think  (I just noticed
> the ! the other day).
>
> Of course, if I try trap for it, it doesn't happen . . . there are various
> things, such as an actual "put" to the message box that seem to stop it.
>
> It appears that the output of the message box is field 1 of cd 1 of stack
> "Message box"
>
> So, cleverly, I try to use that--but
>
> answer field 1 of cd 1 of stack "Message box"
>
> empties the field before proceeding!
>
> (I can answer field 2 to get the command without a problem.)
>
> Can anyone suggest what is going on, or how to find it?
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> 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


stack "Unt!itled 1" ?

2014-09-13 Thread Dr. Hawkins
I am seeing the message box opened with

stack "Unt!itled 1"

as my project opens; this has been a few weeks, I think  (I just noticed
the ! the other day).

Of course, if I try trap for it, it doesn't happen . . . there are various
things, such as an actual "put" to the message box that seem to stop it.

It appears that the output of the message box is field 1 of cd 1 of stack
"Message box"

So, cleverly, I try to use that--but

answer field 1 of cd 1 of stack "Message box"

empties the field before proceeding!

(I can answer field 2 to get the command without a problem.)

Can anyone suggest what is going on, or how to find it?
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


Tab control background color

2014-09-13 Thread Peter Haworth
It seems that if you set the background color of a tab control, it is
somehow blended with the standard grey background (this is on OSX).

Is there a way round this without having to design my own tab control?

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 
___
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: Download and Run Stacks - Can Do On Mobile?

2014-09-13 Thread Charles E Buchwald
I seriously considered using stack files. It would make a lot of things easier 
than writing and reading XML in ZIP files. But I couldn't risk having to 
rewrite everything if the use of stack files was rejected by Apple.

Even with my system of transferring XML, these illegal workarounds would be 
possible. I could code functionality that does not show up in any way in the 
submission to Apple, and then trigger it with what's in the XML content later. 
I don't see how Apple can catch every possibility, even if they review the 
scripts. As my father says, "Locks are for honest people."

- Charles

On 13 Sep 2014, at 12:07 PM, Richard Gaskin  wrote:

> AFAIK*, it should be allowable to even use stack files as content containers, 
> provided they include no executable code.
> 
> This is a odd area though, since it's possible to set up a system of 
> behaviors in which one could submit an app with one set of functionality, and 
> later download behavior-driven stack files that include no code but 
> completely alter the functionality of the software.

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

Mac OSX 10.9.4, LC 6.6.2 Commercial

LC Developer Tools: http://buchwald.ca

Email Notice: http://wp.me/P3aT4d-33


___
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


closing a browser tab?

2014-09-13 Thread larry
Hello,

I use the following:

launch url myUrl

and LC opens a browser tab in my default browser - cool.

My question is this:

Is there any way to close that tab when I want to?

TIA
Larry
___
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


Retina output on a Mac

2014-09-13 Thread Andrew Henshaw
Apart from compiling with 6.6.2+,  is there anything else I need to set to 
enable retina output on a mac?

I dont have retina on my mac,  so I used air display and my iPad to test the 
retina output and that just worked,  when I dragged the window onto the iPad 
retina display is just redrew ans became super sharp.

I ask because I have a user that says one of my apps is not displaying as 
retina,  and has sent me a screen shot where everything looks scaled.

Ive changed all the graphics in the app so they are read from a folder,  and 
there are both standard and retina versions of the images in the folder.  Is 
there anything else ive overlooked?
___
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: Printing on Windows

2014-09-13 Thread Andrew Henshaw
Thanks Roger,

Ive refined it some more now and it looks like a bug.   It only happens if you 
try to print a field with vertical lines set to on,  on a windows computer.



> On 13 Sep 2014, at 18:10, Roger Eller  wrote:
> 
> I read somewhere recently that RunRev would rather have a bug reported and
> it turn out not to be, than to have it remain undiagnosed.  Based on your
> description, it sounds like a bug.  I'd say report it.
> 
> Sent from my Android tablet
> On Sep 13, 2014 12:14 PM, "Andrew Henshaw"  wrote:
> 
>> Before I submit this as a bug,  does anyone else have print issues with
>> Windows from LIvecode 6.6.2 onwards?
>> 
>> The issue I have is that a text box,  formatted as a table prints
>> correctly on a Mac or Linux system,  but on Windows it prints as a grey or
>> black box for the whole size of the text box,  obliterating the contents
>> and using up a lot of ink.   Ive also installed a print to PDF driver and
>> get the same problem (but save ink!).
>> 
>> If I compile with 6.6.1 it works fine across all platforms,  but anything
>> later including LC7 prints a solid grey or black box instead of the field.
>> 
>> Im working on a sample stack now so I can submit that as a bug if needed,
>> but just wondering before I do (and waste any of the team at RRs time) if
>> this is something anyone has seen before and is a bug or if its something
>> I’m doing wrong.
>> 
>> Andy
>> ___
>> 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: Printing on Windows

2014-09-13 Thread Roger Eller
I read somewhere recently that RunRev would rather have a bug reported and
it turn out not to be, than to have it remain undiagnosed.  Based on your
description, it sounds like a bug.  I'd say report it.

Sent from my Android tablet
On Sep 13, 2014 12:14 PM, "Andrew Henshaw"  wrote:

> Before I submit this as a bug,  does anyone else have print issues with
> Windows from LIvecode 6.6.2 onwards?
>
> The issue I have is that a text box,  formatted as a table prints
> correctly on a Mac or Linux system,  but on Windows it prints as a grey or
> black box for the whole size of the text box,  obliterating the contents
> and using up a lot of ink.   Ive also installed a print to PDF driver and
> get the same problem (but save ink!).
>
> If I compile with 6.6.1 it works fine across all platforms,  but anything
> later including LC7 prints a solid grey or black box instead of the field.
>
> Im working on a sample stack now so I can submit that as a bug if needed,
> but just wondering before I do (and waste any of the team at RRs time) if
> this is something anyone has seen before and is a bug or if its something
> I’m doing wrong.
>
> Andy
> ___
> 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: Download and Run Stacks - Can Do On Mobile?

2014-09-13 Thread Richard Gaskin

Charles E Buchwald wrote:
> I've been working on a system that is basically a magazine reader. My
> iOS "player" contains all the code. It downloads a ZIP archive with
> an XML file that contains all the content, plus the media assets.
>
> If I need to add functionality of any kind, I'll update the iOS
> player, even if it's only interactivity that I plan on using in the
> future.
>
> This isn't quite as flexible as the kind of arrangement that Richard
> is talking about here, but it's still pretty clean and versatile. Of
> course it works on other platforms, too.

AFAIK*, it should be allowable to even use stack files as content 
containers, provided they include no executable code.


This is a odd area though, since it's possible to set up a system of 
behaviors in which one could submit an app with one set of 
functionality, and later download behavior-driven stack files that 
include no code but completely alter the functionality of the software.


I haven't read Apple's iOS SDK license since way back when they 
backpedaled on the earlier provenance clause in SDK 4.0 (section 3.3.1).


It would be helpful if any of you who have read the current terms could 
comment on the state of Apple's policies with regard to code and content 
downloaded within the app outside of Apple's app store.


If they still prohibit sharing executable code, it would seem only a 
matter of time before they discover that's what Novocard does, and ban 
it from their app stores as they have with other apps they'd previously 
approved.


But if they continue to allow Novocard after policy review, that should 
mean we have the same privileges, opening the door to delivering some 
pretty exciting apps with the same ease and flexibility we enjoy on all 
other platforms.



* Disclaimer required by the State of California:  "I am not an 
attorney.  If you need the services of an attorney you should consult a 
professional licensed to practice law in your area."


--
 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: Download and Run Stacks - Can Do On Mobile?

2014-09-13 Thread Charles E Buchwald
I've been working on a system that is basically a magazine reader. My iOS 
"player" contains all the code. It downloads a ZIP archive with an XML file 
that contains all the content, plus the media assets.

If I need to add functionality of any kind, I'll update the iOS player, even if 
it's only interactivity that I plan on using in the future.

This isn't quite as flexible as the kind of arrangement that Richard is talking 
about here, but it's still pretty clean and versatile. Of course it works on 
other platforms, too.

- Charles

On 13 Sep 2014, at 1:41 AM, Richard Gaskin  wrote:

> Brahmanathswami wrote:
> 
> > I remember being "blown away" years ago in the late 90's when Scott
> > Raney had a little demo of
> >
> > go stack url "http://somedomain.com/somestack.mc";
> >
> > and it downloaded and ran the stack.
> ...
> > But, can we do this on Mobile?  can the app on your iPhone download
> > and run stacks?  I think not... What about Android?  Probably not
> > also... security constraints
> 
> For the last several months a majority of the projects I manage are 
> client-server apps that rely on downloaded stacks, so the server's not just 
> deploying data, but the code and UI too.  Tons of fun for all - clients love 
> seeing new features roll out without every having to install anything new.
> 
> This type of distribution is technically sound on all platforms, and allowed 
> on all but one:  iOS' SDK license explicitly forbids apps that download 
> executable code.
> 
> Apple may change their mind in the future, but for now this is something we 
> can enjoy on all other devices on the planet, but we must make our iOS 
> customers wait for a larger, more complicated complete install.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for Desktop, Mobile, and 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

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

Mac OSX 10.9.4, LC 6.6.2 Commercial

LC Developer Tools: http://buchwald.ca

Email Notice: http://wp.me/P3aT4d-33


___
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


Printing on Windows

2014-09-13 Thread Andrew Henshaw
Before I submit this as a bug,  does anyone else have print issues with Windows 
from LIvecode 6.6.2 onwards?

The issue I have is that a text box,  formatted as a table prints correctly on 
a Mac or Linux system,  but on Windows it prints as a grey or black box for the 
whole size of the text box,  obliterating the contents and using up a lot of 
ink.   Ive also installed a print to PDF driver and get the same problem (but 
save ink!).

If I compile with 6.6.1 it works fine across all platforms,  but anything later 
including LC7 prints a solid grey or black box instead of the field.

Im working on a sample stack now so I can submit that as a bug if needed,  but 
just wondering before I do (and waste any of the team at RRs time) if this is 
something anyone has seen before and is a bug or if its something I’m doing 
wrong.

Andy
___
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: No WAV playback on Win in v6.6.2?

2014-09-13 Thread Richard Gaskin

Alex Shaw wrote:

If you just need basic playback try ffplay.

https://www.ffmpeg.org/ffplay.html


Thanks, but one of the reasons we chose LiveCode for this project was 
its built-in multimedia support.  :(



Looks like Dave Kilroy has the magic key:

FYI 6.6.2 plays .wmv fine without QuickTime on Windows. Use "set the
dontUseQT to true" in preOpenStack and then "play  videoclip tPathToFile" to
kick it off


Thanks!

Confirmed on Mac and Win:  if you ignore the player object and use the 
audioClip syntax, WAV files play fine on both Mac and Win.


Doesn't work on Linux, but for this project that's not a deal-breaker.

--
 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: Download and Run Stacks - Can Do On Mobile?

2014-09-13 Thread Richard Gaskin

Walt Brown wrote:


Check out Novocard. It says it is HC like, and allows keeping and sharing
stacks in the cloud, and runs on iOS.


Interesting.  Their web site says:

"Share your stacks with friends via email and Dropbox."

So either Apple has changed their earlier prohibition against apps that 
run executable code downloaded from sources outside their app store, or 
Apple's review process slipped up and let this in by mistake.


Anyone here seen a change to the iOS SDK terms?

--
 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: Download and Run Stacks - Can Do On Mobile?

2014-09-13 Thread Walt Brown
Check out Novocard. It says it is HC like, and allows keeping and sharing
stacks in the cloud, and runs on iOS.
Walt

On Saturday, September 13, 2014, Richard Gaskin 
wrote:

> Brahmanathswami wrote:
>
> > I remember being "blown away" years ago in the late 90's when Scott
> > Raney had a little demo of
> >
> > go stack url "http://somedomain.com/somestack.mc";
> >
> > and it downloaded and ran the stack.
> ...
> > But, can we do this on Mobile?  can the app on your iPhone download
> > and run stacks?  I think not... What about Android?  Probably not
> > also... security constraints
>
> For the last several months a majority of the projects I manage are
> client-server apps that rely on downloaded stacks, so the server's not just
> deploying data, but the code and UI too.  Tons of fun for all - clients
> love seeing new features roll out without every having to install anything
> new.
>
> This type of distribution is technically sound on all platforms, and
> allowed on all but one:  iOS' SDK license explicitly forbids apps that
> download executable code.
>
> Apple may change their mind in the future, but for now this is something
> we can enjoy on all other devices on the planet, but we must make our iOS
> customers wait for a larger, more complicated complete install.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for Desktop, Mobile, and 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: No WAV playback on Win in v6.6.2?

2014-09-13 Thread Dave Kilroy
FYI 6.6.2 plays .wmv fine without QuickTime on Windows. Use "set the
dontUseQT to true" in preOpenStack and then "play  videoclip tPathToFile" to
kick it off

I have no idea if it possible to convert a .wav to a .wmv (obviously without
any visuals) - but if it was possible you could then play the 'video' on a
hidden substack and hear the audio




-
"Some are born coders, some achieve coding, and some have coding thrust upon 
them." - William Shakespeare & Hugh Senior

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/No-WAV-playback-on-Win-in-v6-6-2-tp4683195p4683206.html
Sent from the Revolution - User mailing list archive at Nabble.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


Garbage collection in 7.0 (was Re: WindowShape)

2014-09-13 Thread FlexibleLearning.com
Could be related to Bug #13126 and inadequate garbage collection in DP8. The
issue has been confirmed but not yet resolved. 

Hugh Senior
FLCo


From: Paul Hibbert 

Crashed here too. So I opened the Activity Monitor, launched LC again,
opened the stack and activated the animation, then watched the memory usage
just grow and grow until it stopped at 3.39GB, then eventually it crashed.

Paul



___
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