Probably a silly question about 'find'

2007-01-18 Thread Peter Alcibiades
Feels like a very silly question, but it is stumping me.

How do I use 'find' to find '4' when it occurs by itself but not 4 when it 
occurs in '4.1', when searching the contents of a field?

I have a field with tab separated values in the form

1   1234
2   2.56
3   4.1
4   9.274

and I want to find only that line in which there is a match of the inputted 
string with the first item.  The first item will always be a unique value.   
So I want in some way to do a find on 4 that will pick up only line 4, and 
not the occurrence of 4 in line 3.

Find word doesn't seem to work, because presumably Rev sees the '.' as a word 
limiter.  Whereas in fact, its a decimal  Find string in item 1 doesn't 
work either.   In fact, none of the parameters on find seem to work.

The only thing that has occurred to me is a real kludge - just stick some 
character like # in front of or after the numbers in the first position, and 
then search for #4, and hope that it never occurs to anyone to put this 
character into the second field!  But there must surely be a very simple and 
much better way?

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


Re: SFTP

2007-01-18 Thread [EMAIL PROTECTED]
Hello,

I once had to make a solution in ssh putting generated data from one server to 
another using ssh (about 2002).
We used a win server and had to connect to a linux server.
This solution works with any win client and a server with openssh or another 
ssh solution able to use ppk files and was last tested about 2 years ago. 
Perhaps the security standards concerning ssh have changed ... 

