how to copy a folder from preferences under lion?

2011-08-10 Thread Tiemo Hollmann TB
Hello, My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/. I tried: get shel

Re: regex to locate text and colorize it in a list

2011-08-10 Thread Roger Eller
On Tue, Aug 9, 2011 at 7:49 PM, John Craig wrote: > That should be exactly what the snippet does - maybe I got your test data > wrong. An occurrence of the first item in the fourth item is colorised. > > > Sent from my iPhone > > On 10 Aug 2011, at 00:25, Roger Eller wrote: > > > On Tue, Aug 9,

Re: how to copy a folder from preferences under lion?

2011-08-10 Thread Richard Gaskin
Tiemo Hollmann wrote: My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/.

AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Tiemo Hollmann TB
I have some files which must be shared for all users (see my previous threads). That’s why I had those files in the past in /library/preferences/ and now for Lion in /applications/myFolder/ which works for fresh installations. Now I wanted to migrate my files for existing installations, who upgrade

Re: AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Richard Gaskin
Tiemo Hollmann wrote: >> Richard Gaskin wrote: >> What's wrong with using the folder Apple recommends?: >> >>specialFolderPath("preferences") > > I have some files which must be shared for all users (see my previous > threads). That’s why I had those files in the past in /library > /preferenc

Exporting vector images

2011-08-10 Thread Richmond Mathewson
I know this is an old chestnut, but . . . Considering one can make and manipulate vectorised objects insode Livecode I don't quite see why one should not be able to export vector images. I have a lot of people badgering me about exporting vector images of (Sanskrit) text just now. _

Re: Money Script

2011-08-10 Thread Bob Sneidar
Hey Charles that actually works pretty well. I did notice that a negative number would format something like $-5.21. Is that normal? Looks odd to me. Bob On Aug 9, 2011, at 12:08 PM, Charles Szasz wrote: > I found the following to work just as well for fields without using functions: > > on

Re: Money Script

2011-08-10 Thread Bob Sneidar
Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. Bob On Aug 9, 2011, at 10:34 PM, Mark Wieder wrote: > Hugh- > > Monday, August 8, 2011, 11:02:14 PM, you wrote: > >> Mark Wieder's script, adjusted... > > .

Stack Size Changes

2011-08-10 Thread Timothy Miller
So, heerza deal, One stack, several cards, two groups on each card, groups behave as backgrounds. Top of one group is 1, bottom is 199. Top of second group is 200, bottom is 740. This group has a vertical scroll bar. "Resizable" for the stack is turned off. "Lock size and position" is on, for

Re: AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Bob Sneidar
So perhaps having a second stack which opened a shell that moved the files as an elevated process? Interesting. Bob On Aug 10, 2011, at 7:04 AM, Richard Gaskin wrote: >open elevated process process [ for [ text | binary ] >( read | write | update | neither ) ] __

Re: Exporting vector images

2011-08-10 Thread Bob Sneidar
What would REALLY be nice is to be able to use REAL vector based icons or import eps for our buttons so that scaling an app would not make everything look cheesy. Bob On Aug 10, 2011, at 7:28 AM, Richmond Mathewson wrote: > I know this is an old chestnut, but . . . > > Considering one can m

Re: FTP To and From My Mac

2011-08-10 Thread Gregory Lypny
Hi Dave Cragg and Mark Schonewille, Thank you both for your responses. Problem solved with a unexpected fix! I tried all of your suggestions, learned a lot about the various libURL commands, which will be useful in my project, but unfortunately, none solved the problem not being able to downl

AW: AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Tiemo Hollmann TB
Thanks Richard, I think for my usage of offering a migration tool it's a bit to much. I think I'll let die my old files where they are and let the user install them fresh in the new location. If somebody complains about my dead files I'll let him call apple. Tiemo > -Ursprüngliche Nachricht---

Re: [Server] create stack trouble

2011-08-10 Thread Björnke von Gierke
On 9 Aug 2011, at 19:20, Pierre Sahores wrote: > Hi Björnke, > > FOR ME The main goal of using the server's stack component is to let us > store our code as password protected libraries I fixed your point above. The problem is exactly that mindset. This time "your" user case was supported.

Questions About LiveCode Apps That Connect to the Internet

