Re: the standard C++ library

2008-07-02 Thread -= JB =-

When I said Lesson-1 it was in reference to Writing Externals Lesson-1
from the Rev news article.

I am wondering what limitations there are to using the full power of C++
within an external and where I can get the most updated library  docs
that will help me include the C++ library within a OS X Rev external.

-=JB=-



On Jul 1, 2008, at 8:25 PM, -= JB =- wrote:

In the FAQ section of lesson-1 it mentions we can use the standard C 
++ library.
I have a pre OSX version of Codewarrior which includes some good  
doc files.
What is a good resource for C and C++ for OS X.  Is there a big  
difference with

comparison to the pre OSX Codewarrior docs.

Can just about anything be done from within an Rev external or what  
are the

limitations?

-=JB=-
___
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


How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
Hello,

I have a db, which is located in a folder one level deeper as my app
(myfolder/mydb). In the standalone app settings I located and added mydb and
when building the standalone it takes also mydb in the standalone package.
So far so good.

BUT the standalone builder doesn't keeps the directory structure, it just
puts mydb in the same folder/level as my app with the consequence that my
path to mydb doesn't fit any more. So when creating my CD-ROM, I have to put
mydb again by hand one level deeper in myfolder/mydb. Is this the way how
you should work, or am I doing something wrong with building the standalone?

 

Thank you for any hints

Tiemo

 

 

 

___
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


AW: How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
Sorry I am just a little puzzled. I just let the structure as the builder
build it and my app is now running, though mydb is not at the location,
where I expected it to be (in the folder myfolder).
???
Tiemo

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:use-revolution-
 [EMAIL PROTECTED] Im Auftrag von Tiemo Hollmann TB
 Gesendet: Mittwoch, 2. Juli 2008 09:43
 An: Revlist
 Betreff: How to keep dir structure when building standalone?
 
 Hello,
 
 I have a db, which is located in a folder one level deeper as my app
 (myfolder/mydb). In the standalone app settings I located and added mydb
 and
 when building the standalone it takes also mydb in the standalone package.
 So far so good.
 
 BUT the standalone builder doesn't keeps the directory structure, it just
 puts mydb in the same folder/level as my app with the consequence that my
 path to mydb doesn't fit any more. So when creating my CD-ROM, I have to
 put
 mydb again by hand one level deeper in myfolder/mydb. Is this the way how
 you should work, or am I doing something wrong with building the
 standalone?
 
 
 
 Thank you for any hints
 
 Tiemo
 
 
 
 
 
 
 
 ___
 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


AW: How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
Sorry no, I was wrong again, it doesn't work.
What I have to say is, that I develop on Win XP, Rev 2.9, where I can see
the path structure of my mac standalone. I try to get it to run on Mac,
where I don't see the path structure within the app package.
For Windows standalone I just can add the folder in the standalone and shift
the db into that folder (what the standalone builder hasn't done, why?).
That works. But when I create on my windows machine the dbfolder in the Mac
standalone package and shift the db into this folder, my app doesn't find
the db, when testing on the Mac
Hmmm, still missing some basics of Mac app structure.
Any help?
Tiemo

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:use-revolution-
 [EMAIL PROTECTED] Im Auftrag von Tiemo Hollmann TB
 Gesendet: Mittwoch, 2. Juli 2008 09:53
 An: 'How to use Revolution'
 Betreff: AW: How to keep dir structure when building standalone?
 
 Sorry I am just a little puzzled. I just let the structure as the builder
 build it and my app is now running, though mydb is not at the location,
 where I expected it to be (in the folder myfolder).
 ???
 Tiemo

___
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 for making a commercial library for runrev (barcode analysis)

2008-07-02 Thread [EMAIL PROTECTED]
Hello colleagues,

I have made a program in runrev which gets the jpg data of 5 scanservers with 
scanned labels and analyses the 2 to 4 barcodes 39. After a testing phase with 
permanent improvement it now works 8 hours a day connecting to 3-5 scanservers 
stable. The project was part of quality assurance in an industrial environment.
In another project (an older one) a runrev prog looks permanently to a 
directory where scanned images are stored by a scanner, and moves and analyses 
and comments on these images.
The barcode analysis is completely programmed in transcript (500-700 msec per 
scan with 4 to 30 captures of subareas of the image - black/white conversions 
with different filters and barcode analysis). The quality of the jpgs is 150 
dpi (normally 300 dpi is the starting point of doing barcode scans ...) where 
one small barcode line (one modul) is about one pixel - hard task, but there 
are millions of those jpgs a month and storage over years should not explode 
... 
A test for 128 barcode (possible only with higher resolution starting about 200 
dpi) had been successful, but was not finally needed for this project and must 
be improved for final application.

Now I think about making a commercial barcode analysis library for runrev.

Does there exist any standards how to make commercial libraries in runrev?
How to spread a password protected library stack in the community?


Regards,
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
___
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


AW: how to for making a commercial library for runrev (barcode analysis)

2008-07-02 Thread Tiemo Hollmann TB
Hi Franz, nice to hear from you again! Sophisticated things you are doing :)
Tiemo

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:use-revolution-
 [EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED]
 Gesendet: Mittwoch, 2. Juli 2008 12:14
 An: use-revolution@lists.runrev.com
 Betreff: how to for making a commercial library for runrev (barcode
 analysis)
 
 Hello colleagues,
 
 I have made a program in runrev which gets the jpg data of 5 scanservers
 with scanned labels and analyses the 2 to 4 barcodes 39. After a testing
 phase with permanent improvement it now works 8 hours a day connecting to
 3-5 scanservers stable. The project was part of quality assurance in an
 industrial environment.
 In another project (an older one) a runrev prog looks permanently to a
 directory where scanned images are stored by a scanner, and moves and
 analyses and comments on these images.
 The barcode analysis is completely programmed in transcript (500-700 msec
 per scan with 4 to 30 captures of subareas of the image - black/white
 conversions with different filters and barcode analysis). The quality of
 the jpgs is 150 dpi (normally 300 dpi is the starting point of doing
 barcode scans ...) where one small barcode line (one modul) is about one
 pixel - hard task, but there are millions of those jpgs a month and
 storage over years should not explode ...
 A test for 128 barcode (possible only with higher resolution starting
 about 200 dpi) had been successful, but was not finally needed for this
 project and must be improved for final application.
 
 Now I think about making a commercial barcode analysis library for runrev.
 
 Does there exist any standards how to make commercial libraries in runrev?
 How to spread a password protected library stack in the community?
 
 
 Regards,
 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
 ___
 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: OSX Authentication box