We used the putty programs
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
PSFTP (an SFTP client
you can use by the commandline (shell) with batchfiles

steps:
0. create a security key using PuTTYgen (an RSA and DSA key generation utility) 
and put it on the sftp-server for authentication. Make one connection with 
psftp to this server by hand and approve the first time the feeddback question 
concerning the connection Do you know the server xyz.target.com and approve 
 Than this ssh-connection can be further used in batchprocesses also.
1. write a batchfile out of runrev 
2. write a commandfile out of runrev with the commands in f.e. 
c:\batchparameter.txt
(f.e. 

cd client
cd year2007
put fileA.txt
get filefromServerA
put xyzA.pdf like you would do with any oldfashioned commandline ftp-client).

3. run this batchfile using the shell command (blocking) or the launch command 
or shell(start   batchfile) (nonblocking).

shell(psftp -batch -bc -b c:\batchparameter.txt -P 1234 -i 
c:\admin\ssh\dsa.ppk [EMAIL PROTECTED])

Somewhat tricky but when properly set up working very stable. And you can use 
the commandline (shell) from any program which needs to connect to the server 
by ssh using port 1234.

Regards, Franz
Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537


 Original Message 
Subject: SFTP (18-Jan-2007 5:05)
From:Bridger Maxwell [EMAIL PROTECTED]
To:  use-revolution@lists.runrev.com

 Hey,
   I am trying to get a server set up on a School District's network, but
 they won't let me open an FTP port to the internet unless it is an SFTP
 connection.  As far as I can tell, Revolution is not able to open Secure 
 FTP
 connections out of the box, but are there any workarounds that anyone knows
 about?  Any tips would be greatly appreciated.
 
   TTFN
 Bridger Maxwell
 CMSEC
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 To: use-revolution@lists.runrev.com


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


Re: Probably a silly question about 'find'

2007-01-18 Thread Mark Smith

Peter, in the specific case here, you could do this
find 4  tab

Best,

Mark

On 18 Jan 2007, at 09:32, Peter Alcibiades wrote:


Feels like a very silly question, but it is stumping me.

How do I use 'find' to find '4' when it occurs by itself but not 4  
when it

occurs in '4.1', when searching the contents of a field?

I have a field with tab separated values in the form

1   1234
2   2.56
3   4.1
4   9.274

and I want to find only that line in which there is a match of the  
inputted
string with the first item.  The first item will always be a unique  
value.
So I want in some way to do a find on 4 that will pick up only line  
4, and

not the occurrence of 4 in line 3.

Find word doesn't seem to work, because presumably Rev sees the '.'  
as a word
limiter.  Whereas in fact, its a decimal  Find string in item 1  
doesn't

work either.   In fact, none of the parameters on find seem to work.

The only thing that has occurred to me is a real kludge - just  
stick some
character like # in front of or after the numbers in the first  
position, and
then search for #4, and hope that it never occurs to anyone to put  
this
character into the second field!  But there must surely be a very  
simple and

much better way?

Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


revCopyFile and revCopyFolder to the desktop

2007-01-18 Thread Francis Nugent Dixon

Hi from Paris,

I am confused about the commands revCopyFile and revCopyFolder, on 
both my Mac and on my PC, especially in the context of desktop. I 
want to create files, folders and shortcuts on the Mac and PC desktops.


I am using Revolution DreamCard 2.6.1, build 152 on my Mac, and 
StackRunner 1.3.0.0 on my PC. I develop my stack on the Mac, and run it 
on both Mac and PC.


Here we go :

For revCopyFile and revCopyFolder, documentation says  If you 
specify a name but not a location, Revolution assumes the destination 
file/folder is the defaultFolder. Does this mean that if the  
folderToCopyTo  or destinationFolder DOES NOT begin with a /, then 
defaultFolder is used as the destination folder ?


Supposing that this is true : revCopyFile 
/MyFolder/MyFile.rev,MyFile.rev could be used to create a copy on 
my desktop ...


So I coded :

 put specialFolderPath(DeskTop) into GVDeskTop
 set the defaultFolder to GVDeskTop
 revCopyFile /MyFolder/MyFile.rev,MyFile.rev

On my Mac, GVDeskTop contains /Users/francisdixon/Desktop
On my PC, GVDeskTop contains C:/Documents and 
Settings/francisdixon/Desktop


Because of my understanding of the documentation, I thought I would 
create a copy of my file on the deskTop. It didn't work ! The command 
appeared to execute, but no trace of my new file could be found, either 
on the desktop (or anywhere else on the disk). The Result showed no 
error.


So I tried trickery and subterfuge (this is a built-in function for an 
Irishman !), by naming the destination file specifically as the desktop 
:


 put specialFolderPath(DeskTop) into GVDeskTop
 put GVDeskTop  /  MyFile.rev into GVMyDestination
 revCopyFile /MyFolder/MyFile.rev,GVMyDestination -- On the Mac
 OR
 revCopyFile C:/MyFolder/MyFile.rev,GVMyDestination -- On the PC

This works on my Mac (the file appears immediately on the deskTop).
On the PC, the file DOES NOT appear on the deskTop, but DOES APPEAR in 
the desktop folder itself :


Is this because the PC desktop needs to be refreshed just like any 
other folder ? If so, how would I do this ?

When I rebooted my PC, my file then showed on the deskTop.

When I test the Result after a file copy, to see if the copy is 
successful, the Result should be empty (suggested by the 
documentation). I found that the Result contains the name of the file 
in quotes, after a successful copy. So how do I check for a failure in 
the copy ?


I assumed that a revCopyFile could be used to create a copy of a file 
with a new name (Why Not - It does not say that fileToCopy and 
folderToCopyTo must NOT use different filenames !). So I tried :


put specialFolderPath(DeskTop) into GVDeskTop
put GVDeskTop  /  MyFile.rev into GVMySendingFile
put GVDeskTop  /  NewName.rev into GVMyDestination
revCopyFile GVMySendingFile,GVMyDestination

On my Mac, this renames my original file on the desktop to 
NewName.rev, and creates a file MyFile.rev copy on the desktop. As 
Alice once said -  Curiouser and curiouser ! (I haven't yet bothered 
to test this on my PC).


I am also having problems creating a shortcut on the PC desktop, but I 
will experiment further before asking for help !


Has anybody got any experience with these commands, especially 
concerning the destination  desktop ?


-Francis

Nothing should ever be done for the first time !

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


Re: revCopyFile and revCopyFolder to the desktop

2007-01-18 Thread Jim Ault
A couple specific comments:
 did not work
   put specialFolderPath(DeskTop) into GVDeskTop
   set the defaultFolder to GVDeskTop
   revCopyFile /MyFolder/MyFile.rev,MyFile.rev
In the last line of this ..it does not look like you are naming a folder as
a destination.

 I assumed that a revCopyFile could be used to create a copy of a file
 with a new name (Why Not - It does not say that fileToCopy and
 folderToCopyTo must NOT use different filenames !).
The folderToCopyTo probably means 'folder' to copy to, not filename.

from the docs
The folderToCopyTo specifies the name and location of the FOLDER where the
copied file should be placed. If you specify a name but not a location,
Revolution assumes the destination folder is in the defaultFolder.

location = full path name /Users/jault/Documents/agreement.jpg
name = start with the default folder, thus nested.
/MyFolder/subFolder/ = defautFolder/ MyFolder/subFolder/

-  further reading, esp error checking code
One tip for this:  most likely one of your folder variables did not look
like a folder or it has not been created yet, therefore setting the
defaultFolder was not possible, and it was not changed.

First
always put the path name into its own variable
and then put the filename into another.
Sometimes you will want the path or file or both.
Error checking is the main reason.

Then get in the habit of
 put specialFolderPath(DeskTop) into destPathh
if the last char of destPathh is not / then put / after destPathh

put destPathh  MyFolder/into sourcePathh
if there is not a folder sourcePathh then
answer Oops!  There is no folder ..  sourcePathh
breakpoint
exit to top
end if

if there is not a folder destPathh then
answer Oops!  There is no folder ..  destPathh
breakpoint
create folder destPathh
end if


put MyFile.rev into FN

put the defaultFolder into temp
breakpoint --be sure that it is where you think it should be

if there is not a file sourcePathhFN then
answer Oops!  There is no file ..  sourcePathhFN
end if

revCopyFile (sourcePathhFN), destPathh

if there is not a file destPathhFN then
answer Oops!  Did not copy.create file ..  destPathhFN
end if

another quick test method is to put this in the MULTI line message box

answer folder pick a fat one
put it  /

-- a full folder path will be returned

answer file pick a crummy one
put it

-- a full file path will be returned


The way I do it does not use RevCopyFile or Folder
Same result, different form.

--for text files
put url (file:pathhFN) into url (file:pathh2FN2)
put fld 1 into url (file:pathhFN)
put fld 2 after url (file:pathhFN)
put fld 3 before url (file:pathhFN)

--for images
put url (binfile:pathhFN) into url (binfile:pathh2FN2)
---
Hope this helps with your designs

Jim Ault

On 1/18/07 3:38 AM, Francis Nugent Dixon [EMAIL PROTECTED] wrote:

 Hi from Paris,
 
 I am confused about the commands revCopyFile and revCopyFolder, on
 both my Mac and on my PC, especially in the context of desktop. I
 want to create files, folders and shortcuts on the Mac and PC desktops.
 
 I am using Revolution DreamCard 2.6.1, build 152 on my Mac, and
 StackRunner 1.3.0.0 on my PC. I develop my stack on the Mac, and run it
 on both Mac and PC.
 
 Here we go :
 
 For revCopyFile and revCopyFolder, documentation says  If you
 specify a name but not a location, Revolution assumes the destination
 file/folder is the defaultFolder. Does this mean that if the 
 folderToCopyTo  or destinationFolder DOES NOT begin with a /, then
 defaultFolder is used as the destination folder ?
 
 Supposing that this is true : revCopyFile
 /MyFolder/MyFile.rev,MyFile.rev could be used to create a copy on
 my desktop ...
 
 So I coded :
 
   put specialFolderPath(DeskTop) into GVDeskTop
   set the defaultFolder to GVDeskTop
   revCopyFile /MyFolder/MyFile.rev,MyFile.rev
 
 On my Mac, GVDeskTop contains /Users/francisdixon/Desktop
 On my PC, GVDeskTop contains C:/Documents and
 Settings/francisdixon/Desktop
 
 Because of my understanding of the documentation, I thought I would
 create a copy of my file on the deskTop. It didn't work ! The command
 appeared to execute, but no trace of my new file could be found, either
 on the desktop (or anywhere else on the disk). The Result showed no
 error.
 
 So I tried trickery and subterfuge (this is a built-in function for an
 Irishman !), by naming the destination file specifically as the desktop
 :
 
   put specialFolderPath(DeskTop) into GVDeskTop
   put GVDeskTop  /  MyFile.rev into GVMyDestination
   revCopyFile /MyFolder/MyFile.rev,GVMyDestination -- On the Mac
   OR
   revCopyFile C:/MyFolder/MyFile.rev,GVMyDestination -- On the PC
 
 This works on my Mac (the file appears immediately on the deskTop).
 On the PC, the file DOES NOT appear on the deskTop, but DOES APPEAR in
 the desktop folder itself :
 
 Is this 

Re: Probably a silly question about 'find'

2007-01-18 Thread Devin Asay

On Jan 18, 2007, at 2:32 AM, Peter Alcibiades wrote:


Feels like a very silly question, but it is stumping me.

How do I use 'find' to find '4' when it occurs by itself but not 4  
when it

occurs in '4.1', when searching the contents of a field?

I have a field with tab separated values in the form

1   1234
2   2.56
3   4.1
4   9.274

and I want to find only that line in which there is a match of the  
inputted
string with the first item.  The first item will always be a unique  
value.
So I want in some way to do a find on 4 that will pick up only line  
4, and

not the occurrence of 4 in line 3.

Find word doesn't seem to work, because presumably Rev sees the '.'  
as a word
limiter.  Whereas in fact, its a decimal  Find string in item 1  
doesn't

work either.   In fact, none of the parameters on find seem to work.


Peter,

Find is probably not the best choice in this case. I would use the  
lineOffset function and look for 4  tab, like this:


put lineOffset(4  tab,fld thevalues) into tLineFound

HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


how to adress a users folder on Mac OSX

2007-01-18 Thread R. Hillen

Hello list,

what should I write to get a list of files in the library of the  
actual user?


somewhat like:

put files(/Users/???/Library) into FileList ?

Thank you for your help

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


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Phil Davis

Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to define it.

Phil Davis



R. Hillen wrote:

Hello list,

what should I write to get a list of files in the library of the actual 
user?


somewhat like:

put files(/Users/???/Library) into FileList ?

Thank you for your help

Richard.

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


Re: Common writable folders

2007-01-18 Thread Chris Sheffield
This is so cool! Has this been shared on the list before? If so, I  
have missed something major.


Does anyone know if this will work with multi-line shell scripts?

Chris


On Jan 17, 2007, at 11:26 PM, sims wrote:


At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script command with administrator privileges

To pass other items use:
do shell script command user name me password mypassword with  
administrator privileges



sims
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Devin Asay


On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:


Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to  
define it.


Here's another approach:

put put specialFolderPath(cusr)   /Library into tTargetFolder
set the defaultFolder to tTargetFolder
put the files into fld LibContents

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Probably a silly question about 'find'

2007-01-18 Thread Ken Ray


On Jan 18, 2007, at 9:48 AM, Devin Asay wrote:


On Jan 18, 2007, at 2:32 AM, Peter Alcibiades wrote:


Feels like a very silly question, but it is stumping me.

How do I use 'find' to find '4' when it occurs by itself but not 4  
when it

occurs in '4.1', when searching the contents of a field?

I have a field with tab separated values in the form

1   1234
2   2.56
3   4.1
4   9.274

and I want to find only that line in which there is a match of the  
inputted
string with the first item.  The first item will always be a  
unique value.
So I want in some way to do a find on 4 that will pick up only  
line 4, and

not the occurrence of 4 in line 3.

Find word doesn't seem to work, because presumably Rev sees the  
'.' as a word
limiter.  Whereas in fact, its a decimal  Find string in item  
1 doesn't

work either.   In fact, none of the parameters on find seem to work.


Peter,

Find is probably not the best choice in this case. I would use the  
lineOffset function and look for 4  tab, like this:


put lineOffset(4  tab,fld thevalues) into tLineFound


And I would add to that to precede the number to search for with a CR  
just to be on the safe side:


  put lineOffset(CR  4  tab,CR  fld thevalues) into tLineFound

This way, suppose you had a series of values where some lines may be  
skipped and you want to know if a line *was* skipped; something like:


1   1234
2   2.56
3   4.1
9   8.35
14  9.274
18  20.121

WIthout the CR in there, you would match the line starting with 14  
if you just looked for (4  tab), but you wouldn't match it if you  
look for (CR  4  tab). Note that it is very important that you  
include the preceding CR with the list to find as well, otherwise  
your lineoffset will be off. So it can't be:


  lineOffset(CR  4  tab,fld thevalues)

but must be

  lineOffset(CR  4  tab,CR  fld thevalues)

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



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


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Chris Sheffield
You can also simply use the tilde character '~' to specify the user's  
home folder.


So ~/Library would give you the user's Library folder.

Chris

On Jan 18, 2007, at 9:23 AM, Devin Asay wrote:



On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:


Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to  
define it.


Here's another approach:

put put specialFolderPath(cusr)   /Library into tTargetFolder
set the defaultFolder to tTargetFolder
put the files into fld LibContents

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

http://lists.runrev.com/mailman/listinfo/use-revolution


--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Ken Ray


On Jan 18, 2007, at 10:23 AM, Devin Asay wrote:



On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:


Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to  
define it.


Here's another approach:

put put specialFolderPath(cusr)   /Library into tTargetFolder
set the defaultFolder to tTargetFolder
put the files into fld LibContents


Also, for a quick lookup of specialFolderPath codes, see my tip on  
the subject:


  http://www.sonsothunder.com/devres/revolution/tips/file010.htm



Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



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


Re: Probably a silly question about 'find'

2007-01-18 Thread Devin Asay


On Jan 18, 2007, at 9:25 AM, Ken Ray wrote:



On Jan 18, 2007, at 9:48 AM, Devin Asay wrote:


snip



Find is probably not the best choice in this case. I would use the  
lineOffset function and look for 4  tab, like this:


put lineOffset(4  tab,fld thevalues) into tLineFound


And I would add to that to precede the number to search for with a  
CR just to be on the safe side:


  put lineOffset(CR  4  tab,CR  fld thevalues) into tLineFound

This way, suppose you had a series of values where some lines may  
be skipped and you want to know if a line *was* skipped; something  
like:


1   1234
2   2.56
3   4.1
9   8.35
14  9.274
18  20.121

WIthout the CR in there, you would match the line starting with  
14 if you just looked for (4  tab), but you wouldn't match it if  
you look for (CR  4  tab). Note that it is very important that  
you include the preceding CR with the list to find as well,  
otherwise your lineoffset will be off. So it can't be:


  lineOffset(CR  4  tab,fld thevalues)

but must be

  lineOffset(CR  4  tab,CR  fld thevalues)


Including the CR in the second argument also ensures that an entry on  
the first line of the field will not be overlooked in the search.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Common writable folders

2007-01-18 Thread Chris Sheffield

I've got another question about using this. Hope you don't mind.

Is there anyway to suppress the dialog if it has already displayed  
once in a session? I realize there's a timeout thing with sudo that  
eventually expires (my Unix knowledge is limited), and at that point  
a new dialog would have to appear anyway.


But here's my situation. I have a Rev script that performs a few  
different tasks in one swipe, some of which require admin privileges  
on the system. They involve changing a certain file's permissions,  
editing the file, then changing the permissions back. But it seems  
that every time the command changes, even if it's simply chmod 750  
to chmod 755, a dialog comes up again. So I'm ending up with 2 or 3  
dialogs right in a row. Any way to keep this from happening? Is there  
some way to extract the user name and password and then pass those  
like in your second example? That's probably not a very kosher thing  
to do, though.


Thanks,
Chris


On Jan 17, 2007, at 11:26 PM, sims wrote:


At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script command with administrator privileges

To pass other items use:
do shell script command user name me password mypassword with  
administrator privileges



sims
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Devin Asay


On Jan 18, 2007, at 9:29 AM, Ken Ray wrote:



On Jan 18, 2007, at 10:23 AM, Devin Asay wrote:



On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:


Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to  
define it.


Here's another approach:

put put specialFolderPath(cusr)   /Library into tTargetFolder
set the defaultFolder to tTargetFolder
put the files into fld LibContents


Also, for a quick lookup of specialFolderPath codes, see my tip on  
the subject:


  http://www.sonsothunder.com/devres/revolution/tips/file010.htm


A perusal of Apple's complete list of folder constants at  http:// 
developer.apple.com/documentation/Carbon/Reference/Folder_Manager/ 
Reference/reference.html#//apple_ref/c/tdef/FolderType (the URL  
cited in the specialFolderPath Rev dictionary entry) shows that Apple  
may have added a few since you put your reference together, Ken. They  
include useful ones like:


cusr - the current user's home folder
sdat - the shared user data folder (usually /Users/Shared in OSX)
pubb - the current user's public folder
ssnd - the system sounds folder
info - the Documentation folder
wcmp - the QuickTime components folder

There are probably more nuggets there to be discovered. 8^)

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Quartam Reports Sample Problem

2007-01-18 Thread Charles Szasz
I hope someone who is using Quartam Reports can answer my question. I  
trying to learn how to use Quartam Reports. In the first sample,  
after I created a Qrt page with the fields filled out as per  
instructions in the PDF manual. I made a one card stack with a print  
button and I added the following script as in the book:


on mouseUp
  local tLayoutFile,tStackName,tShowPreview
  loadLibraries
  put mystackreport.qrl into tLayoutFile
  put qrsContacts into tStackName
  put true into tShowPreview
  -- print the report
  qrtReports_PrintReportForStack tLayoutFile, tStackName, tShowPreview
end mouseUp

After I click Apply in the script editor. Then go to run mode and  
press the mouse button I get the following error message:
An error occurred while printin the report: qrtReportsErr: no such  
stack.


What did I do wrong here and how do I correct the problem?



Charles Szasz
[EMAIL PROTECTED]



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


Re: Common writable folders

2007-01-18 Thread Phil Davis

Hi Chris,

Is it possible to:
- copy the files to a place where the user does have permission
- do all your changes
- copy them back to the original place?

Then it seems like there might only be one dialog.

Just a thought -
Phil Davis


Chris Sheffield wrote:

I've got another question about using this. Hope you don't mind.

Is there anyway to suppress the dialog if it has already displayed once 
in a session? I realize there's a timeout thing with sudo that 
eventually expires (my Unix knowledge is limited), and at that point a 
new dialog would have to appear anyway.


But here's my situation. I have a Rev script that performs a few 
different tasks in one swipe, some of which require admin privileges on 
the system. They involve changing a certain file's permissions, editing 
the file, then changing the permissions back. But it seems that every 
time the command changes, even if it's simply chmod 750 to chmod 
755, a dialog comes up again. So I'm ending up with 2 or 3 dialogs 
right in a row. Any way to keep this from happening? Is there some way 
to extract the user name and password and then pass those like in your 
second example? That's probably not a very kosher thing to do, though.


Thanks,
Chris


On Jan 17, 2007, at 11:26 PM, sims wrote:


At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to request 
authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script command with administrator privileges

To pass other items use:
do shell script command user name me password mypassword with 
administrator privileges



sims
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

sims wrote:

At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to request 
authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script command with administrator privileges

To pass other items use:
do shell script command user name me password mypassword with 
administrator privileges


I'm having trouble with this. I do get the official Apple password 
dialog, but can't execute a command.


I want to change permissions on a folder. This script fails with 
execution error:


put chmod 777 /Library/Application Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with administrator 
privileges into tCmd

  do tCmd as applescript
  put the result

So I figured I needed to escape the space. When I do that, this script 
fails with compiler error:


put chmod 777 /Library/Application\ Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with administrator 
privileges into tCmd

  do tCmd as applescript
  put the result