2011-08-10 Thread Gregory Lypny
Hello everyone, I’m building a standalone for my students. It will allow them to upload quizzes and small assignments to my Mac via FTP as well as participate in various experiments and surveys. I have a few Internet-related questions that I hoping someone can answer. Is there a handler I ca

Re: More time travelling

2011-08-10 Thread J. Landman Gay
On 8/10/11 12:39 AM, Mark Wieder wrote: Looks like Jacque's not the only time traveller around... http://www.pcmag.com/article2/0,2817,2390671,00.asp At first I thought this was just an amateur tinkering with a clock. But when I met her 40 years from now, I see she may be on to something.

AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Tiemo Hollmann TB
I also tried to just copy the files (cp), which works with standard files, but not with a hidden file (dotFilename). Any ideas? Thanks Tiemo > -Ursprüngliche Nachricht- > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] Im Auftrag von Tiemo Hollm

Re: Questions About LiveCode Apps That Connect to the Internet

2011-08-10 Thread Mark Talluto
On Aug 10, 2011, at 8:33 AM, Gregory Lypny wrote: > Hello everyone, > > I’m building a standalone for my students. It will allow them to upload > quizzes and small assignments to my Mac via FTP as well as participate in > various experiments and surveys. I have a few Internet-related question

Re: AW: AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Bob Sneidar
I think if Apple decided to lock people out of their own preference files, they should have provided a migration utility themselves. Bob On Aug 10, 2011, at 8:30 AM, Tiemo Hollmann TB wrote: > Thanks Richard, > I think for my usage of offering a migration tool it's a bit to much. I > think I'

Re: [Server] create stack trouble

2011-08-10 Thread Pierre Sahores
Hello Björnke, We probably need to get in mind that desktop apps stacks and server's stacks are not dedicated to do the same jobs ! On the left, desktop apps stacks are handled in RAM as long running processes and this give us lots of possibilities, sockets management included. If you really s

Re: Money Script

2011-08-10 Thread Peter M. Brigham, MD
On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: > Mark, it must have been you in an alternate timeleine. I have socks I never > bought in my drawer. That pretty much settles everything. OK, now we've traveled back to a previous discussion. Next someone talks about driers being time machines,

Re: Exporting vector images

2011-08-10 Thread Alejandro Tejada
Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Exporting-vector-images-tp3733066p3733514.html Sent from the Revolution - User mail

Re: AW: AW: how to copy a folder from preferences under lion?

2011-08-10 Thread Pierre Sahores
Thanks Apple to invite us to understand that good time is coming for FOSS Posix OS ;-) Le 10 août 2011 à 17:46, Bob Sneidar a écrit : > I think if Apple decided to lock people out of their own preference files, > they should have provided a migration utility themselves. > > Bob > > > On Aug

Re: Exporting vector images

2011-08-10 Thread Richmond Mathewson
On 08/10/2011 07:41 PM, Alejandro Tejada wrote: Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D Al Wow! And Thank You 50 thousand times! Richmond. ___ use-livecode m

Re: Exporting vector images

2011-08-10 Thread Richmond Mathewson
On 08/10/2011 07:41 PM, Alejandro Tejada wrote: Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D BUT . . . This super stack exports Vector graphics as vector graphics (wow, that sounds a bit circular), and as suc

Re: Money Script

2011-08-10 Thread Nonsanity
cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD wrote: > On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: > > > Mark, it must have been you in an alternate timeleine. I have socks I > never bought in my drawer. That pretty

Re: Money Script

2011-08-10 Thread Bob Sneidar
I really love you guys. :-) Bob On Aug 10, 2011, at 10:03 AM, Nonsanity wrote: > cheese > > > ~ Chris Innanen > ~ Nonsanity > > > On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD > wrote: > >> On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: >> >>> Mark, i

Money Script

2011-08-10 Thread Charles Szasz
Bob, I am using that script along with the following script, which is placed first. The script below prevents a negative number being entered. My app calculates mileage and hence, I will not have a negative number. on keyDown theKey if theKey is in "1234567890" then pass keydown end

Re: Questions About LiveCode Apps That Connect to the Internet

2011-08-10 Thread Peter M. Brigham, MD
> How can I get the current date and time from either a time server or my > remote Mac? I need to timestamp student submissions and want the time coming > from one source, not their own machines. You can fetch the time from the U.S. Naval Observatory atomic clock. This assumes an internet conn