2008-07-02 Thread Richard Miller

Kay,

It doesn't work in the Editor either... not on the desktop unit. The  
Editor inserts the password, but won't generate a return that is  
acceptable to the Authentication box. But I've resolved this issue a  
different way. Thanks for your help.


Richard


On Jul 1, 2008, at 10:29 PM, Kay C Lan wrote:

On Mon, Jun 30, 2008 at 10:14 PM, Richard Miller [EMAIL PROTECTED]  
wrote:




This works fine on my older MacBook using 10.4.11, but for  
whatever reason,

it doesn't work on a newer desktop Mac (also using 10.4.11).



I forgot to ask. Does it work if you run in AppleScript Editor? ie  
outside

of Rev.
___
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: the Rev Kagi-KRM?

2008-07-02 Thread Nicolas Cueto
 We made it for both Windows and Mac. We're coordinating with Kee now, I've
 sent him the name of my client. By the way, the person who did the magic
 external was Brian Yennie, a very talented guy.

Still hoping this is still in the works...
or, better yet, completed?

--
Nicolas Cueto
___
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 for making a commercial library for runrev (barcode analysis)

2008-07-02 Thread Jan Schenkel
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello colleagues,
 
 I have made a program in runrev which gets the jpg
 data of 5 scanservers with scanned labels and
 analyses the 2 to 4 barcodes 39. After a testing
 phase with permanent improvement it now works 8
 hours a day connecting to 3-5 scanservers stable.
 The project was part of quality assurance in an
 industrial environment.
 In another project (an older one) a runrev prog
 looks permanently to a directory where scanned
 images are stored by a scanner, and moves and
 analyses and comments on these images.
 The barcode analysis is completely programmed in
 transcript (500-700 msec per scan with 4 to 30
 captures of subareas of the image - black/white
 conversions with different filters and barcode
 analysis). The quality of the jpgs is 150 dpi
 (normally 300 dpi is the starting point of doing
 barcode scans ...) where one small barcode line (one
 modul) is about one pixel - hard task, but there are
 millions of those jpgs a month and storage over
 years should not explode ... 
 A test for 128 barcode (possible only with higher
 resolution starting about 200 dpi) had been
 successful, but was not finally needed for this
 project and must be improved for final application.
 
 Now I think about making a commercial barcode
 analysis library for runrev.
 
 Does there exist any standards how to make
 commercial libraries in runrev?
 How to spread a password protected library stack in
 the community?
 
 
 Regards,
 Mit freundlichen Grüßen
 Franz Böhmisch
 

Hi Franz,

As a provider of Revolution add-ons, I'd advise you
to:
- contact Heather Nagey [EMAIL PROTECTED] for more
information about the RevSelect program
- join the RevInterop group
http://groups.yahoo.com/group/revInterop/ to find
out more about packaging and metadata

Generally, I ship my libraries as a self-contained
stack that people can 'start using' and then
initialize with their license key before they can
actually use the commands and functions.

For instance, the PDF library has the API help
built-in as a substack, as well as a separate substack
with demo scripts. When you open the library stack, it
has the copyright information and buttons to take you
to the demo and documentation substacks.

By the way, congratulations with your project: I can't
help but thinking of how one could use this with
Revolution to create a cross-platform alternative to
the excellent Mac-only Delicious Library.

Anyway, I hope this helped,

Jan Schenkel.

Quartam Reports  PDF Library for Revolution
http://www.quartam.com

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)


  
___
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


Intercepting new card

2008-07-02 Thread Mikey
Hmm.  Well, back in HC, if I wanted to intercept a new card being created, I
had an on doMenu handler.  When I put in an on menuPick handler in RR and
hit ctrl-n, my handler doesn't get hit, and a new card is created.  So if
this handler should not go in the current stack where should I put it?

-- 
Ronald Reagan  - Recession is when a neighbour loses his job. Depression is
when you lose yours.
___
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: Intercepting new card