If I substitute colons instead of slashes I go back to execution 
error. Adding sudo to the front of the command doesn't help (but I'm 
running as admin right now, so maybe that's why.)


What's the right command to allow any user, admin or not, to type in an 
admin password and set the permissions on this folder? Am I using this 
feature correctly?


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread Chris Sheffield

Hi Jacque,

Couple questions. Have you tried running the command from Terminal?  
If so, does it work okay there? Also, have you tried running it from  
the AppleScript script editor? If it fails there, you might get a  
more descriptive error message.


One thing that I'm doing different is instead of putting the entire  
command into a variable, I'm only putting in the actual shell script  
part. So my code would read something like:


do do shell script  quote  tCmd  quote  with administrator  
privileges


I don't know if that makes a difference or not. It shouldn't, but it  
is working for me just fine. Granted, I am only changing permissions  
on a single file, not on a folder.


Just a couple ideas. Sorry I can't really provide more concrete help.

Chris


On Jan 18, 2007, at 11:13 AM, J. Landman Gay wrote:


sims wrote:

At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?

For the dialog use AppleScript:
do shell script command with administrator privileges
To pass other items use:
do shell script command user name me password mypassword  
with administrator privileges


I'm having trouble with this. I do get the official Apple password  
dialog, but can't execute a command.


I want to change permissions on a folder. This script fails with  
execution error:


put chmod 777 /Library/Application Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with  
administrator privileges into tCmd

  do tCmd as applescript
  put the result

So I figured I needed to escape the space. When I do that, this  
script fails with compiler error:


put chmod 777 /Library/Application\ Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with  
administrator privileges into tCmd

  do tCmd as applescript
  put the result

If I substitute colons instead of slashes I go back to execution  
error. Adding sudo to the front of the command doesn't help (but  
I'm running as admin right now, so maybe that's why.)


What's the right command to allow any user, admin or not, to type  
in an admin password and set the permissions on this folder? Am I  
using this feature correctly?


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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


Re: Very often crash

2007-01-18 Thread J. Landman Gay

Hershel Fisch wrote:

Hello I'd wish how to go about this. When ever I need to edit any thing on
the layout that has to do with a group my blood pressure is up the creek.
95% of the time it crashes Rev. I don't know if its a bug or I'm the
bug?(lol)

I don't remember form previous threads if the report to apple also reports
to Rev because that¹s what I did till know. Now I'll post it here. Looks
like it didn't get to Rev I don't how to bugZilla it.



Reports to Apple don't get sent to Runtime, so RR never knows about 
them. To report a problem, you should enter the info into the bug 
database here:


http://quality.runrev.com/

Or if you would rather, you can just send an email report to support at 
[EMAIL PROTECTED] and someone will enter the bug into the database 
for you.


Crashes are given first priority, so reporting them is important.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Wake Up, Work, and then Snooze

2007-01-18 Thread David Brooks
I'd like to have a stack wake up (say every hour), do some work, and  
then go back to sleep. Has anyone got something like that working?


I'm nervous about setting the idlerate to a rather large number, and  
I'm seeking suggestions about prior experiences before I try a few  
experiments.


Thanks.

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


Rev and RAM

2007-01-18 Thread Reuben Rivera

Hello,
I know Rev uses memory in your system when you are running it.  When
you load data from a text file into a  rev created app and later  
delete it,

is the memory used during the loading process still unavailable or
 can it now be allocated to something else.  I'm creating a app which
manipulates a lot of text files and I want to make sure I don't slow  
down

the app or crash it by placing to much demand on the ram available on
the particular computer in use.
Thanks,
Reuben Rivera
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

Chris Sheffield wrote:

Hi Jacque,

Couple questions. Have you tried running the command from Terminal?


Yes, it works fine there.

If 
so, does it work okay there? Also, have you tried running it from the 
AppleScript script editor? If it fails there, you might get a more 
descriptive error message.


I'll try that.



One thing that I'm doing different is instead of putting the entire 
command into a variable, I'm only putting in the actual shell script 
part. So my code would read something like:


do do shell script  quote  tCmd  quote  with administrator 
privileges


Where are you indicating it should be executed as applescript?

Could I see a sample of your entire command sequence? The above isn't 
accepted by Rev as-is.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Wake Up, Work, and then Snooze

2007-01-18 Thread Klaus Major

Hi David,

I'd like to have a stack wake up (say every hour), do some work,  
and then go back to sleep. Has anyone got something like that working?


This sounds like a case for send xyz to ... in...

...
send do_important_hourly_stuff to stack xyz in 60*60 secs
...


Then in the handler:

on do_important_hourly_stuff
   ## do your important hourly stuff here
   ## ..
  send do_important_hourly_stuff to stack xyz in 60*60 secs
end do_important_hourly_stuff

I'm nervous about setting the idlerate to a rather large number,  
and I'm seeking suggestions about prior experiences before I try a  
few experiments.


Using idle and idlerate for this task is a very, very, very,  
very, very bad idea ;-)



Thanks.

Dave Brooks


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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


Re: selectedchunk anyone?

2007-01-18 Thread Chipp Walters

OK, no takers then..
Here's how I've decided to solve it:

(list field script)

local lSelChk

on mouseEnter
 put the selectedChunk into lSelChk
end mouseEnter


On 1/18/07, Chipp Walters [EMAIL PROTECTED] wrote:


I'm trying to figure out where the I-beam cursor sits in a field. Not
hard, check the selectedChunk. But what if AFTER I've clicked a list field?
Even with TraversalOn set to false for a list field, it still insists on
resetting the selectedChunk to it's own 'hilitedline' even though the I-beam
cursor is blinking in the other field.

Any ideas on how to tell where the I-beam cursor is in the first field? I
suppose I can 'send in time' a message to the field, but thought there must
be an easier way...

-Chipp


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


Re: Common writable folders

2007-01-18 Thread Chris Sheffield


On Jan 18, 2007, at 11:35 AM, J. Landman Gay wrote:


Where are you indicating it should be executed as applescript?

Could I see a sample of your entire command sequence? The above  
isn't accepted by Rev as-is.



Oops, sorry about that. I do have it set to run as applescript. I  
just forgot to add that in my email. So my whole line of code,  
without putting the command in a variable, would be something like:


do do shell script  quote  chmod 755 /myfolder/myfile  quote  
 with administrator privileges as AppleScript



As I said before, I'm doing this on a single file, not on a folder.  
And my path does not contain any spaces.



--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


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


Re: selectedchunk anyone?

2007-01-18 Thread J. Landman Gay
I was going to respond but I'm not sure I understand what you are trying 
to do. But maybe this will help: you can get the selectedchunk of a 
particular field like so:


put the selectedchunk of fld 1

Is that what you mean?

Chipp Walters wrote:

OK, no takers then..
Here's how I've decided to solve it:

(list field script)

local lSelChk

on mouseEnter
 put the selectedChunk into lSelChk
end mouseEnter


On 1/18/07, Chipp Walters [EMAIL PROTECTED] wrote:


I'm trying to figure out where the I-beam cursor sits in a field. Not
hard, check the selectedChunk. But what if AFTER I've clicked a list 
field?

Even with TraversalOn set to false for a list field, it still insists on
resetting the selectedChunk to it's own 'hilitedline' even though the 
I-beam

cursor is blinking in the other field.

Any ideas on how to tell where the I-beam cursor is in the first field? I
suppose I can 'send in time' a message to the field, but thought there 
must

be an easier way...

-Chipp


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

http://lists.runrev.com/mailman/listinfo/use-revolution




--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev and RAM

2007-01-18 Thread J. Landman Gay

Reuben Rivera wrote:

Hello,
I know Rev uses memory in your system when you are running it.  When
you load data from a text file into a  rev created app and later delete it,
is the memory used during the loading process still unavailable or
 can it now be allocated to something else. 


The only memory that is in use is the amount required to store the file 
contents. When you empty the variable, that memory is released. The 
actual I/O process of opening and reading the file is handled by the 
engine and you don't have to worry about that, it does a very good job 
of managing RAM allocation.