Re: Searching for partial matches in a datagrid

2011-08-10 Thread zryip theSlug
Hi Bob, Maybe time for sharing some hidden scripts. Here is a part of the DGH engine script that could probably do the trick: command dgh_FindLine pWhichDataGrid, pKeyIndexA, pSearchType, pSearchString local tTheIndexList, tIndex, tTheLineList _dgh_FindIndex pWhichDataGrid, pKeyIndexA, pSea

Re: Searching for partial matches in a datagrid

2011-08-10 Thread Bob Sneidar
Oh hey that's awesome! I ended up crafting a SQL query to do it by querying the database, but of course, that may be a bit slower than filtering the datagrid itself with all the records in an array stored locally. I will have to test both methods and see how it goes. I am really leaning toward

Re: Searching for partial matches in a datagrid

2011-08-10 Thread Pete
I've had the same situation myself and ended up querying the database rather than searching the datagrid. Main reason was that it's possible that the data in the database could have changed since the datagrid was loaded so filtering the datagrid data might end up with outdated results. Depends on

Re: Stack Size Changes

2011-08-10 Thread Timothy Miller
My query from earlier this morning is generating a non-flurry of replies, likely because no one knows the answer. I have solved the problem with a simple preOpenStack handler, which works fine. However, I feel this issue must represent a gap in my knowledge, which I would like to close. Furthe

Re: Stack Size Changes