2008-07-02 Thread Chris Sheffield
Unless I'm misunderstanding, I believe you want the newCard message,  
placed in your stack script.


On Jul 2, 2008, at 8:12 AM, Mikey wrote:

Hmm.  Well, back in HC, if I wanted to intercept a new card being  
created, I
had an on doMenu handler.  When I put in an on menuPick handler in  
RR and
hit ctrl-n, my handler doesn't get hit, and a new card is created.   
So if

this handler should not go in the current stack where should I put it?

--
Ronald Reagan  - Recession is when a neighbour loses his job.  
Depression is

when you lose yours.
___
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, Inc.
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: Intercepting new card

2008-07-02 Thread Mikey
Chris,
Thanks for that, but for curiosity sake, what is necessary to intercept the
menuPick, or is this one of those cases where you can't because RR is
directly executing a RR command?


-- 
Diogenes  - What I like to drink most is wine that belongs to others.
___
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: Intercepting new card

2008-07-02 Thread Chris Sheffield
If I'm not mistaken, you could certainly do it with a front script.  
Just be sure to pass it, or none of the menus in the IDE will work. So  
put a menuPick handler in a button or some other object, then insert  
the script of object into front.


On Jul 2, 2008, at 8:35 AM, Mikey wrote:


Chris,
Thanks for that, but for curiosity sake, what is necessary to  
intercept the

menuPick, or is this one of those cases where you can't because RR is
directly executing a RR command?


--
Diogenes  - What I like to drink most is wine that belongs to  
others.

___
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, Inc.
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


AW: How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
I don't know if I am completely confused, is it a bug or just wrong
implementation?
I still have troubles with getting the right path for my DB, developing with
2.9 on Win XP, testing on Mac. Testing on Win, everything works fine. I'll
try to describe my problem again.
In my development environment my DB is located in a subfolder /db/
To access my DB in my program I tried two ways to set the path:
A: relative /db/
B: absolute /users/.../db/
1. When creating the standalone, my DB is put into the same folder as my
program: myApp.app/Contents/MacOS (and not as expected in a subfolder:
myApp.app/Contents/MacOS/db) Why?
2. The DB file, which is copied into the standalone package has 0 kb. Why?
I copied manually the DB file into the package and replaced the 0 kb file.
3. Now I copied the whole package to a Mac and tested, but my program
doesn't find the DB in the expected path /db/ neither with method A nor B
4. Only when creating a folder db with the DB on the Mac in the same
folder as my App, my program finds the DB. But this can't be the way,
because now the folder with the DB is outside of the app.package.

Where is my fault?
Thanks for any help for a runaway :)
Tiemo




 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:use-revolution-
 [EMAIL PROTECTED] Im Auftrag von Tiemo Hollmann TB
 Gesendet: Mittwoch, 2. Juli 2008 09:43
 An: Revlist
 Betreff: How to keep dir structure when building standalone?
 
 Hello,
 
 I have a db, which is located in a folder one level deeper as my app
 (myfolder/mydb). In the standalone app settings I located and added mydb
 and
 when building the standalone it takes also mydb in the standalone package.
 So far so good.
 
 BUT the standalone builder doesn't keeps the directory structure, it just
 puts mydb in the same folder/level as my app with the consequence that my
 path to mydb doesn't fit any more. So when creating my CD-ROM, I have to
 put
 mydb again by hand one level deeper in myfolder/mydb. Is this the way how
 you should work, or am I doing something wrong with building the
 standalone?
 
 
 
 Thank you for any hints
 
 Tiemo
 

___
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: Intercepting new card

2008-07-02 Thread Mikey
as it turns out, it appears that intercepting newCard isn't what I wanted,
either, since I don't get the message until after the card is created.  I
want to do some work ahead of time.

-- 
Bob Hope  - Middle age is when your age starts to show around your middle.
___
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: AW: How to keep dir structure when building standalone?

2008-07-02 Thread Devin Asay

Hi Tiemo,

On Jul 2, 2008, at 8:44 AM, Tiemo Hollmann TB wrote:


I don't know if I am completely confused, is it a bug or just wrong
implementation?
I still have troubles with getting the right path for my DB,  
developing with
2.9 on Win XP, testing on Mac. Testing on Win, everything works  
fine. I'll

try to describe my problem again.
In my development environment my DB is located in a subfolder /db/
To access my DB in my program I tried two ways to set the path:
A: relative /db/
B: absolute /users/.../db/
1. When creating the standalone, my DB is put into the same folder  
as my

program: myApp.app/Contents/MacOS (and not as expected in a subfolder:
myApp.app/Contents/MacOS/db) Why?
2. The DB file, which is copied into the standalone package has 0  
kb. Why?
I copied manually the DB file into the package and replaced the 0  
kb file.

3. Now I copied the whole package to a Mac and tested, but my program
doesn't find the DB in the expected path /db/ neither with method A  
nor B

4. Only when creating a folder db with the DB on the Mac in the same
folder as my App, my program finds the DB. But this can't be the way,
because now the folder with the DB is outside of the app.package.

Where is my fault?
Thanks for any help for a runaway :)


I might not be understanding your problem exactly, but this  
explanation of how Rev in Mac OS X handles the defaultFolder  
situation might be helpful.