As long as you aren't retaining the file contents in a variable, you 
should be able to open/read/close an unlimited number of files without 
any problem.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: how to adress a users folder on Mac OSX

2007-01-18 Thread Ken Ray


On Jan 18, 2007, at 11:21 AM, Devin Asay wrote:



On Jan 18, 2007, at 9:29 AM, Ken Ray wrote:



On Jan 18, 2007, at 10:23 AM, Devin Asay wrote:



On Jan 18, 2007, at 9:00 AM, Phil Davis wrote:


Hi Richard,

Here's one way:


-- button script
on mouseUp
  put ($HOME  /Library) into tTargetFolder
  set the defaultFolder to tTargetFolder
  put the files into fld 1
end mouseUp


$HOME is an environment variable - always there, no need to  
define it.


Here's another approach:

put put specialFolderPath(cusr)   /Library into tTargetFolder
set the defaultFolder to tTargetFolder
put the files into fld LibContents


Also, for a quick lookup of specialFolderPath codes, see my tip on  
the subject:


  http://www.sonsothunder.com/devres/revolution/tips/file010.htm


A perusal of Apple's complete list of folder constants at  http:// 
developer.apple.com/documentation/Carbon/Reference/Folder_Manager/ 
Reference/reference.html#//apple_ref/c/tdef/FolderType (the URL  
cited in the specialFolderPath Rev dictionary entry) shows that  
Apple may have added a few since you put your reference together, Ken.


Sweet! Thanks, Devin... I'll update the tip page...


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



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


RE: Setting the default source path for Image controls

2007-01-18 Thread Bob Earp
Many thanks David, Jim and especially Tereza for your help.
 
I already use external folders for audio and video files, and set relative 
paths for them when opening the stack, saving them in globals.  They're easy as 
you're setting the target file when you either play them or use a player.  
The images were more difficult as I didn't want to set the fileName property of 
every image control in the stack when opening it !!
 
I ended up setting the defaultFolder to the graphics folder path on opening the 
stack (after doing the audio  video paths), and then I just set the fileName 
of each image control to the bare filename of the image (no path) when placing 
the image control on a cd, and all seems to work fine.
 
The only weird thing is that if you are editing, you'll see the whole file path 
in the Source field of the Image control properties window even though you've 
only originally set it to just the filename.  Maybe a logical way of doing 
things, but confusing none the less !!
 
Thanks again, Bob...
 
Bob Earp, in snowy White Rock, BC
_
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

Chris Sheffield wrote:


On Jan 18, 2007, at 11:35 AM, J. Landman Gay wrote:


Where are you indicating it should be executed as applescript?

Could I see a sample of your entire command sequence? The above isn't 
accepted by Rev as-is.



Oops, sorry about that. I do have it set to run as applescript. I just 
forgot to add that in my email. So my whole line of code, without 
putting the command in a variable, would be something like:


do do shell script  quote  chmod 755 /myfolder/myfile  quote  
with administrator privileges as AppleScript



As I said before, I'm doing this on a single file, not on a folder. And 
my path does not contain any spaces.


Thanks. It's the space in Application Support that is causing the 
trouble. I ran it in the Applescript editor and it really doesn't like 
my file path. If I use slashes, it complains and won't compile. If I use 
colons, it puts out two errors:


 No such file or directory :Library:Application:
 No such file or directory Support:myFolder:

Blech.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Setting the default source path for Image controls

2007-01-18 Thread Jim Ault
 The only weird thing is that if you are editing, you'll see the whole file
 path in the Source field of the Image control properties window even though
 you've only originally set it to just the filename.  Maybe a logical way of
 doing things, but confusing none the less !!

Basically, Rev assumes the defaultfolder is the location since you supplied
less than a full path, Rev does a check to see if there is a workable file
and uses it, therefore the full path.  What would happen if you changed the
defaultfolder in another script but still wanted Rev to know where your
original image file was?

Tip:  you can drag the lower right corner of the inspector palette to the
right and make it as wide as the monitor.  This lets you see the whole path.

Jim Ault
Las Vegas


On 1/18/07 11:37 AM, Bob Earp [EMAIL PROTECTED] wrote:

 Many thanks David, Jim and especially Tereza for your help.
  
 I already use external folders for audio and video files, and set relative
 paths for them when opening the stack, saving them in globals.  They're easy
 as you're setting the target file when you either play them or use a player.
 The images were more difficult as I didn't want to set the fileName property
 of every image control in the stack when opening it !!
  
 I ended up setting the defaultFolder to the graphics folder path on opening
 the stack (after doing the audio  video paths), and then I just set the
 fileName of each image control to the bare filename of the image (no path)
 when placing the image control on a cd, and all seems to work fine.
  
 The only weird thing is that if you are editing, you'll see the whole file
 path in the Source field of the Image control properties window even though
 you've only originally set it to just the filename.  Maybe a logical way of
 doing things, but confusing none the less !!
  
 Thanks again, Bob...
  
 Bob Earp, in snowy White Rock, BC


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


Re: Common writable folders

2007-01-18 Thread Jim Ault
On 1/18/07 11:41 AM, J. Landman Gay [EMAIL PROTECTED] wrote:
 Thanks. It's the space in Application Support that is causing the
 trouble. I ran it in the Applescript editor and it really doesn't like
 my file path. If I use slashes, it complains and won't compile. If I use
 colons, it puts out two errors:
 
   No such file or directory :Library:Application:
   No such file or directory Support:myFolder:
 
 Blech.

You might try the form:

alias path:folder:file  -- in quotes for Applescript syntax
--- test 1 --
In the script editor, do a new script one-liner

set daFile to choose file Please make your click count
You will see the result is the form the AScript likes
--- test 2 --
To do this from a Rev script

put quote into q
answer file Make it count
if it is empty then exit to top
put revMacFromUnixPath(it) into FName

get tell application qFinderq cr
get it return the modification date of alias 
get it  qFNameq cr
get it  end tell

do (it) as AppleScript



On 1/18/07 11:41 AM, J. Landman Gay [EMAIL PROTECTED] wrote:

 Chris Sheffield wrote:
 
 On Jan 18, 2007, at 11:35 AM, J. Landman Gay wrote:
 
 Where are you indicating it should be executed as applescript?
 
 Could I see a sample of your entire command sequence? The above isn't
 accepted by Rev as-is.
 
 
 Oops, sorry about that. I do have it set to run as applescript. I just
 forgot to add that in my email. So my whole line of code, without
 putting the command in a variable, would be something like:
 
 do do shell script  quote  chmod 755 /myfolder/myfile  quote 
 with administrator privileges as AppleScript
 
 
 As I said before, I'm doing this on a single file, not on a folder. And
 my path does not contain any spaces.
 
 Thanks. It's the space in Application Support that is causing the
 trouble. I ran it in the Applescript editor and it really doesn't like
 my file path. If I use slashes, it complains and won't compile. If I use
 colons, it puts out two errors:
 
   No such file or directory :Library:Application:
   No such file or directory Support:myFolder:
 
 Blech.


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


Re: Common writable folders

2007-01-18 Thread Brian Yennie

Chris,

Could you create a single shell script that contains multiple  
commands and execute that?

i.e. create a file commands.sh that looks something like:

#!/bin/sh

chmod 755 $1
dosomethinghere
chmod 750 $1

And then execute the whole file once with:

do do shell script  quote  commands.sh  quote  with  
administrator privileges


Or do you have to run other things in between shell scripts?





I've got another question about using this. Hope you don't mind.

Is there anyway to suppress the dialog if it has already displayed  
once in a session? I realize there's a timeout thing with sudo that  
eventually expires (my Unix knowledge is limited), and at that  
point a new dialog would have to appear anyway.


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


Locking flds of group to scroll

2007-01-18 Thread Hershel Fisch
Hi, Is it possible to lock the scroll of flds of a group to scroll e.g. The
scrolls are not checked but if the lines are more then the fld shows then
the fld scrolls even without the bar, therefore id like to know if and how
there is a possibility to lock that and only with the group scroll it should
show the rest of the fld lines
Thanks,Hershel Fisch

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