2011-08-10 Thread Malte Brill
Hi Tim, If the stack is taller (or wider) than governed by the windowBoundingRect, it will be automatically chopped off. I do not like it... Been that way for ever. :-( Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Stack Size Changes

2011-08-10 Thread Bob Sneidar
What I did a long time ago to resolve this is I created a background graphic the size I wanted my window to be. The stack always seems to open at the right size now. Bob On Aug 10, 2011, at 1:29 PM, Timothy Miller wrote: > My query from earlier this morning is generating a non-flurry of repl

Re: Adding tracks

2011-08-10 Thread Admin
Now for a hard one. I am writing a program called GrooveBlox. I created a menu and have a Track menu - where the user can add and delete tracks, like a sequencer program. Tracks are like layers and will be able to be moved around, added to, etc. The idea is to have rectangles (colored) that

Re: Mac users, please try this out:

2011-08-10 Thread Admin
Dear Mac users: I have deployed my database program to Mac, and at first, when I tested it originally on my Mac, it worked. Now it won't let me click any buttons, so I cannot login. Could you please download the files and see if they (A) run and (B) work properly (I know you do not have a l

Stack Size Changes

2011-08-10 Thread Timothy Miller
Hi Malte and Bob, The windowBoundingRect is unfamiliar to me. This is probably the gap in my understanding I wanted to fill. I'm reading the dictionary, scratching my head. However, the arithmetic is not quite adding up. Visually, my stack fits on the screen. If I position it carefully by dragg

Re: Mac users, please try this out:

2011-08-10 Thread Mark Schonewille
Hi Mike, I downloaded the file candidateswt_mac.sitx and StuffIt Expander shows an error message: An errror occurred... Unspecified internal error #17999. I can't do anything with that file. Mac OS X has a built-in compression tool. Look in the File menu of the Finder. It contains a Compress m

Re: Mac users, please try this out:

2011-08-10 Thread Admin
Mark, And I just bought that damn program. I am trying to make it so that the files (there are 2 files and one executeable) decompress and run on download. How do I do this? I can send you the contents of both files if you can help me. Mike On Wed, 10 Aug 2011 23:58:27 +0200, Mark Sch

Scripts Externally Modified?

2011-08-10 Thread Pete
Every now and then when quitting LC, I get a message window with the above heading with the text "The following objects were modified outside the script editor, would you like to reload them" plus a field containing an object name (the one I'm looking at right now is a card). I have no idea what t

Re: Mac users, please try this out:

2011-08-10 Thread Mark Schonewille
Hi Mike, On Mac, you're not supposed to start an application automatically after downlaod. It is a security violation. On windows, you can do this, unfortunately. Your closest bet would be to create a disk image. You could even set the background of such an image to a picture wiith instructions

Re: Mac users, please try this out:

2011-08-10 Thread Admin
Mark, I think you are right. Unfortunately, my php/mysql skills are not so good when it comes to marrying a web form to the database. My client's needs are too complex for me. I was hoping to do it with Live Code because I can program it. Mike On Thu, 11 Aug 2011 00:17:46 +0200, Mark Sc

Re: Mac users, please try this out:

2011-08-10 Thread Mark Schonewille
Hi Mike, Then contact me off-list and we'll see if we can work out something. It seems you have done the larger part of the work already, so I'm optimistic about making a web interface. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://econo

Re: Stack Size Changes

2011-08-10 Thread Peter M. Brigham, MD
FYI, on a mac, the the working screenrect gives you the screenrect minus the height of the mac menubar (22). Does this work for you? on preopenstack set the width of this stack to 612 set the height of this stack to 792 set the top of this stack to 110 -- or whatever end preopenstack When

Re: Scripts Externally Modified?

2011-08-10 Thread J. Landman Gay
On 8/10/11 5:13 PM, Pete wrote: Every now and then when quitting LC, I get a message window with the above heading with the text "The following objects were modified outside the script editor, would you like to reload them" plus a field containing an object name (the one I'm looking at right now

Re: groove blox - started already. Need help with arrays and snap to

2011-08-10 Thread Admin
Dear All, I already got drag and drop sort of working - can drag a wave file to a rectangle and it retains the name of the file - so now I can play that file once it is dragged to the track view. I am not sure how to make an array - and I assume an array is what I need to keep track of mult

Re: [OT] Internet Censorship

2011-08-10 Thread Judy Perry
On Sat, 6 Aug 2011, Alejandro Tejada wrote: Notice, again, that Sony paid for these rights. If they want, they could forbid forever the public diffusion of any performance of these artists... Forever. No explanation necessary. It's their right. They paid for it. --Not quite, as two former memb

Re: [OT] Internet Censorship

2011-08-10 Thread Judy Perry
Alejandro, Part of the problem, at least in the US, is that "fair use" is not a right; it's a defense, meaning you have to risk being sued to even mention it. A silly little video of mine was just taken down by EMI because I used a recording of O Fortuna. I suppose EMI could claim that, bec

Re: More time travelling

2011-08-10 Thread Mark Wieder
Jacque- Wednesday, August 10, 2011, 9:09:03 AM, you wrote: > On 8/10/11 12:39 AM, Mark Wieder wrote: >> Looks like Jacque's not the only time traveller around... >> >> http://www.pcmag.com/article2/0,2817,2390671,00.asp >> > At first I thought this was just an amateur tinkering with a clock. But

Re: Stack Size Changes

2011-08-10 Thread Paul Looney
Tim, Are you using OS X? Two things on OS X can cause vertical resizing problems: 1. The dock If the dock is on the bottom of the screen (even if it is hidden) stacks can be shortened to accommodate area for the dock. Try it on the side and see if that makes a difference. 2. Menus All usually

Re: Stack Size Changes

2011-08-10 Thread Timothy Miller
Hi Paul, I'm on OS 10.6.8 I'll bet it's the dock. Wait. I'll try it right now... Oopsie! Same issue with the dock on the left. For now, this behavior is replicable. Trial and error: If I set the height to 717, close and reopen, it stays at 717. Same for 718. If I set it to 719, close and re-o

Re: Adding tracks

2011-08-10 Thread Scott Rossi
That's a lot of questions you have there. The general opinion I'll toss out is on the issue of managing tracks, since this seems to be the core of your application. IMO, you'll be hard pressed to do what you describe using native capabilities of LiveCode -- it's not really suited to playing track

Re: Stack Size Changes

2011-08-10 Thread Timothy Miller
A followup to my message on same thread, posted a few minutes ago, in reply to Paul. Further investigation reveals this anomaly: If I make the stack height a little too big, so the stack crops itself when it opens, and I then click on the little glowing green button at the upper left of the LC

Re: Adding tracks

2011-08-10 Thread Admin
Scott, I am using wave files. I have been looking at franklin audio (since I already have franklin 3d) However, how would I handle tracks? Mike On Wed, 10 Aug 2011 22:42:39 -0700, Scott Rossi wrote: > That's a lot of questions you have there. > > The general opinion I'll toss out i