Condition 1: You never explicitly set the defaultFolder in your stack.
In the development environment the defaultFolder points to the folder  
containing the Revolution executable, usually something like / 
Applications/Revolution Enterprise/2.9.0-gm-1.
In the standalone environment the defaultFolder is the folder  
containing your application bundle--the .app file. Therefore in this  
case all relative paths will be relative to this folder. So if you  
distribute your standalone in its own folder, myAppStuff, the  
defaultFolder would be something like /Applications/myAppStuff.


Condition 2: You explicitly set the defaultFolder in your stack to  
the folder containing your stack.
In the development environment the defaultFolder points to the folder  
containing your stack.
In the standalone environment the defaultFolder points to the MacOS  
folder inside the myApp.app bundle. That would be something like / 
Applications/myApp.app/Contents/MacOS. Therefore all relative paths  
will be relative to this folder.


To deal with the difference between the IDE and standalone in Mac OS  
X, I often include the scripting similar to this in my mainstack's  
stack script:


on preOpenStack
  # set the root folder for all resources
  if the environment is development then
set the defaultFolder to enclosingFolder(the name of me)
  end if

  ## Do this for local data and media files.
  set the baseDir of me to the defaultFolder  /  resources
end preOpenStack

function enclosingFolder pStName
  get the filename of pStName
  set the itemDelimiter to /
  return item 1 to -2 of it
end enclosingFolder

Hope this helps.

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: Intercepting new card

2008-07-02 Thread J. Landman Gay

Mikey wrote:

Hmm.  Well, back in HC, if I wanted to intercept a new card being created, I
had an on doMenu handler.  When I put in an on menuPick handler in RR and
hit ctrl-n, my handler doesn't get hit, and a new card is created.  So if
this handler should not go in the current stack where should I put it?



How is your menupick handler set up? In general, I use only a reference 
to a handler in the menupick, and then put the actual working handler in 
the message path (card or stack, depending.)


So, I'd have something like this:

on menupick pWhich
case New card
  doNewCard
  break
case etc
end menupick

And then in the card or stack:

on doNewCard
  custom stuff here
  create card
end doNewCard

That should work. If it doesn't, then the doNewCard handler isn't in the 
message path and you'd need to figure out why.


Often, if you are testing in the IDE, it is Revolution's menus that will 
get the message, not yours. Rev will make a new card and your own 
menupick will never fire. (You can test whether this is the case by 
setting a breakpoint in your menupick handler. If it doesn't break, your 
menu isn't getting the command.) To make sure you are really triggering 
own menus on Mac, set editmenus to false so that your menu bar is in the 
system menu. Or if editmenus is true, specifically choose the New Card 
item from your menu using the mouse. On Windows and Linux, use the mouse 
to make sure you are triggering your own menu and not Rev's. Or you can 
try suspending the development environment to see how it will work in a 
standalone.



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


Iconify Stack

2008-07-02 Thread Mark Smith
Is this property broken? I'm using 2.9 on mac 10.4.11, and the  
following line seems to do nothing at all:


set the iconic of this stack to true

Am I right in thinking that it should send the stack swooping off to  
the dock?


Best,

Mark Smith
___
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


AW: AW: How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
Hi Devin,
thank you for your explanation, I think I got the setting of the path
correct. (I also tried your function, which is similar to mine) My problem
is building the standalone bundle for the Mac on a Win PC.
In the development environment my file.db is in the
defaultfolder/resources (in your example). In the standalone settings I
pointed to the file.db to be taken in the standalone. 
1. Now, when building the standalone, the builder puts my DBfile in the
MacOS folder (what is the defaultfolder) and not in a subfolder
/resources. Why?
2. the DBfile, which the standalonebuilder has put in the MacOS folder has 0
kbWhy ?
3. When creating the /resources/file.db (with a correct file.db) in the
standalone MacOS folder after having build the standalone and testing it on
a Mac, he doesn't find my file.db though my resource path is correct
(tested)
4. Only when creating on the Mac a /resources/file.db folder and file
outside of the Mac prog.app in the same folder as the prog.app, my prog
finds the file.db.
Is my problem located in the building of the standalone, where you can't
push manually folder and files into, after having created?
But why does the standalone finds my file in a folder outside of the
prog.app in the same root as prog.app: /resources/file.db ?
The answer must be so easy, but I don't see it
Thank you
Tiemo

 I might not be understanding your problem exactly, but this
 explanation of how Rev in Mac OS X handles the defaultFolder
 situation might be helpful.
 
 Condition 1: You never explicitly set the defaultFolder in your stack.
 In the development environment the defaultFolder points to the folder
 containing the Revolution executable, usually something like /
 Applications/Revolution Enterprise/2.9.0-gm-1.
 In the standalone environment the defaultFolder is the folder
 containing your application bundle--the .app file. Therefore in this
 case all relative paths will be relative to this folder. So if you
 distribute your standalone in its own folder, myAppStuff, the
 defaultFolder would be something like /Applications/myAppStuff.
 
 Condition 2: You explicitly set the defaultFolder in your stack to
 the folder containing your stack.
 In the development environment the defaultFolder points to the folder
 containing your stack.
 In the standalone environment the defaultFolder points to the MacOS
 folder inside the myApp.app bundle. That would be something like /
 Applications/myApp.app/Contents/MacOS. Therefore all relative paths
 will be relative to this folder.
 
 To deal with the difference between the IDE and standalone in Mac OS
 X, I often include the scripting similar to this in my mainstack's
 stack script:
 
 on preOpenStack
# set the root folder for all resources
if the environment is development then
  set the defaultFolder to enclosingFolder(the name of me)
end if
 
## Do this for local data and media files.
set the baseDir of me to the defaultFolder  /  resources
 end preOpenStack
 
 function enclosingFolder pStName
get the filename of pStName
set the itemDelimiter to /
return item 1 to -2 of it
 end enclosingFolder
 
 Hope this helps.
 
 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

___
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: Intercepting new card

2008-07-02 Thread Mikey
Originally my menuPick handler was in the stack script, but as I found out,
that didn't work so I inserted the stub into the frontScripts to call the
custom handler in the stack.  The problem with that was that when the custom
handler fired it was trying to act on revMenubar, so I had to set the
defaultStack to the topStack first.

What a wasted morning.  I think it all works now.
___
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


AW: AW: How to keep dir structure when building standalone?

2008-07-02 Thread Tiemo Hollmann TB
Hmmm I am really not beeing used to the Mac bundle structure.
When asking the path for my file.db it shows me:
/Users/Tiemo/Desktop/Testfolder/resources/file.db
What explains why my prog finds the file, when the resources folder is
located outside of the prog.app in my Testfolder on the same level as the
prog.app
What I would have expected - and where I put the file.db in the standalone
package on my Win Pc is:
/Users/Tiemo/Desktop/Testfolder/myApp.app/Contents/MacOS/resources/file.db
But at this location it can't find my file.db when the path is:
/Users/Tiemo/Desktop/Testfolder/resources/file.db

Where is my wrong thinking?
Thanks for any help :)
Tiemo




 But why does the standalone finds my file in a folder outside of the
 prog.app in the same root as prog.app: /resources/file.db ?
 The answer must be so easy, but I don't see it
 Thank you
 Tiemo