Re: Common writable folders

2007-01-18 Thread sims

At 12:10 PM -0800 1/18/07, Jim Ault wrote:

On 1/18/07 11:41 AM, J. Landman Gay [EMAIL PROTECTED] wrote:

 Thanks. It's the space in Application Support that is causing the

  trouble.


Sorry to be late to this...but experimenting cooking experiments  
new wine usually comes first.


You'll find more info on this at: 
http://developer.apple.com/technotes/tn2002/tn2065.html


HTH
sims
---

Q: How do I get administrator privileges for a command?
A: Use the administrator privileges, user name and password 
parameters like this:
do shell script command user name me password mypassword with 
administrator privileges
user name and password are optional; if you omit the user name, do 
shell script assumes it to be the current user; if you omit the 
password, it will ask for a password when it runs. Once a script is 
correctly authenticated, it will not ask for authentication again for 
five minutes. As of Mac OS X 10.4, this grace period does not extend 
to any other scripts or to the rest of the system; manually calling 
sudo -k is unnecessary.
For security reasons, you may not tell another application to do 
shell script with administrator privileges. Put the command outside 
of any tell block, or put it inside a tell me block.


Bear in mind that administrator privileges allow you to change any 
file anywhere in the system. You can render your system unbootable or 
even erase the entire disk with a few well-placed commands, so 
exercise caution. Better yet, don't use administrator privileges 
unless you absolutely have to. Unless you are doing system-level 
development, you should never need to change anything in /System - 
changing /Library should suffice.
Note: Using sudo(8) with with administrator privileges is generally 
unnecessary and creates security holes; simply remove the sudo.


WARNING: In Mac OS X 10.4.0 and 10.4.1, with administrator privileges 
executes the command with only the effective user id set to root. 
This causes trouble for some commands that rely on the real user id - 
for example, Perl will turn on its taint mode security checks, and 
sudo(8) will hang. To work around the problem (assuming you cannot 
simply remove a use of sudo; see above), preface your command with a 
small Perl script to set the real user id, like this:
do shell script /usr/bin/perl -Ue '$ = $; system(@ARGV)' 
my_command with administrator privileges


Mac OS X 10.4.2 sets both the real and effective user ids; the 
workaround described here will be unnecessary, but harmless.
WARNING: Prior to Mac OS X 10.4, with administrator privileges did 
not work correctly with multiple commands. You had to turn your 
multiple commands into a single invocation of sh, like this:

set normal_command to command1; command2
do shell script sh -c   quoted form of normal_command with 
administrator privileges


As of Mac OS X 10.4, you can use with administrator privileges with 
multiple commands as described in how can I use more than one 
command above; no workaround is necessary.

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


Re: Probably a silly question about 'find'

2007-01-18 Thread Jim Ault
There are several strategies you could use.

--if you only want to grab the data
put 4 into tagg
get fld numberedList
filter it with taggtab*

--now the only lines that remain in it are those that start with taggtab
--filter only looks at lines
---
If you need to know which line number this match resides on then use the
naturally occuring cr instead of a # sign

put 4 into tagg
put lineOffset(crtaggtab, crfld numberedList) + 1 into hitLine
--this only reports the first match
--the line number will match the fld listing

This should get you where you want to go without RegEx or matchChunk or set
the wholematches to true (the decimal is the problem here)

Let me know if you need a more rigorous solution.

Jim Ault
Las Vegas

On 1/18/07 1:32 AM, Peter Alcibiades [EMAIL PROTECTED]
wrote:

 Feels like a very silly question, but it is stumping me.
 
 How do I use 'find' to find '4' when it occurs by itself but not 4 when it
 occurs in '4.1', when searching the contents of a field?
 
 I have a field with tab separated values in the form
 
 1 1234
 2 2.56
 3 4.1
 4 9.274
 
 and I want to find only that line in which there is a match of the inputted
 string with the first item.  The first item will always be a unique value.
 So I want in some way to do a find on 4 that will pick up only line 4, and
 not the occurrence of 4 in line 3.
 
 Find word doesn't seem to work, because presumably Rev sees the '.' as a word
 limiter.  Whereas in fact, its a decimal  Find string in item 1 doesn't
 work either.   In fact, none of the parameters on find seem to work.
 
 The only thing that has occurred to me is a real kludge - just stick some
 character like # in front of or after the numbers in the first position, and
 then search for #4, and hope that it never occurs to anyone to put this
 character into the second field!  But there must surely be a very simple and
 much better way?
 
 Peter
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: selectedchunk anyone?

2007-01-18 Thread Chipp Walters

Yeah, I guess I'm not being too clear here. Thanks for the tip-- I didn't
know selectedChunk was field dependant. Just what I was looking for.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

Jim Ault wrote:

On 1/18/07 11:41 AM, J. Landman Gay [EMAIL PROTECTED] wrote:

Thanks. It's the space in Application Support that is causing the
trouble. I ran it in the Applescript editor and it really doesn't like
my file path. If I use slashes, it complains and won't compile. If I use
colons, it puts out two errors:

  No such file or directory :Library:Application:
  No such file or directory Support:myFolder:

Blech.


You might try the form:

alias path:folder:file  -- in quotes for Applescript syntax
--- test 1 --


Thanks. Tried it, but no go. Applescript won't compile if there is a 
space in the folder name, even though the above returns the correct path 
(with the space.)


Can anyone try this? I need to point to a folder in Application 
Support and chmod the folder to 777.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

sims wrote:

You'll find more info on this at: 
http://developer.apple.com/technotes/tn2002/tn2065.html


Aha! Okay, I got it work. The above web page helped. Apparently 
applescript doesn't want you to escape spaces in shell commands even 
while it is using POSIX paths. And I was using the wrong quote marks.


This now works, and it is a one-liner:

do shell script chmod 777 '/Library/Application Support/myFolder/' 
with administrator privileges


I wish AppleScript worked like Revolution. Life would be so much easier.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Wake Up, Work, and then Snooze

2007-01-18 Thread David Brooks

This approach seems to work very well.  Thanks, Klaus.

Best,

Dave B.

On Jan 18, 2007, at 12:38 PM, Klaus Major wrote:


Hi David,

I'd like to have a stack wake up (say every hour), do some work,  
and then go back to sleep. Has anyone got something like that  
working?


This sounds like a case for send xyz to ... in...

...
send do_important_hourly_stuff to stack xyz in 60*60 secs
...


Then in the handler:

on do_important_hourly_stuff
   ## do your important hourly stuff here
   ## ..
  send do_important_hourly_stuff to stack xyz in 60*60 secs
end do_important_hourly_stuff

I'm nervous about setting the idlerate to a rather large number,  
and I'm seeking suggestions about prior experiences before I try a  
few experiments.


Using idle and idlerate for this task is a very, very, very,  
very, very bad idea ;-)



Thanks.

Dave Brooks


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Common writable folders

2007-01-18 Thread Ken Ray


On Jan 18, 2007, at 12:13 PM, J. Landman Gay wrote:


sims wrote:

At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?

For the dialog use AppleScript:
do shell script command with administrator privileges
To pass other items use:
do shell script command user name me password mypassword  
with administrator privileges


I'm having trouble with this. I do get the official Apple password  
dialog, but can't execute a command.


I want to change permissions on a folder. This script fails with  
execution error:


put chmod 777 /Library/Application Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with  
administrator privileges into tCmd

  do tCmd as applescript
  put the result

So I figured I needed to escape the space. When I do that, this  
script fails with compiler error:


put chmod 777 /Library/Application\ Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with  
administrator privileges into tCmd

  do tCmd as applescript
  put the result


Jacque, you needt to escape the backslash because AppleScript uses  
that for its own purposes. Try this:


  put chmod 777 /Library/Application\\ Support/myfolder/ into  
tShellCmd
  put do shell script quote tShellCmd quote with  
administrator privileges into tCmd

  do tCmd as applescript
  put the result


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



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


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

