revCopyFile progress window not showing in front
stephen barncard
stephenREVOLUTION2 at barncard.com
Wed Oct 5 17:21:28 EDT 2011
Thanks Mark. See below.
On 5 October 2011 13:07, Mark Schonewille
<m.schonewille at economy-x-talk.com>wrote:
> Hi,
>
> I believe this progress indicator shouldn't be visible at all. It is
> AppleScript and in my view it isn't done very well. The progress indicator
> you see is part of the Finder, not LiveCode.
>
Mark, it's not applescript (fortunately) any more except for OS 9 which is
no longer supported by Rev.
>From the docs:
On Mac OS systems, it uses AppleScript; on OS X, Windows and Unix systems,
it uses the shell function.
I didn't know this either until I read the docs.
And I *really did* see it, lurking behind. It's incredibly fast, which
Applescript is not and why I'd rather not 'roll my own' - which could be
slower. Also I don't think read and write commands handle resource forks or
packages properly. And yes I know it's NOT a livecode routine, but as it's
a shell call - it should have some option for this. I'm calling it a bug
for now.
This stack takes a list of files by file suffix (using Ben's non-recursive
file and folder walker), does a second managed pass and creates categorical
folders named by the suffix chosen, then moves the chosen files to the
folders. Incredibly fast. Works great except for the progress dialog that
hides.
It's a great progress indicator and only shows on bigger file transfers.
Small ones don't show. As it should be.
I created this to try and clean up folders of misc crap on my
desktop<http://fulton.barncard.com/stax/filesorter.png>and doing this
by hand was tedious and inaccurate.
the UI is funky but hey, it's made for me....
thanks
is this thing useful to anyone else, BTW?
sqb
>
> Perhaps you could use some GUI scripting to bring that particular window of
> the Finder to front, but I expect it to be a big hassle. If you would
> consider using LiveCode's read and write commands, you could create your own
> progress indicator. Another option is to write a better AppleScript
> programme that doesn't display the progress indicator. Another option is to
> use the cp or mv command in the shell and use a gif image of a circular
> progress indicator. Although I don't like circular progress indicators, this
> solution works very nicely.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> See what you get with only a small contribution. All our LiveCode downloads
> are listed at http://qery.us/zr
>
> On 5 okt 2011, at 21:56, stephen barncard wrote:
>
> > Hello gang,
> >
> > using revCopyFile and it works great on Mac (internally a shell call)-
> and
> > I noticed there is a very nice progress indicator provided but it appears
> > behind the window/stack that launched it and is basically useless as it's
> > always obfuscated.
> >
> > Is there a way to make this indicator show in front or is this a bug? As
> > revCopyFile is blocking, it's not possible to do anything to bring it
> > forward after starting (unless 'send in time??)
> >
> > sqb
> >
> > --
> >
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
Stephen Barncard
San Francisco Ca. USA
more about sqb <http://www.google.com/profiles/sbarncar>
More information about the use-livecode
mailing list