___
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 broke is the Player?

2008-07-02 Thread Hugh Senior

Dear Randall,

Thank you for your reply; sort and to the point.

Unfortunately I am unsure of what point you are in fact making, nor whether 
my well-being has any influence on either development environment. 
Nevertheless, your financial impecuniosity regarding the issue is taken in 
spirit and your concern for my personal state of mind is similarly 
heart-warming, if not entirely productive.


/H

-Original Message-
Date: Tue, 1 Jul 2008 11:13:45 -0700
From: Randall Reetz [EMAIL PROTECTED]
Subject: RE: How broke is the Player?

I dont have a penny!... You happy now? 


___
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 broke is the Player?

2008-07-02 Thread J. Landman Gay

Hugh Senior wrote:

 I dont have a penny!... You happy now?


Dear Randall,

Thank you for your reply; sort and to the point.

Unfortunately I am unsure of what point you are in fact making, nor 
whether my well-being has any influence on either development 
environment. Nevertheless, your financial impecuniosity regarding the 
issue is taken in spirit and your concern for my personal state of mind 
is similarly heart-warming, if not entirely productive.


LOL! This is pretty funny. I suspect the original poster had downloaded 
the trial, didn't know he was subscribed to the list, and was responding 
to one of RR's auto-emails regarding a purchase offer. He probably 
didn't even know he was replying to the list.


Your response really did make me laugh out loud though.

--
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: the Rev Kagi-KRM?

2008-07-02 Thread J. Landman Gay

Nicolas Cueto wrote:

We made it for both Windows and Mac. We're coordinating with Kee now, I've
sent him the name of my client. By the way, the person who did the magic
external was Brian Yennie, a very talented guy.


Still hoping this is still in the works...
or, better yet, completed?


I don't know, I connected Kagi and my client and it is up to them now. 
You could write to Kagi and see if there has been any progress.


--
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: Iconify Stack

2008-07-02 Thread Sarah Reichelt
On Thu, Jul 3, 2008 at 4:27 AM, Mark Smith [EMAIL PROTECTED] wrote:
 Is this property broken? I'm using 2.9 on mac 10.4.11, and the following
 line seems to do nothing at all:

 set the iconic of this stack to true

 Am I right in thinking that it should send the stack swooping off to the
 dock?


Yes, it should and it does here with Rev 2.9 and Mac OS X 10.5.4 but
only if the stack's mode is topLevel or modeless.

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: How broke is the Player?

2008-07-02 Thread Randall Reetz
Just a joke opportunity i couldnt let pass.  I am a concious participant in 
this list and have used xtalk since its inception.  We're, all of us, too 
serious.

randall

-Original Message-
From: J. Landman Gay [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 7/2/2008 1:25 PM
Subject: Re: How broke is the Player?

Hugh Senior wrote:

  I dont have a penny!... You happy now?

 Dear Randall,
 
 Thank you for your reply; sort and to the point.
 
 Unfortunately I am unsure of what point you are in fact making, nor 
 whether my well-being has any influence on either development 
 environment. Nevertheless, your financial impecuniosity regarding the 
 issue is taken in spirit and your concern for my personal state of mind 
 is similarly heart-warming, if not entirely productive.

LOL! This is pretty funny. I suspect the original poster had downloaded 
the trial, didn't know he was subscribed to the list, and was responding 
to one of RR's auto-emails regarding a purchase offer. He probably 
didn't even know he was replying to the list.

Your response really did make me laugh out loud though.

-- 
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: How broke is the Player?

2008-07-02 Thread J. Landman Gay

Randall Reetz wrote:

Just a joke opportunity i couldnt let pass.  I am a concious
participant in this list and have used xtalk since its inception.


Whoops, I should have recognized your name. Sorry about that. Apparently 
while you are a conscious participant, I'm an unconscious one.


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


quicktime player in stackrunner and rev player with macbook air

2008-07-02 Thread Randolph Valentine
 Hi, I¹ve got a pretty complex stack that has always worked on both macs
(ppc/intel) and windows computers, which utilizes a player to play mp3
snippets‹ I distribute this to students via Stackrunner (or the Rev player
application). With my new Macbook Air, however, I notice that the quicktime
player doesn¹t seem to work, with either Stackrunner or the Rev Player,
though the player _does_ work when I open the stack in Studio 2.9 on my
MacBook Air. In Stackrunner (and the Player), there is no player visible and
no audio. Is there anything I can do to make this work in Stackrunner (which
I love)? Thanks.

rand valentine


___
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


stackrunner problem solved!

2008-07-02 Thread Randolph Valentine
 sorry to take up bandwith with my inanity! but I  realized that I didn¹t
have the audio properly linking on my macbook air, and that¹s why the audio
wasn¹t working. Long live Stackrunner.

rand valentine
___
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: AW: AW: How to keep dir structure when building standalone?

2008-07-02 Thread Devin Asay


On Jul 2, 2008, at 1:06 PM, Tiemo Hollmann TB wrote:


Hmmm I am really not beeing used to the Mac bundle structure.
When asking the path for my file.db it shows me:
/Users/Tiemo/Desktop/Testfolder/resources/file.db
What explains why my prog finds the file, when the resources folder is
located outside of the prog.app in my Testfolder on the same level  
as the

prog.app
What I would have expected - and where I put the file.db in the  
standalone

package on my Win Pc is:
/Users/Tiemo/Desktop/Testfolder/myApp.app/Contents/MacOS/resources/ 
file.db

But at this location it can't find my file.db when the path is:
/Users/Tiemo/Desktop/Testfolder/resources/file.db

Where is my wrong thinking?


Tiemo,

Tell me where you want it to be on your Mac OS X version, and I'll  
tell you how to set it up to work right.


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: How broke is the Player?

2008-07-02 Thread Josh Mellicker
I thought Randall had a self-image of himself as a Player, and so  
took the question to be a query about his financial condition.


;-)

On Jul 2, 2008, at 2:00 PM, J. Landman Gay wrote:


Randall Reetz wrote:

Just a joke opportunity i couldnt let pass.  I am a concious
participant in this list and have used xtalk since its inception.


Whoops, I should have recognized your name. Sorry about that.  
Apparently while you are a conscious participant, I'm an unconscious  
one.


--
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: concatenate fields

2008-07-02 Thread Peter Brigham
On Jul 1, 2008, at 10:00 AM, william humphrey  
[EMAIL PROTECTED] wrote:


Thanks Sarah. I thought I'd have to do it like that with a bunch of  
if's
but I'm always reading these amazing solutions here so I'm  
beginning to
think that there is some magic beyond ordinary mortals. It is a  
relief to

know that sometimes the mundane answer is correct.


If you have this utility function:

function sws tText
  -- strips white space (returns, spaces, tabs, etc)
  -- from tText, fore  aft
  return word 1 to -1 of tText
end sws

which I use all the time -- very handy to put in a library -- then  
you could do:


put sws(fld f1  space  sws(fld f2  space  sws(fld f3)))  
into concatFields


Peter M. Brigham
[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: concatenate fields

2008-07-02 Thread Mark Wieder
Peter-

 If you have this utility function:

 function sws tText
   -- strips white space (returns, spaces, tabs, etc)
   -- from tText, fore  aft
   return word 1 to -1 of tText
 end sws

That's also handy for stripping the comment off the end of a line from a 
script...

-- 
 Mark Wieder
 [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 broke is the Player?

2008-07-02 Thread Randall Reetz
Nothing funnier than a programming newsgroup subject line pun... (Or a joke 
that has to be explained)

-Original Message-
From: Josh Mellicker [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 7/2/2008 3:39 PM
Subject: Re: How broke is the Player?

I thought Randall had a self-image of himself as a Player, and so  
took the question to be a query about his financial condition.

;-)

On Jul 2, 2008, at 2:00 PM, J. Landman Gay wrote:

 Randall Reetz wrote:
 Just a joke opportunity i couldnt let pass.  I am a concious
 participant in this list and have used xtalk since its inception.

 Whoops, I should have recognized your name. Sorry about that.  
 Apparently while you are a conscious participant, I'm an unconscious  
 one.

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


___
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 broke is the Player?

2008-07-02 Thread Randall Reetz
hilarious(?)

-Original Message-
From: Josh Mellicker [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 7/2/2008 3:39 PM
Subject: Re: How broke is the Player?

I thought Randall had a self-image of himself as a Player, and so  
took the question to be a query about his financial condition.

;-)

On Jul 2, 2008, at 2:00 PM, J. Landman Gay wrote:

 Randall Reetz wrote:
 Just a joke opportunity i couldnt let pass.  I am a concious
 participant in this list and have used xtalk since its inception.

 Whoops, I should have recognized your name. Sorry about that.  
 Apparently while you are a conscious participant, I'm an unconscious  
 one.

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


___
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


Path to a double-clicked document

2008-07-02 Thread Bill Vlahos
How do I get the path to a file that was double-clicked in the OS  
(Mac, Windows, and Linux) that opens my standalone?


The association of the standalone to files with a particular  
extension is set on the Mac and Windows gives the user the ability to  
set up the association if I didn't set it in the registry.


I want the document files for my application to live in a particular  
folder and not be anywhere on the drive. When the user double clicks  
the file on the file system or as an email attachment, I want to  
catch it and offer the user the ability to copy the file from where  
it is to where I want it to be.


I assume getting the path will be the same for all the platforms and  
I can write the copy/move routine.


Bill Vlahos
___
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: Iconify Stack

2008-07-02 Thread Mark Smith
That's weird - if I do it by script - nothing, if I click the stack's  
OS iconify button (the middle, yellow one on a mac) off it  
swoops...The stacks I've been trying it with (including a fresh new  
one with no other scripts) all fail to iconify by script.


Thanks for checking it, though.

Mark

On 2 Jul 2008, at 21:27, Sarah Reichelt wrote:

On Thu, Jul 3, 2008 at 4:27 AM, Mark Smith [EMAIL PROTECTED] wrote:
Is this property broken? I'm using 2.9 on mac 10.4.11, and the  
following

line seems to do nothing at all:

set the iconic of this stack to true

Am I right in thinking that it should send the stack swooping off  
to the

dock?



Yes, it should and it does here with Rev 2.9 and Mac OS X 10.5.4 but
only if the stack's mode is topLevel or modeless.

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: Path to a double-clicked document

2008-07-02 Thread Trevor DeVore

On Jul 2, 2008, at 9:28 PM, Bill Vlahos wrote:

How do I get the path to a file that was double-clicked in the OS  
(Mac, Windows, and Linux) that opens my standalone?


The association of the standalone to files with a particular  
extension is set on the Mac and Windows gives the user the ability  
to set up the association if I didn't set it in the registry.


I want the document files for my application to live in a particular  
folder and not be anywhere on the drive. When the user double clicks  
the file on the file system or as an email attachment, I want to  
catch it and offer the user the ability to copy the file from where  
it is to where I want it to be.


I assume getting the path will be the same for all the platforms and  
I can write the copy/move routine.


Hey Bill,

Mac:

Here is some appleEvent code you should put in the message path. Since  
you use the splash stack design I would put it in a library stack so  
that it catches the message regardless of which stack is frontmost.  
Note that you may need to check that your application has finished  
loading in the appleEvent. If double-clicking on the file causes the  
OS to launch your application then the appleEvent might be received  
before all of your application stacks have opened.


on appleEvent pClass, pID, pSender
if pClass is aevt and pID is odoc then
request appleEvent data
put it into theFiles ## files OS is requesting your  
application opens.


if theFiles is not not found then
if theFiles is not empty then

## DON'T PASS, CRASHES CAN OCCUR (TESTING UNDER 2.8)
else
pass appleEvent
end if
else
pass appleEvent
end if
else
pass appleEvent
end if
end appleEvent

Windows:

If your application is not running yet then the file paths will be  
passed in the command line arguments - $1, $2, etc. Revolution 2.9  
added $# which tells you how many command line arguments were passed  
to the application so the following code will create a return  
delimited list of argument passed to your application at launch. It is  
up to you to verify the params are paths to one of your files.


repeat with i = 1 to $#
   put value($  i) into theValue
   put theValue  cr after theFiles
end repeat

If your application is already running then you need to handle the  
'relaunch' command in the stack you use to create the executable.  
Again, you should check that your application has finished loading  
before doing anything as the relaunch command could be sent before  
your application has completely loaded (you are using splash stack  
technique).


on relaunch
repeat with theCounter = 1 to the paramcount
put param(theCounter)  cr after theFiles
end repeat
end relaunch

Linux:

No idea, sorry.

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.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: Iconify Stack

2008-07-02 Thread J. Landman Gay

Mark Smith wrote:
That's weird - if I do it by script - nothing, if I click the stack's OS 
iconify button (the middle, yellow one on a mac) off it swoops...The 
stacks I've been trying it with (including a fresh new one with no other 
scripts) all fail to iconify by script.


Works here too, Rev 2.9, Mac OS 10.4.11. Do you have any frontscripts? 
Plugins? Does it work if you suspend the development environment?


--
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: Iconify Stack

2008-07-02 Thread Sarah Reichelt
On Thu, Jul 3, 2008 at 11:46 AM, Mark Smith [EMAIL PROTECTED] wrote:
 That's weird - if I do it by script - nothing, if I click the stack's OS
 iconify button (the middle, yellow one on a mac) off it swoops...The stacks
 I've been trying it with (including a fresh new one with no other scripts)
 all fail to iconify by script.

I tested using the message box, but I just put the script in a button
and that worked fine too.

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: Iconify Stack

2008-07-02 Thread Mark Smith
Got it...I was in too much of a hurry - it does work in a 'virgin'  
stack - the problem is that I've been experimenting with doing my own  
stack decorations, and it seems like if the OS title bar buttons are  
missing, then you simply can't iconify, which is a pain, but makes  
some kind of sense...


Thanks again Sarah and Jaque for checking, though.

Mark

On 3 Jul 2008, at 03:15, Sarah Reichelt wrote:
On Thu, Jul 3, 2008 at 11:46 AM, Mark Smith [EMAIL PROTECTED]  
wrote:
That's weird - if I do it by script - nothing, if I click the  
stack's OS
iconify button (the middle, yellow one on a mac) off it  
swoops...The stacks
I've been trying it with (including a fresh new one with no other  
scripts)

all fail to iconify by script.


I tested using the message box, but I just put the script in a button
and that worked fine too.

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


Little Transcript Help Over Here, Please

2008-07-02 Thread Mikey
If I do the following in a script:
put north into theButton
global status
put the hilite of bg button theButton into status

and check status, I get the value I expect, namely the hilite of the bg
button North.

However, if I
if the hilite of bg button theButton then

OR

if (the hilite of bg button theButton) then

I get a message execution error:  Error Description:  Chunk:  no such
object.

So if I combine both of these, status gets the value I would expect, but I
still get the error.

So what's wrong with my code, please?
-- 
Diogenes  - What I like to drink most is wine that belongs to others.
___
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: Little Transcript Help Over Here, Please

2008-07-02 Thread Sarah Reichelt
On Thu, Jul 3, 2008 at 1:56 PM, Mikey [EMAIL PROTECTED] wrote:
 If I do the following in a script:
 put north into theButton
 global status
 put the hilite of bg button theButton into status

 and check status, I get the value I expect, namely the hilite of the bg
 button North.

 However, if I
 if the hilite of bg button theButton then

 OR

 if (the hilite of bg button theButton) then

 I get a message execution error:  Error Description:  Chunk:  no such
 object.


Unless you are using a stack that has been imported from Hypercard, HC
addressing should be off and there would be no need to include the
bg. However while I can see how this would confuse the engine
(unless your North button is in the first background or group on the
card), I can't see why it works the first way.

Anyhow, try removing all the bg references and seeing if that fixes it.

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: Little Transcript Help Over Here, Please

2008-07-02 Thread -= JB =-

How about if you try one of the below:

if the hilite of bg button theButton = true then
if the hilite of bg button theButton  ≠ true then
if the hilite of bg button theButton = false then
if the hilite of bg button theButton  ≠ false then

-=JB=-



On Jul 2, 2008, at 8:56 PM, Mikey wrote:


If I do the following in a script:
put north into theButton
global status
put the hilite of bg button theButton into status

and check status, I get the value I expect, namely the hilite of  
the bg

button North.

However, if I
if the hilite of bg button theButton then

OR

if (the hilite of bg button theButton) then

I get a message execution error:  Error Description:  Chunk:  no such
object.

So if I combine both of these, status gets the value I would  
expect, but I

still get the error.

So what's wrong with my code, please?
--
Diogenes  - What I like to drink most is wine that belongs to  
others.

___
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: Little Transcript Help Over Here, Please

2008-07-02 Thread Robert Sneidar
You seem to be declaring a global inside a handler and then trying to  
access the global outside the handler without declaring the global.


Common practice is to declare global at the top of the script, and  
then it is accessible to any handler in that script.


Ex.
-- stack script
Global bobtest

On openstack
  put hey into bobtest
End openstack

On revealbobtest
  put bobtest -- the message box
End revealbobtest

The above works because the scope of the global is the stack script  
itself, NOT the handler, whose scope expires with the termination of  
the handler.


Hope this helps

Bob Sneidar
IT Manager
Calvary Chapel CM
Sent from iPhone

On Jul 2, 2008, at 17:56, Mikey [EMAIL PROTECTED] wrote:


If I do the following in a script:
put north into theButton
global status
put the hilite of bg button theButton into status

and check status, I get the value I expect, namely the hilite of the  
bg

button North.

However, if I
if the hilite of bg button theButton then

OR

if (the hilite of bg button theButton) then

I get a message execution error:  Error Description:  Chunk:  no such
object.

So if I combine both of these, status gets the value I would expect,  
but I

still get the error.

So what's wrong with my code, please?
--
Diogenes  - What I like to drink most is wine that belongs to  
others.

___
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: Little Transcript Help Over Here, Please

2008-07-02 Thread Mark Schonewille

Hi Mikey,

As Sarah writes, you may have to remove bg.

Are you sure that the variable theButton contains north and are you  
sure that the button is on the current card when you execute the script?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 3 jul 2008, at 05:56, Mikey wrote:


If I do the following in a script:
put north into theButton
global status
put the hilite of bg button theButton into status

and check status, I get the value I expect, namely the hilite of the  
bg

button North.

However, if I
if the hilite of bg button theButton then

OR

if (the hilite of bg button theButton) then

I get a message execution error:  Error Description:  Chunk:  no such
object.

So if I combine both of these, status gets the value I would expect,  
but I

still get the error.

So what's wrong with my code, please?


___
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