Ken Ray wrote:

you needt to escape the backslash because AppleScript uses that 
for its own purposes. Try this:


  put chmod 777 /Library/Application\\ Support/myfolder/ into tShellCmd
  put do shell script quote tShellCmd quote with administrator 
privileges into tCmd

  do tCmd as applescript
  put the result


That seems to work too, good to know. But see my other note, I got it to 
work without any backslash at all.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread Jim Ault
Wiki entry: How to escape a space character
--step hard on left toe
--swing elbow back to the side of captor's head
--run behind nearest boulder

I remember seeing this as a young lad, where Captain Evil freed himself from
Buck Rogers, the most famous space character of all.  This only required one
backslash, and probably is the reason we use it to this day.

Jim Ault
Las Vegas

On 1/18/07 1:26 PM, J. Landman Gay [EMAIL PROTECTED] wrote:

 sims wrote:
 
 You'll find more info on this at:
 http://developer.apple.com/technotes/tn2002/tn2065.html
 
 Aha! Okay, I got it work. The above web page helped. Apparently
 applescript doesn't want you to escape spaces in shell commands even
 while it is using POSIX paths. And I was using the wrong quote marks.
 
 This now works, and it is a one-liner:
 
 do shell script chmod 777 '/Library/Application Support/myFolder/'
 with administrator privileges
 
 I wish AppleScript worked like Revolution. Life would be so much easier.


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


Re: Common writable folders

2007-01-18 Thread Jim Ault
On 1/18/07 1:46 PM, J. Landman Gay [EMAIL PROTECTED] wrote:

 Ken Ray wrote:
 
 you needt to escape the backslash because AppleScript uses that
 for its own purposes. Try this:
 
   put chmod 777 /Library/Application\\ Support/myfolder/ into tShellCmd
   put do shell script quote tShellCmd quote with administrator
 privileges into tCmd
   do tCmd as applescript
   put the result
 
 That seems to work too, good to know. But see my other note, I got it to
 work without any backslash at all.


The reason for this is that there are two layers of escaping needed.
 1) Applescript uses the \ character to escape things in any string;

 and 2) the shell itself uses \ to escape things.


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


Re: Common writable folders

2007-01-18 Thread J. Landman Gay

Chris Sheffield wrote:

I've got another question about using this. Hope you don't mind.

Is there anyway to suppress the dialog if it has already displayed once 
in a session? I realize there's a timeout thing with sudo that 
eventually expires (my Unix knowledge is limited), and at that point a 
new dialog would have to appear anyway.


While I was reading Apple's web page, I think I stumbled on the answer 
to this. Bascially, every line of a shell command starts a new shell 
(which won't contain any state variables, and will therefore force the 
dialog to appear again.) To force it to execute in the same shell and 
retain the admin privileges, you separate commands with semicolons, like 
this:


 do shell script command1;command2.

If your Rev script has to use Rev commands in between shell commands, I 
don't see any way to avoid two admin dialogs because you will have to 
call shell twice. But then, I wasn't doing so well with my other 
question either so maybe someone else knows.


If you could get the user and password back from the admin dialog, you 
could issue the second shell command by supplying the user and password 
to the applescript line. But I don't know how to do that. When I ask for 
the result, I only get back empty if it was successful.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Common writable folders

2007-01-18 Thread Phil Davis

This is hilarious! I needed it about now. Thanks Jim.
Phil Davis

Jim Ault wrote:

Wiki entry: How to escape a space character
--step hard on left toe
--swing elbow back to the side of captor's head
--run behind nearest boulder

I remember seeing this as a young lad, where Captain Evil freed himself from
Buck Rogers, the most famous space character of all.  This only required one
backslash, and probably is the reason we use it to this day.

Jim Ault
Las Vegas

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


Scroll multiple fields together

2007-01-18 Thread LunchnMeets
Hi Everyone,

Is there an easy way to keep multiple scrolling fields in alignment when they 
are scrolled?

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


Re: Rev and RAM

2007-01-18 Thread Reuben Rivera
Thanks for your reply.  

-Original Message-
From: J. Landman Gay [EMAIL PROTECTED]
Sent: Jan 18, 2007 11:33 AM
To: How to use Revolution use-revolution@lists.runrev.com
Subject: Re: Rev and RAM

Reuben Rivera wrote:
 Hello,
 I know Rev uses memory in your system when you are running it.  When
 you load data from a text file into a  rev created app and later delete it,
 is the memory used during the loading process still unavailable or
  can it now be allocated to something else. 

The only memory that is in use is the amount required to store the file 
contents. When you empty the variable, that memory is released. The 
actual I/O process of opening and reading the file is handled by the 
engine and you don't have to worry about that, it does a very good job 
of managing RAM allocation.

As long as you aren't retaining the file contents in a variable, you 
should be able to open/read/close an unlimited number of files without 
any problem.

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Decode xml-data of mac-adressbook

2007-01-18 Thread Sarah Reichelt

 on Mac OSX I try to get the contents of the
 adressbook;
 for each adress there is a xml-file in
 /Users//Library/Caches/
 com.apple.AdressBook/Metadata.

 The  xml-file starts with
 ?xml version=1.0 encoding=UTF-8?

 My adresses are german ones, so there are umlauts
 like ŠšŸ...
 If in the adressbook the city is HŸrth and I read
 the file contents by
 put url(file:/  xmlfilename) into tdata,
 I get Hürth instead.

 As I don«t know enough about encoding, may you give
 me a tip, what to
 do to get the right chars?

 Thank you.

 Richard.


Hi Richard,

You'll have to use the 'uniEncode' and 'uniDecode'
functions to convert it from UTF-8 to UTF-16 and then
back to 1-byte characters. Here's a link to a post by
Mark Waddingham:
http://mail.runrev.com/pipermail/use-revolution/2006-January/074653.html



This certainly helped for reading XML data correctly but I can't
figure out how to write it back out to an XML file once it contains
accented characters.

I've tried numerous combinations of uniEncde, uniDecode, macToIso etc
and I either lose the accented characters completely or they become
something else or the file is empty or it doesn't read properly.

Does anyone know how to write accented chars into an XML text file? I
use the revXMLText() function to get the XML tree as text then save it
to a file.

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


Re: Scroll multiple fields together

2007-01-18 Thread Sarah Reichelt

On 1/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi Everyone,

Is there an easy way to keep multiple scrolling fields in alignment when they
are scrolled?



In each field, put a scrollBarDrag handler as follows:

on scrollBarDrag pNewValue
 set the vScroll of fld OtherField to pNewValue
 set the vScroll of fld SomeField to pNewValue
end scrollbarDrag

pNewValue contains the setting for the scroll of the current field, so
just apply that to all the others.

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


small lesson in using database wanted

2007-01-18 Thread Reinhold Venzl-Schubert

Hi,

I need a small lesson in using database:

1. I created a db (using SQLite3) with several fields. One of them is  
a boolean field. It is corresponding to a checkbox button in the card  
of my stack. Only one record of the database is displayed on the card.


2. I built a query that selects some of the records of my db and  
sorts them by some fields.


3. With a forward and backward button revdb_movenext(recordSetID)  
and revdb_moveprev(recordSetID) I navigate through the records of  
the recordSet.


4. With a script set the hilite of btn checkbox to  
revdb_columnbynumber(recordSetID,5) I display the database fields of  
the actual record in the fields of my card.


5. Then I wrote a script for the checkbox button revdb_execute 
(recordSetID,tSQL) with tSQL like: UPDATE my_db SET checkbox =  
true   and so on. I tested it with the SQLite Database  
Browser: the changes have been saved.


6. When I use my forward and backward button, to switch to the next  
record and then back to the changed record I do not see the change in  
my field or in my special case, the checkbox is not hilited.


7. When I close the current cursor (recordSet) and make a new query  
the checkbox is hilited.


I learned that the UPDATE-script changes the database but it do not  
change the cursor (recordSet).
But the forward/backward button do not display the content of the  
database but the content of the current cursor (recordSet).


- How can I get the content of the database?
- Do I have to make a new query after every change of fields?
- Or is it better to use the revdb_query funktion only to get a  
sorted list of primary keys of the wanted records and to use the  
revdb_querylist funktion to display the content of the db fields on  
the card?


I am rather confused.

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


Is it possible with rev

2007-01-18 Thread Hershel Fisch
Hi all I'v an beautiful phone dialer and wroks, written in real basic, is it
possible to do it with RR?
http://www.macronsoft.com/pages/en/products.html
Thanks,Hershel

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


Re: small lesson in using database wanted

2007-01-18 Thread Brent Anderson

Hello.

Although there are many database functions provided with Revolution,  
I prefer opening a connection and making SQL calls using  
revDataFromQuery. A full tutorial on SQL can be found at  
www.w3schools.com/sql/ that goes over everything you need to know to  
work with any SQL database.


Thanks,
Brent Anderson
CMSEC


On Jan 18, 2007, at 5:32 PM, Reinhold Venzl-Schubert wrote:


Hi,

I need a small lesson in using database:

1. I created a db (using SQLite3) with several fields. One of them  
is a boolean field. It is corresponding to a checkbox button in the  
card of my stack. Only one record of the database is displayed on  
the card.


2. I built a query that selects some of the records of my db and  
sorts them by some fields.


3. With a forward and backward button revdb_movenext(recordSetID)  
and revdb_moveprev(recordSetID) I navigate through the records of  
the recordSet.


4. With a script set the hilite of btn checkbox to  
revdb_columnbynumber(recordSetID,5) I display the database fields  
of the actual record in the fields of my card.


5. Then I wrote a script for the checkbox button revdb_execute 
(recordSetID,tSQL) with tSQL like: UPDATE my_db SET checkbox =  
true   and so on. I tested it with the SQLite Database  
Browser: the changes have been saved.


6. When I use my forward and backward button, to switch to the next  
record and then back to the changed record I do not see the change  
in my field or in my special case, the checkbox is not hilited.


7. When I close the current cursor (recordSet) and make a new query  
the checkbox is hilited.


I learned that the UPDATE-script changes the database but it do not  
change the cursor (recordSet).
But the forward/backward button do not display the content of the  
database but the content of the current cursor (recordSet).


- How can I get the content of the database?
- Do I have to make a new query after every change of fields?
- Or is it better to use the revdb_query funktion only to get a  
sorted list of primary keys of the wanted records and to use the  
revdb_querylist funktion to display the content of the db fields on  
the card?


I am rather confused.

Reinhold
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Locking flds of group to scroll

2007-01-18 Thread Hershel Fisch
On 1/18/07 3:22 PM, Hershel Fisch [EMAIL PROTECTED] wrote:

 Hi, Is it possible to lock the scroll of flds of a group to scroll e.g. The
 scrolls are not checked but if the lines are more then the fld shows then
 the fld scrolls even without the bar, therefore id like to know if and how
 there is a possibility to lock that and only with the group scroll it should
 show the rest of the fld lines
Ok, figured that out by now.
The question if and how it is possible to scroll the group with the scroll
wheel?
 Thanks,Hershel Fisch
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Is it possible with rev

2007-01-18 Thread Richard Gaskin

Hershel Fisch wrote:

Hi all I'v an beautiful phone dialer and wroks, written in real basic, is it
possible to do it with RR?
http://www.macronsoft.com/pages/en/products.html


Looks like a nifty tool.

I'm probably just missing something obvious here, but if it's already 
written and shipping with RB what's the benefit of rebuilding with Rev?


--
 Richard Gaskin Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Is it possible with rev

2007-01-18 Thread Sarah Reichelt

On 1/19/07, Hershel Fisch [EMAIL PROTECTED] wrote:

Hi all I'v an beautiful phone dialer and wroks, written in real basic, is it
possible to do it with RR?
http://www.macronsoft.com/pages/en/products.html
Thanks,Hershel


It looks like it is AppleScriptable, so it should be possible, so long
as they have put all the necessary commands in their AppleScript
library.

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


Re: Locking flds of group to scroll

2007-01-18 Thread Sarah Reichelt

 Hi, Is it possible to lock the scroll of flds of a group to scroll e.g. The
 scrolls are not checked but if the lines are more then the fld shows then
 the fld scrolls even without the bar, therefore id like to know if and how
 there is a possibility to lock that and only with the group scroll it should
 show the rest of the fld lines
Ok, figured that out by now.
The question if and how it is possible to scroll the group with the scroll
wheel?


Yes it is. You need to find out what key codes your scroll wheel sends
to the rawKeyUp or rawKeyDown handlers, then use them to set the
scroll of your group.

I can't remember what the codes are, but if you write a fake
rawKeyDown handler, you can get it to put the codes it is receiving
and find out what they are.

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


Re: Is it possible with rev

2007-01-18 Thread Brent Anderson
Sarah, you're right that it would be accessible through AppleScript,  
but I believe the question was if it was possible or not.


Touch-Tone dialing via speaker is definitely possible and you could  
probably do it in a few minutes. Modem dialing, however, is a  
different story. Revolution does have full driver support, so I'd  
assume that you could, but I don't know where you'd begin in sending  
touch-tone messages across the modem.


Thanks,
Brent Anderson

On Jan 18, 2007, at 7:31 PM, Sarah Reichelt wrote:


On 1/19/07, Hershel Fisch [EMAIL PROTECTED] wrote:
Hi all I'v an beautiful phone dialer and wroks, written in real  
basic, is it

possible to do it with RR?
http://www.macronsoft.com/pages/en/products.html
Thanks,Hershel


It looks like it is AppleScriptable, so it should be possible, so long
as they have put all the necessary commands in their AppleScript
library.

Cheers,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Is it possible with rev

2007-01-18 Thread Jim Ault

On 1/18/07 7:19 PM, Brent Anderson [EMAIL PROTECTED] wrote:

 Sarah, you're right that it would be accessible through AppleScript,
 but I believe the question was if it was possible or not.
 
 Touch-Tone dialing via speaker is definitely possible and you could
 probably do it in a few minutes. Modem dialing, however, is a
 different story. Revolution does have full driver support, so I'd
 assume that you could, but I don't know where you'd begin in sending
 touch-tone messages across the modem.
I don't know much about the auto dialer requirements but I would think you
could start with modem:

Mac
open file modem:
write ATZ to file modem:
write ATDT800889 to file modem:
 --- in the docs where you write, read, etc

Win uses com1:

To set the port parameters (such as baud rate, handshaking, and parity), set
the serialControlString property before opening the port with the open file
command.

To read data from the modem port, use the read from file command, specifying
the keyword modem: as the file to read from.

Looks like it might do the job.

Jim Ault
Las Vegas


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


SoCal RUG mtg Monday, 12 Feb

2007-01-18 Thread Richard Gaskin


The SoCal Revolution User Group will be having a meeting on Monday, 12 
February, at 7PM at the Fourth World Embassy in downtown Los Angeles.


We have an exciting lineup based around a theme:  Collaboration

7PM: Richard Herz of UC San Diego will introduce a work-in-progress - a 
dynamic process simulator (e.g., water flowing in pipes between tanks) 
in which process units (e.g., tanks) can be distributed over the 
Internet to allow team collaboration.


8PM: Dinner at Barbara's, the restaurant here in the complex.

9PM: Josh Mellicker of DV Creators will present a mysterious technology 
called Green Bongo. He's come a long way since our last meeting -- I got 
a preview tour of Green Bongo last week and it's quite a treat.


The meeting will officially adjourn at around 10PM, but any hardy souls 
who like can stay late for a game of Extreme Shuffleboard (be 
forewarned:  Ken Ray will be in town and I have reason to believe he 
cheats g).


All are welcome to attend.   Please RSVP by sending me an email so I can 
make sure to have enough dessert on hand.


If you need directions to the Embassy just drop me a note and I'll send 
the details.


Looking forward to seeing all you RUG rats there -

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution