Re: Sound record not working on school macs

2010-11-15 Thread Scott Morrow
Hello Bill,

Just to follow up on Bob's observation.
If you create the sound file in a folder that already has permissions for this 
sort of thing then there shouldn't be a problem.  Looking at your OpenStack 
script suggests that the audio files are being saved to the same location as 
your stack file.  If that file is in the Applications folder, for instance, it 
probably wouldn't be a writable location for non-admin users like your managed 
student account. 

Some possibile locations to direct your audio files might be:
 Users/Shared/  where everyone has read/write privileges. Or a folder 
specific to the Student user such as 
Users/Student/Documents/Just-Say-It/Audio/

- Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--





On Nov 15, 2010, at 2:46 PM, Bill Ziegler wrote:

 Thanks Bob,
 
 That fixed the problem. We just have to figure how to prevent the school's 
 system from setting the permissions to read-only when a student creates a new 
 copy. The district is checking it out.
 
 bill
 ___
 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: Beachball cursor Help

2010-11-09 Thread Scott Morrow
Hello Joe,

This isn't more colorful but Shao Sean's great ssMacExternal gives you access 
to built-in OSX cursors including the animated counting hand cursor.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-360-734-4701
mobile  360-920-0715
--





On Nov 8, 2010, at 7:46 AM, Joe Lewis Wilkins wrote:

 Hi all,
 
 Instead of the b/w cursor busy, I'd love to use the more colorful 
 beachball. Anyone know how that is accomplished?
 TIA 
 Joe Wilkins
 
 
 
 
 
 ___
 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: LiveCode in K-6 school environment

2010-09-23 Thread Scott Morrow
Hello Monte,
snip
 - Starting programming for older kids (9 or 10 year olds). 

It sounds like the age of children you are looking at may be a challenging 
group if writing code is the goal. I teach 8 and 9 year olds and my experience 
teaching them HyperCard (and last year, revMedia) is that (no matter how hard I 
wish it to be different) very few are developmentally ready to program.  A 
simple PowerPoint type interface and/or templates that they can customize is 
more appropriate with the kiddos I work with.  A few of the more gifted 9 year 
olds can get their head around variables and if-then branching but my 
experience (and the general consensus of folks I spoke to at a few RevCons) was 
that 10 or 11 year olds were usually better able to think at that level of 
abstraction...  On the other hand, it hasn't stopped me from exposing kids to 
scripting in order to see who gets a light in their eyes!  Let us know what you 
end up doing.  I'm certain I'm not alone in wanting to know what someone of 
your skill will end up contributing inside a school setting.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--


On Sep 22, 2010, at 5:54 PM, Monte Goulding wrote:

 Hi
 
 I'm about to start doing a day a week at my kids school to help them with 
 their ICT program and I'm interested to hear the experiences of anyone using 
 LiveCode in that environment. I'm thinking in terms of:
 - providing tools for teachers. 
 - eLearning for young kids. 
 - Starting programming for older kids (9 or 10 year olds). 
 - providing tools for parents or school/parent communication
 
 Cheers
 
 --
 Monte Goulding
 M E R Goulding Software Development
 Bespoke application development for vertical markets
 
 InstallGadget - How to create an installer in 10 seconds
 revObjective  - Making behavior scripts behave
 
 ___
 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: Grouping checkboxes with label fields

2010-09-13 Thread Scott Morrow
Cool!  I didn't know you could do that.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-360-734-4701
--


On Sep 13, 2010, at 10:07 PM, J. Landman Gay wrote:

 On 9/13/10 8:25 PM, charles61 wrote:
 
 I have a series of cards that have checkboxes. Some of the checkboxes have
 labels fields under them because the label of the checkbox will not hold the
 content of the information displayed.
 
 You can add a two-line label if you do it by script:
 
  set the label of btn 1 to line one cr line 2
 
 Would that help?
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 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: DataGrid column update and button center

2010-08-09 Thread Scott Morrow
Thank you, Mr. Slug. Your helpful observations about my beginning efforts with 
the data grid are much appreciated.
-Scott

On Aug 9, 2010, at 3:38 AM, zryip theSlug wrote:

 On Fri, Aug 6, 2010 at 12:02 PM, Scott Morrow
 sc...@elementarysoftware.com wrote:
 
 Hi Scott,
 
 Two Data Grid questions:
 
 1) I'm updating a single column of a Data Grid table.  I can't discover 
 any other way than to loop through each index.  Would this be the accepted 
 method?
 
 --- the code I'm using ---
 
 put the dgData[false] of grp DataGrid 1 into tArray
 put 1 into tIndexCounter
  -- the column data might look like this as I'm setting the hilite of 
 checkBox buttons
 put true,true,false,true into tNewColumnData
 
 repeat for each item tNewData in tNewColumnData
 put tNewData into tArray[tIndexCounter][theColumnName]
 add 1 to tIndexCounter
 end repeat
 
 set the dgData of grp DataGrid 1 of stack myStackName to  tArray
 -
 
 Using a loop is the only way I know.
 You can also update the array by using the DataGrid API, with the
 SetDataOfIndex (or SetDataOfLine).
 It is equivalent to your loop excepted that you have not to refresh
 the whole data, only the data required by the column.
 It means that by using the SetDataOfIndex, set the dgData of the DG is
 not required.
 
 Note that in this line
 put the dgData[false] of grp DataGrid 1 into tArray
 
 the dgData properties not accepts a parameter. Only dgText do.
 
 2) I have a column of checkbox buttons.  The column header is wider than 
 the
 button(s) and I would like to be able to center the button(s) in the column. 
  It seems like I
 should be able to do this (using the DataGrid inspector) by setting the
 dgColumnAlignment to center but I'm not having any luck.  Any suggestions 
 (hoping I
 don't need to switch to a form layout  :  )
 
 The dgColumnAlignment is only provided to change the alignment of a
 standard column (text and not managed by a custom behavior)
 To center a checkbox, you have to manage it in the LayoutControl
 event of the column behavior.
 
 on LayoutControl  pControlRect
centerMyCheckBox -- center the checkbox in the rect (pControlRect)
 of the cell
 end LayoutControl
 
 So no need to switch to a DG form ;)
 
 
 Regards,
 
 -- 
 -Zryip TheSlug- wish you the best! 8)
 http://www.aslugontheroad.co.cc
 ___
 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


DataGrid column update and button center

2010-08-06 Thread Scott Morrow
Two Data Grid questions:

1) I'm updating a single column of a Data Grid table.  I can't discover any 
other way than to loop through each index.  Would this be the accepted method?

--- the code I'm using ---

put the dgData[false] of grp DataGrid 1 into tArray
put 1 into tIndexCounter
 -- the column data might look like this as I'm setting the hilite of checkBox 
buttons
put true,true,false,true into tNewColumnData

repeat for each item tNewData in tNewColumnData
 put tNewData into tArray[tIndexCounter][theColumnName]
 add 1 to tIndexCounter
end repeat

set the dgData of grp DataGrid 1 of stack myStackName to  tArray
-

2) I have a column of checkbox buttons.  The column header is wider than 
the button(s) and I would like to be able to center the button(s) in the 
column.  It seems like I should be able to do this (using the DataGrid 
inspector) by setting the dgColumnAlignment to center but I'm not having any 
luck.  Any suggestions (hoping I don't need to switch to a form layout  :  )


TIA
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: [ANN] Step By Step 02 - Introduction to the Data Grid is on the road

2010-07-12 Thread Scott Morrow
Zryip TheSlug,

Your Data-Grids tour is both a wonderfully informative primer and a beautifully 
rendered example of interface design.  Thank you for this thoughtful and 
generous example!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--





On Jul 11, 2010, at 4:44 PM, zryip theSlug wrote:

 Dear List,
 
 The Slug is happy to announce the availability of a new stack in the
 step by step collection.
 
 The Step by step 02 - Introduction to the datagrid presents:
 - What is a Datagrid table?
 - What is a Datagrid form?
 - What is a cell?
 - What is a row?
 - What is a template?
 - What is a behavior?
 - How to populate a grid with text or data?
 - What event for what usage?
 
 The tutorial stack contains a small lab to experiment the example and
 study script and templates.
 
 
 It is a different approach than the available lessons. The Trevor's
 lesson remains essential ;)
 
 I'm waiting your feedbacks to improve this first tutorial about the
 Datagrid object 8-)
 
 
 You can download the tutorial stack here:
 http://www.aslugontheroad.co.cc/index.php?option=com_phocadownloadview=categoryid=6:datagrid-step-by-stepItemid=63
 
 A small preview of the stack is available here:
 http://www.aslugontheroad.co.cc/images/stories/Preview/sbs_datagrid_preview.png
 
 
 Regards,
 -- 
 -Zryip TheSlug- wish you the best! 8)
 http://www.aslugontheroad.co.cc
 ___
 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: [ANN] taking a break

2010-07-02 Thread Scott Morrow

On Jul 2, 2010, at 2:35 AM, Richmond wrote:

 On 07/02/2010 10:13 AM, Shao Sean wrote:
 taking a break from coding for a while.. everything is offline until i can 
 figure out how to raise my standards..
 ___
 
 That has to be admired; especially when a lot of people seem to be
 falling for the Quick-n-Easy approach.

Huh?  That never crossed my mind.  I thought he had some flags that needed 
raising...

-Scott Morrow

___
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


[On-Rev] post tData to URL https

2010-06-27 Thread Scott Morrow
I'm trying to set up my On-Rev account to use PayPal's IPN system which 
requires replying to a message that PayPal sends to me.  Using their sandbox I 
can receive and parse the PayPal message but can't figure out how to send it 
back properly. If I paste the string my script constructs into a web browser I 
get the correct response from PayPal.  Unfortunately, I can't seem to do this 
directly from an irev script.  I'm using:

post tData to URL https://www.sandbox.paypal.com/cgi-bin/webscr;

Of course it could certainly be pilot error, (I'm not too sure about applying 
headers, among other things) but messages on the forum seemed to indicate that 
some folks thought the problem was having an https URL

I read the message from Mark Waddingham suggesting that this had been fixed but 
I don't know enough about https to be sure if it applies to this situation. 
Nor can I tell from the forums whether anyone ever got this to work... or if 
there is some alternate method.  Any suggestion welcome.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: [On-Rev] post tData to URL https

2010-06-27 Thread Scott Morrow
Of course, Andre Garzia has already published a robust solution.  How is it 
that after 2 days, I find his solution (already on my drive) only a few moments 
after posting here!  I don't have it working yet but   get URL  followed by  
put it  looks like my friend :  )
So, thanks Andre!

-Scott

On Jun 27, 2010, at 7:59 AM, Scott Morrow wrote:

 I'm trying to set up my On-Rev account to use PayPal's IPN system which 
 requires replying to a message that PayPal sends to me.  Using their sandbox 
 I can receive and parse the PayPal message but can't figure out how to send 
 it back properly. If I paste the string my script constructs into a web 
 browser I get the correct response from PayPal.  Unfortunately, I can't seem 
 to do this directly from an irev script.  I'm using:
 
 post tData to URL https://www.sandbox.paypal.com/cgi-bin/webscr;
 
 Of course it could certainly be pilot error, (I'm not too sure about applying 
 headers, among other things) but messages on the forum seemed to indicate 
 that some folks thought the problem was having an https URL
 
 I read the message from Mark Waddingham suggesting that this had been fixed 
 but I don't know enough about https to be sure if it applies to this 
 situation. Nor can I tell from the forums whether anyone ever got this to 
 work... or if there is some alternate method.  Any suggestion welcome.
 
 Scott Morrow
 
 Elementary Software
 (Now with 20% less chalk dust!)
 web   http://elementarysoftware.com/
 email sc...@elementarysoftware.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: combo box messages

2010-06-07 Thread Scott Morrow
Hello Bernd,

Thank you for sharing that!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/


On Jun 7, 2010, at 12:50 PM, BNig wrote:
 
 That is a very nice stack. Thank you for pointing it out.
 
 But actually the original poster on the forum wanted to write text in a
 textfield and he wanted to use some shorthand or macro functionality. 
 Whenever he typed two periods and a letter a list was supposed to pop up and
 let him insert the text into the current text at the current position.
 He was a doctor and wanted to save some of the repetitive work on putting
 medications and how to use it into the letter also avoiding typos I guess.
 I liked the idea and gave it a try:
 
 the revlet:
 http://berndniggemann.on-rev.com/revlets/typeandshortcutinfield/
 the stack
 http://berndniggemann.on-rev.com/revletsdownload/typeInFieldAndInsertShortCut.rev.zip
 
 regards
 Bernd
___
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: A problem with clearing fields on marked cards

2010-06-06 Thread Scott Morrow
 I think you just need to specify the card that the target field is on:

 if the short name of field u of marked card y CONTAINS field then put empty 
into field u of marked card y

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-360-734-4701
--





On Jun 6, 2010, at 7:55 PM, charles61 wrote:

 
 I have the following script to clear fields on marked cards:
 
 on mouseUp
   repeat with y = 1 to the number of marked cards
  repeat with u = 1 to the number of fields of marked card y 
 if the short name of field u CONTAINS field then put empty into
 field u
  end repeat 
   end repeat 
 end mouseUp
 
 The script clears the empty fields on the marked card that has the Clear
 button but it will not clear the fields on the next marked card. This sample
 stack consists of two cards. This is weird! I am using Rev Enterprise 4.0.
 Any suggestions?
 -- 
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/A-problem-with-clearing-fields-on-marked-cards-tp2245427p2245427.html
 Sent from the Revolution - User mailing list archive at Nabble.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: Writing to the resource fork

2010-05-28 Thread Scott Morrow
Hello Mark,

I use setResource in an application (in several places) and it seems to work.  
I can't see an error in the script you posted.  (I haven't ever used the 
flaglist feature, though.)

Might giving the OS a short breather between creating the file and setting 
the resource, help?


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-360-734-4701
--





On May 27, 2010, at 3:25 PM, Mark Schonewille wrote:

 Hi,
 
 For a new project, it is essential that I can read from and write to the 
 resource fork of a file. I am not looking for a way to copy resource forks.
 
 I am trying to use the setResource function, but it doesn't work. I tried it 
 with Rev 4.0 on Mac OS X 10.5 and Rev 2.6.1 on Mac OS 9.2.2. With both 
 systems, I get the same result: the resource is created (including ID, name 
 and flags, but the data are not written to it.
 
 On Mac OS X, contrary to what the documentation claims, the file isn't 
 created automatically, if the file doesn't exist yet. Therefore, I create the 
 file before writing the resource fork.
 
 Does anyone have a clue about what might be wrong with the following two 
 lines?
 
 put empty into url binfile:~/desktop/resource test.dat
 get setresource(/Users/Mark/desktop/resource 
 test.dat,MARK,999,Test,U,Hello World)
 
 Althought the serResource function doesn't work correctly for me, the 
 getResource and getResources functions work fine on both systems.
 
 I tried to find a solution in the archives, but it looks like this function 
 is rarely used. I need it though.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 
 Economy-x-Talk is always looking for new projects. Contact me for a quote 
 http://economy-x-talk.com/contact.html
 Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the 
 clipboard of your computer over the local network.
 
 ___
 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: Finding USB volumes on Win

2010-03-24 Thread Scott Morrow
Richard,

Thanks for sharing this work!  When testing it in OSX I needed to add a line:

 replace %20 with space in tMountPoint

   before the line

 set the directory to tMountPoint


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com



On Mar 23, 2010, at 6:13 AM, Richard Gaskin wrote:

 Kay C Lan wrote:
 
 On Mon, Mar 22, 2010 at 10:05 PM, Richard Gaskin wrote:
 In January with the help of Phil, Peter, and others I got some great tips
 for identifying removable drives on OS X and Linux.  But I'm having
 difficulty figuring out how to do the same in Windows.
 
 Richard,
 
 back then you wrote:
 
 In the meantime, it looks like I have some parsing to do and some homework
 to figure out the details of getting this info for Win Vista, Win 7, and
 Linux.  I'll post the result here once I get it working.
 
 I'm hoping that offer still applies?
 
 Absolutely.  This has been a group effort, with valuable input from Ken Ray, 
 Phil Davis, Peter Alcibiades, Matthias Rebbe, and others, so the least I can 
 do is share the fruit of our collective labor.
 
 Below is a handler that handles Mac and Win, with a placeholder for Linux but 
 I don't need that yet so I'll write it in a few weeks when I get to it.
 
 It examines the currently-mounted volumes and returns a list of those volumes 
 which are removable, using AppleScript for the Mac side and data from the Win 
 registry for Windows.
 
 Each line of the return value has three items separated by tabs:
 
 - Drive label/letter (I use this to display in a list)
 - available space (useful for my installer)
 - mount point or drive letter (needed for writing to the drive)
 
 I have four different removable drives I've been testing with (card reader, 
 U3, plain USB flash drive, and camera), and the AppleScript method that was 
 suggested here was the only one which easily recognized my card reader along 
 with all the other more normal drives; relying on info from system_profiler 
 alone did not provide the mount point, needed to write files to the drive.
 
 Note that U3 drives show up as two volumes, one writable and one not. The 
 non-writable volume of a U3 drive has zero available space, and that's used 
 to exclude them from the list without having to slow things down by 
 attempting writes to each disk to test that (though also do that on the 
 selected volume later on in a different handler just to make sure before 
 proceeding with the install).
 
 This is a bit sloppy in some parts since it's a small part of a larger 
 project in which there's a LOT of work do to, but it seems to get the job 
 done well enough for now (you may need to clean up email-imposed line wraps):
 
 
 
 function RemovableDrives
  -- Returns a tab-delimited list of drives which are removable
  -- and have a file system usable by the current OS
  -- in which each line is:
  -- Drive name/letter tab free space tab mountpoint/drive letter
  --
  put the volumes into tVols
  put empty into tRemVols
  put the directory into tSaveDir
  switch the platform
  case MacOS
repeat for each line tVol in tVols
  put tell application quoteFinderquotecr\
  properties of disk quote tVol quote cr\
  end tell into tAS
  do tAS as applescript
  put the result into tInfo
  if (, ejectable:true, is in tInfo) \
  AND (, free space:0,  is not in tInfo) then
put offset(, URL:quotefile://, tInfo) into tOS
delete char 1 to (tOS+13) of tInfo
set the itemdel to /
delete item 1 of tInfo
put /word 1 of tInfo into tMountPoint
delete char -3 to -1 of tMountPoint
set the directory to tMountPoint
if the result is not empty then next repeat
put the diskspace into tSpace
put tVol tab tSpace tab  tMountPoint cr after tRemVols
  end if
end repeat
break
  case Win32
set cursor to watch
put the hideConsoleWindows into tSaveHCW
set the hideConsoleWindows to true
-- Hex for \??\STORAGE#RemovableMedia#:
put 
 5C003F003F005C00530054004F0052004100470045002300520065006D006F00760061006200\
6C0065004D00650064006900610023 into tRemovableIdentifier
repeat for each line tVol in tVols
  if tVol is in A:B:C: then next repeat -- two floppies and the main HD
  put reg query HKLM\SYSTEM\MountedDevices /v \DosDevices\ tVol into 
 tCmd
  put shell(tCmd) into tmp
  if tRemovableIdentifier is in line -2 of tmp then
set the directory to tVol
if the result is empty then
  put Removable Disk (tVol) tab the diskspace  tab tVol cr 
 after tRemVols
end if
  end if
end repeat
set the directory to tSaveDir
set the hideConsoleWindows to tSaveHCW
break
  case Linux
-- add here -- http://linux.die.net/man/8/blkid -- thanks Peter!
 
break
  end switch
  --
  delete last char of tRemVols -- trailing CR
  return

Re: missing fields in Application Browser

2010-03-08 Thread Scott Morrow
Thank you, Sarah.  I didn't know that.  Unfortunately in this case it didn't 
solve the problem.  Time to rebuild, I guess.

-Scott

On Mar 7, 2010, at 9:02 PM, Sarah Reichelt wrote:

 On Mon, Mar 8, 2010 at 2:49 PM, Scott Morrow
 sc...@elementarysoftware.com wrote:
 Recently, in one of my projects, the Application Browser stopped showing 
 fields that were in a group. Furthermore, the fields in this group no longer 
 allow text to be hilited. (The text can still be edited, but not something 
 that is really usable.) The fields are obviously still there and running 
 put the num of flds of this cd into the message box returns 18 Yet only 
 one field shows in the Application browser.  The field that does show is not 
 in a group.  I've tried trashing the preferences file and reinstalling rev.  
 I was hoping not to deconstruct and rebuild the groups.  Has anyone else run 
 across this? Thoughts?
 Rev 4.0 Enterprise
 
 Check the settings for the group in the Inspector. rev 4.0 introduced
 a new group property called selectGroupedControls. If this is set to
 true (or checked in the Inspector), then the individual members of the
 group will not be listed in the Application Browser.
 
 This doesn't explain why you can't hilite any text in the fields, but
 check the group settings and see if anything there fixes that too.
 
 HTH,
 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: missing fields in Application Browser

2010-03-08 Thread Scott Morrow
Hello Martin,  I did check that, thanks.  I'm suspicious that it may have 
something to do with the selectGroupedControls property that Sarah mentioned.  
Changing this setting for these groups has no effect at this point and they 
behave as if the property is stuck as true.
-Scott

On Mar 8, 2010, at 1:59 AM, Martin Blackman wrote:

 Could it be the autohilite property?
 
 On 3/8/10, Scott Morrow sc...@elementarysoftware.com wrote:
 Recently, in one of my projects, the Application Browser stopped showing
 fields that were in a group. Furthermore, the fields in this group no longer
 allow text to be hilited. (The text can still be edited, but not something
 that is really usable.) The fields are obviously still there and running
 put the num of flds of this cd into the message box returns 18 Yet only
 one field shows in the Application browser.  The field that does show is not
 in a group.  I've tried trashing the preferences file and reinstalling rev.
 I was hoping not to deconstruct and rebuild the groups.  Has anyone else run
 across this? Thoughts?
 Rev 4.0 Enterprise
 
 Scott Morrow
 
 Elementary Software
 (Now with 20% less chalk dust!)
 web   http://elementarysoftware.com/
 email sc...@elementarysoftware.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


missing fields in Application Browser

2010-03-07 Thread Scott Morrow
Recently, in one of my projects, the Application Browser stopped showing fields 
that were in a group. Furthermore, the fields in this group no longer allow 
text to be hilited. (The text can still be edited, but not something that is 
really usable.) The fields are obviously still there and running put the num 
of flds of this cd into the message box returns 18 Yet only one field shows 
in the Application browser.  The field that does show is not in a group.  I've 
tried trashing the preferences file and reinstalling rev.  I was hoping not to 
deconstruct and rebuild the groups.  Has anyone else run across this? Thoughts?
Rev 4.0 Enterprise

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Scott Morrow
I think this might be very effective at locking people out...  
including the developer. The process of observing the password could  
change it.


On Mar 4, 2010, at 11:17 AM, Andre Garzia wrote:

I was going to make my software refuse to run 15% of the time due to  
bad

licensing and then catch some smart hackers just due to statistic
misfortune.

I was going to call the system the Schrodingers Quantum Copy  
Protection

Lock System patent it and win billions from holywood and RIAA!

--
http://www.andregarzia.com All We Do Is Code.
___
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: File Associations?

2010-03-03 Thread Scott Morrow
Hello Scott,
Sorry to clutter things with another post but there was one thing I forgot to 
include:  the actual content of the variables.  Sometimes the exact form of a 
string is what trips me up so perhaps this will be helpful.  I walked through 
the debugger as this section of code was running and copied out the contents of 
each variable.  (disclaimer: actually I *retyped* what I saw in the debugger 
window... there is probably a way to copy/paste but I couldn't recall it.)
-Scott Morrow

tProgramFilesFolderPath --C:/Program Files/Report Card Pro
tAppFolder -- C:/Program Files/Report Card Pro
tAppName --  Report Card Pro.exe
tAppExecutablePath --C:\Program Files\Report Card Pro\Report Card 
Pro.exe
tDocFileExtension --.rcp
tAppDocAssoc --  Report Card Pro document
tDefaultIconString -- C:\Program Files\Report Card Pro\Report 
Card Pro.exe,1
tSubKeyDblClickDocString -- C:\Program Files\Report Card Pro\Report Card 
Pro.exe %1


--
local lErrorLog

on SetWindowsRegistry
  put empty into lErrorLog

  put Setting the registry into fld progressInfo of cd install of stack 
elsoInstaller
  wait 1 sec
  set the customPropertySet of stack elsoInstaller to empty
  set the customPropertySet of stack elsoInstallerLib to empty
  -- tProgramFilesFolderPath  -- the path to the Programs folder --  
C:/Program Files 
  put fld installPath of cd destination of stack elsoInstaller into 
tProgramFilesFolderPath
  -- tAppFolder -- the name of OUR folder that contains the application we are 
installing --  Report Card Pro 

  set the itemDel to /
  put item -1 of tProgramFilesFolderPath into tAppFolder
  -- put the uEnclosingFolderName of stack elsoInstaller into tAppFolder -- 
the user has control over this part of the path

  -- tAppName -- the name of the executable application we are installing --  
Report Card Pro 
  put the uAppName of stack elsoInstaller into tAppName
  -- tAppExecutablePath -- the fileName (Full Path) of the .exe
  put tProgramFilesFolderPath / tAppName into tAppExecutablePath
  -- save the full path in case we need to launch the app just before quiting 
this installer
  set the uLaunchPath  of stack elsoInstaller to tAppExecutablePath 
  replace / with \ in tAppExecutablePath
  -- tDocExtension -- the dot extension that is associated with the 
application we are installing --  .rcp 
  put the uFileExtention of stack elsoInstaller into tDocExtension
  if tDocExtension is empty then
 put Ther was an error attempting to set the Registry because file 
extension information was missing cr after lErrorLog
 return file extension missing
 exit SetWindowsRegistry
  end if


  --
  -- Set the Windows Registry if necessary 
  --
  -- Check to make sure the Windows Registry is set to associate the .rcp file 
extension with ReportCard_Pro
  if queryRegistry(HKEY_CLASSES_ROOT\tDocExtension\)  tAppFolder then 
-- there is no Registry key for the file extension
 -- so let's set it up
 --1. Create a key in HKEY_CLASSES_ROOT for the extension, and use the 
default value to point to the name of the application
 -- get setRegistry(HKEY_CLASSES_ROOT\.tst\,TestApp)
 get setRegistry(HKEY_CLASSES_ROOT\tDocExtension\,tAppFolder)
 put the result into tResult
 if tResult is not empty then
put setRegistry error 1  tResult cr after lErrorLog -- Custom 
error reporting
return tResult
 end if

 if lErrorLog is empty then
--2. Create a key in HKCR for the application itself, using the default 
value to point to a descriptor of the kind of document used by the app 
-- this will be used in list views to show the kind of file a document 
of TestApp is:
-- get setRegistry(HKEY_CLASSES_ROOT\TestApp\,TestApp document)
put tAppFolder  document into tAppDocAssoc
get setRegistry(HKEY_CLASSES_ROOT\tAppFolder\,tAppDocAssoc)
put the result into tResult
if tResult is not empty then
   put setRegistry error 2  tResult cr after lErrorLog -- Custom 
error reporting
   return tResult
end if
 end if -- lErrorLog is empty

 if lErrorLog is empty then
--3. Create a subkey of HKCR\TestApp to hold the default icon for the 
application. Rev document icons are in the first position
-- get setRegistry(HKEY_CLASSES_ROOT\TestApp\DefaultIcon\,C:\Program 
Files\TestApp\TestApp.exe,1)
put tAppExecutablePath  COMMA  1 into tDefaultIconString
get 
setRegistry(HKEY_CLASSES_ROOT\tAppFolder\DefaultIcon\,tDefaultIconString)
put the result into tResult
if tResult is not empty then
   put

Re: File Associations?

2010-03-03 Thread Scott Morrow

Hello Scott,
The relaunch handler (in the stack script of the executable) should  
still be in the message path even if you close the stack... unless I  
misunderstand the design, the executable that stack is attached to  
would still be in memory and running.

-Scott Morrow
Is it possible that the relaunch message is failing for me because  
I'm using a splash/data arrangement for my standalone? My splash  
executable launches a data stack and then closes the launching  
stack. Could this be why any subsequent launches of the EXE don't  
trigger the relaunch handler?



Regards, Scott Rossi
Creative Director Tactile Media, UX Design

___
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: File Associations?

2010-03-02 Thread Scott Morrow

Are you trying to set the registry under Vista without administrative 
privileges? (If UAC is enabled, and it is by default, then even if you are the 
primary admin user of the system you won't have sufficient privileges to set 
the registry.  If you are testing this from the IDE, before launching, right 
click Rev and choose to Run as administrator)  

If this isn't the trouble then I would be happy to send you code that I'm using 
in an application, though I struggled with Ken's directions (I think his 
directions are fine and I was glad to have the advice but my previous 
experience with the subject was nil) and still have no great understanding 
myself.

For documents launching multiple instances see  relaunch   in the dictionary 
where there is a note to look at an example stack.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com

--


On Mar 2, 2010, at 8:43 PM, Scott Rossi wrote:

 I'm still trying to get Windows file associations on Vista worked out over
 here and am looking for suggestions.
 
 I've set up registry entries based on Ken Ray's tips:
 http://tinyurl.com/yfmdsht and everything appears to in place.  But
 documents created by my app continue to show up as generic icons.
 Double-clicking them brings up the What program do you want to use to
 open...? dialog and my app is listed there, but I can't get Vista to
 properly display the document icon contained in the standalone.
 
 Also, I don't understand how to implement the following so that
 double-clicked documents open my app:
 
 on openStack
  put $0 into theAppPath
  put $1 into theDocToOpen
  -- stuff here to launch the doc in my app?
 end openStack
 
 Currently double-clicking my documents launches multiple instances of my
 app.  I'm using a splash/data stack app setup, and I've tried to pass the
 doc name to an Open File menu routine.  Does the above need to go in the
 splash standalone, or can it go in card script of my data stack?  Am I right
 in passing the doc name to my Open File handler?  Do I need to do something
 else?
 
 Thanks for any advice...
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 
 ___
 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: File Associations?

2010-03-02 Thread Scott Morrow
Hello Scott

This post has the scripting I use for Relaunch so that multiple instance of 
the app won't launch.  I'm using it with a Splash-screen design as well. There 
are 2 script blocks, the first of which has to go at the stack level.  The pile 
of comments indicates how insecure I was with the code.  Below the Relaunch 
script is additional code I placed at the card level of the Splash-screen stack 
(I'm not sure it needs to be there)  I'll post again about registry.

- Scott Morrow

-- --  In the main stack script of the Splash-screen (executable) and in fact 
can't be placed at the card level.


 Begin Relaunch Block -

-- -- If the applications mainstack (not sent to the card) has a 'relaunch' 
handler, then Revolution will treat
-- -- it as a 'single-instance' application. This means that if a second 
instance is launched
-- -- the original instance will be sent a 'relaunch' message before the new 
instance starts up.
on relaunch
   --   -- The parameters for relaunch are the command-line arguments passed 
when invoking the
   --   -- new instance. Revolution does the same processing of these as it 
does for the $n
   --   -- global variables. i.e.
   --   --   1 )  It splits the command-line up into Words
   --   --   2 )  Removes quotes bracketing any quoted argument
   --   --   3 )  Replaces '\' with '/'
   --
   put empty into tParamList
   repeat with tIndex = 1 to the paramCount
  -- get Log( param(  tIndex  ) =   param(tIndex))
  put param(tIndex) CR after tParamList
   end repeat
   put token 1 to -1 of tParamList into tParamList
  
   -- -- Passing the relaunch message will cause the new instance to continue 
to load.
   --   if the hilite of btn Pass Relaunch then
   --  get Log(Passing Relaunch)
   --  pass relaunch
   --   end if
   
   -- -- Returning background will cause the existing instance to remain in the 
background
   -- -- and the new instance to quit.
   --   if the hilite of btn Remain in Background then
   --  get Log(Relaunch and Remaining in background)
   --  return background
   --   end if
   --   get Log(Relaunch Processed)
   
   --   -- Try to keep processing in the relaunch handler to a minimum as the 
new instance
   --   -- waits for a reply. In particular, you must not open any windows 
(especially modal
   --   -- dialogs) as this will cause an automatic pass.
   --   -- Therefore, it is best to do the main part of the processing after 
relaunch has
   --   -- sent back its acknowledgement. To do this we send a message to be 
executed as soon as
   --   -- the current handler stack resolves.
   
   -- send processRelaunch param(1) to me in 0 millisecs
   send processRelaunch   tParamList to cd 1 of me in 0 millisecs
   
   --   -- Returning empty will cause the existing instance to be brought to 
the front, and
   --   -- the new instance to quit.
   
   return empty
end relaunch

-- As described above, it is best to do all the processing of the relaunch 
*after*
-- the relaunch message has been acknowledged.
-- Here we just open an open-file dialog with the path passed to the 
command-line.
--
-- Note that when a modal dialog is being displayed, you can still receive the 
'relaunch'
-- message. However, using messages as we have here will result in them being
-- automatically queued.


 End Relaunch Block ---



-- --  Card Level of the Splash-screen stack

-- this handler recieves a list of files that caught by the Relaunch handler 
in the stack script
-- multiple instances of this Splash executable were not allowed to launch
-- and the file paths were passed along to the currently running instance of 
the Splash executable
-- were we can open them
-- this handler is nearly the same as the esOpenAppleEventDoc handler
on processRelaunch tFilesPathsToOpen   
 if tFilesPathsToOpen  empty then -- there was a relaunch message handled 
by the stack script

 repeat for each line tNewDataPath in tFilesPathsToOpen -- could be 
multiple files
VerifyClassFile tNewDataPath -- Mr. Rossi can ignore this line, I'm 
just verifying a file before trying to open it
send PreOpenStack to stack tNewDataPath
 end repeat

   end if
end processRelaunch
On Mar 2, 2010, at 10:48 PM, Scott Rossi wrote:

 Recently, I wrote:
 
 For documents launching multiple instances see  relaunch   in the
 dictionary 
 where there is a note to look at an example stack.
 
 In my stack, the relaunch message is apparently not being called for some
 reason.  I've tried placing it in the stack script and in a stack script
 behavior, and still nothing is happening.  Still trying to figure out what's
 going

Re: File Associations?

2010-03-02 Thread Scott Morrow
Hello Scott,

I'm not using Inno Installer but a custom installer application made with Rev.  
Before trying to set the registry my installer has elevated itself to have 
administrative privileges (by adjusting the manifest with Resource Tuner as 
described by Trevor DeVore)

I believe this is all the pertinent code from my installer application and I'm 
sure you will recognize Ken's instructional outline as the foundation.  I've 
left in some code specific to my app and referenced custom properties that you 
would need to substitute your own data in for.

Hopefully this will shed a light of Ray.  (pun intended)

-Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com


--
local lErrorLog

on SetWindowsRegistry
   put empty into lErrorLog
  
   put Setting the registry into fld progressInfo of cd install of stack 
elsoInstaller
   wait 1 sec
   set the customPropertySet of stack elsoInstaller to empty
   set the customPropertySet of stack elsoInstallerLib to empty
   -- tProgramFilesFolderPath  -- the path to the Programs folder --  
C:/Program Files 
   put fld installPath of cd destination of stack elsoInstaller into 
tProgramFilesFolderPath
   -- tAppFolder -- the name of OUR folder that contains the application we 
are installing --  Report Card Pro 
   
   set the itemDel to /
   put item -1 of tProgramFilesFolderPath into tAppFolder
   -- put the uEnclosingFolderName of stack elsoInstaller into tAppFolder -- 
the user has control over this part of the path
   
   -- tAppName -- the name of the executable application we are installing -- 
 Report Card Pro 
   put the uAppName of stack elsoInstaller into tAppName
   -- tAppExecutablePath -- the fileName (Full Path) of the .exe
   put tProgramFilesFolderPath / tAppName into tAppExecutablePath
   -- save the full path in case we need to launch the app just before quiting 
this installer
   set the uLaunchPath  of stack elsoInstaller to tAppExecutablePath 
   replace / with \ in tAppExecutablePath
   -- tDocExtension -- the dot extension that is associated with the 
application we are installing --  .rcp 
   put the uFileExtention of stack elsoInstaller into tDocExtension
   if tDocExtension is empty then
  put Ther was an error attempting to set the Registry because file 
extension information was missing cr after lErrorLog
  return file extension missing
  exit SetWindowsRegistry
   end if
   
   
   --
   -- Set the Windows Registry if necessary 
   --
   -- Check to make sure the Windows Registry is set to associate the .rcp file 
extension with ReportCard_Pro
   if queryRegistry(HKEY_CLASSES_ROOT\tDocExtension\)  tAppFolder then 
-- there is no Registry key for the file extension
  -- so let's set it up
  --1. Create a key in HKEY_CLASSES_ROOT for the extension, and use the 
default value to point to the name of the application
  -- get setRegistry(HKEY_CLASSES_ROOT\.tst\,TestApp)
  get setRegistry(HKEY_CLASSES_ROOT\tDocExtension\,tAppFolder)
  put the result into tResult
  if tResult is not empty then
 put setRegistry error 1  tResult cr after lErrorLog -- Custom 
error reporting
 return tResult
  end if
  
  if lErrorLog is empty then
 --2. Create a key in HKCR for the application itself, using the 
default value to point to a descriptor of the kind of document used by the app 
 -- this will be used in list views to show the kind of file a document 
of TestApp is:
 -- get setRegistry(HKEY_CLASSES_ROOT\TestApp\,TestApp document)
 put tAppFolder  document into tAppDocAssoc
 get setRegistry(HKEY_CLASSES_ROOT\tAppFolder\,tAppDocAssoc)
 put the result into tResult
 if tResult is not empty then
put setRegistry error 2  tResult cr after lErrorLog -- Custom 
error reporting
return tResult
 end if
  end if -- lErrorLog is empty
  
  if lErrorLog is empty then
 --3. Create a subkey of HKCR\TestApp to hold the default icon for the 
application. Rev document icons are in the first position
 -- get 
setRegistry(HKEY_CLASSES_ROOT\TestApp\DefaultIcon\,C:\Program 
Files\TestApp\TestApp.exe,1)
 put tAppExecutablePath  COMMA  1 into tDefaultIconString
 get 
setRegistry(HKEY_CLASSES_ROOT\tAppFolder\DefaultIcon\,tDefaultIconString)
 put the result into tResult
 if tResult is not empty then
put setRegistry error 3  tResult cr after lErrorLog -- Custom 
error reporting
return tResult
 end if
  end if -- lErrorLog is empty
  
  if lErrorLog is empty then
 --4. Create

Re: Finding the name of a USB volume

2010-01-07 Thread Scott Morrow
Very nice.  Thanks, Phil!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--


On Jan 6, 2010, at 6:46 PM, Phil Davis wrote:

 Here is an simplified 'system_profiler' output approach. It returns one 
 tab-delimited line of info per detachable USB storage device, with all the 
 data items known to system_profiler for each device. NOTE: It expects 
 system_profiler output to be in English.
 
 
 function macUsbDrives
   -- get USB device info from system profiler
   put shell(system_profiler -detailLevel full SPUSBDataType) into tData
 
   -- convert data to one line per USB device
   replace (colon  cr  cr) with numToChar(245) in tData -- device name
   replace (cr  cr) with numtoChar(250) in tData
   replace cr with tab in tData
   replace numtoChar(245) with (colon  tab) in tData
   replace numtoChar(250) with cr in tData
 
   -- remove records for all but USB drives (English data only)
   filter tData with *Detachable Drive: Yes*
 
   -- remove space-padding from items in each line
   set the itemDel to tab
   repeat for each line tLine in tData
  repeat for each item tItem in tLine
 put word 1 to -1 of tItem  tab after tNewData
  end repeat
  put cr into last char of tNewData
   end repeat
   delete last char of tNewData
 
   -- return the data
   return tNewData
 end macUsbDrives
 
 HTH -
 Phil Davis
 
 
 
 On 1/6/10 5:50 PM, Phil Davis wrote:
 On 1/6/10 3:31 PM, Richard Gaskin wrote:
 tsj wrote:
 Richard - I haven't got an unnamed USB drive handy to test this with but
 what does the volumes function return when one is mounted? Does this give
 you the expected untitled (or untitled 1 etc)?
 
 If so, you could iterate through the listed volumes using a couple of
 applescripts to determine whether the drive was local (false if it's a
 network drive) ejectable (false if it's internal) and then if you get two
 false results you can attempt to open a file on the volume. If that gives
 you an error then the drive is write protected. If it passes all tests then
 you're left (presumably) with an external USB or Firewire drive.
 
 The passes all tests list can also includes mounted .dmg files.
 
 Thanks for posting this - very helpful.
 
 -- 
 Phil Davis
 
 PDS Labs
 Professional Software Development
 http://pdslabs.net
 
 ___
 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: 65535 limit?

2010-01-05 Thread Scott Morrow
Hello Fred,

I don't have a solution for you but I ran into something once that sounds 
similar... I dug around and found a comment in one of my scripts: 

 The vScroll of groups is limited at the engine level to 32780

I'm not sure where I got this information or if it is still (or ever) valid.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--




On Jan 5, 2010, at 11:22 AM, Fred Moyer wrote:

 The Stack Inspector states that the default maximum width of a stack is 
 65535. However, on my Mac I can't set the width of a stack to greater than 
 32767 pixels (half of 65534.) Similarly, on page 49 of the User's guide, the 
 Maximum size of an object is given as Unlimited. But I can't set the 
 width of an object to greater than 32767.
 
 What is bizarre is that I can make a control 65534 pixels wide by making the 
 rect of the control (for example) -32767, 10, 32767,100. However, if I try to 
 make the rect of the stack -32767, 10, 32767,100 Revolution crashes or 
 resizes to a seemingly random rect.
 
 Are these stated limits actually incorrect or am I misunderstanding 
 something? Does it work correctly in Windows (maybe this is a Mac problem)? 
 Does anyone know a workaround to that 32767 limit? And out of curiosity, what 
 is the significance of that number? Will it soon/ever change?
 
 I am designing a stack that consists of a single normal-sized card that 
 contains a normal-sized group whose lockloc is set to true. The group 
 contains many images placed side-by-side next to one another. One can scroll 
 to any picture almost instantly by using the group's HScrollbar. This stack 
 is great but sometimes there are so many images in the group that the 
 formattedwidth of the group is greater than 32768 -- or would be, but I can't 
 get to that point while setting up the stack. All kinds of strange things 
 happen. Incidentally 65535 would be wide enough to accommodate my needs, so 
 if Revolution simply worked as stated, it would be fine. Any ideas/comments?
 
 Thanks.
 
 Fred
 ___
 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: Scaling Groups?

2009-12-10 Thread Scott Morrow
Hello Scott,

Thanks for posting your script.  I just tried it on a small collection of 
controls and images and it worked well.  Much appreciated.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--




On Dec 10, 2009, at 9:00 PM, Scott Rossi wrote:

 Thanks to all who replied about my scaling groups question.
 As it turns out, I was able to come up with a solution in about a tenth of
 the time
 I thought it would take (and I was dreading it).
 
 The biggest issue for me is Rev’s reliance on integers for object
 positioning --
 this is a serious limitation when it comes to scaling because object
 dimensions can get heavily distorted when the objects are repeatedly scaled.
 I needed a way to keep object dimensions from getting too messed up if the
 user wants
 to size a group up and down repeatedly.  The only way I know how to do this
 is to store the original dimensions and refer to those whenever an object is
 scaled.
 The following code does this, called from a scrollbar whose start/end values
 are 50 and 200 (equates to 50% and 200%).  Objects are initialized with
 their
 “starting” specs, and since those specs are always used in the code, scaling
 is as
 distortion-free as possible:
 
 on scrollbarDrag pValue
   scaleGroup long id of grp “my great group”,pValue
 end scrollbarDrag
 
 on scaleGroup pGroup,pValue
   initObjSpecs pGroup
   put pValue/100 into tPercent
   put loc of pGroup into masterLoc
   lock screen
   set width of pGroup to the uDefaultWidth of pGroup * tPercent
   set height of pGroup to the uDefaultHeight of pGroup * tPercent
   set loc of pGroup to masterLoc
   repeat with N = 1 to number of controls of pGroup
  put long id of control N of pGroup into tObj
  set width of tObj to (item 1 of the uOrigDimensions of tObj *
 tPercent)
  set height of tObj to (item 2 of the uOrigDimensions of tObj *
 tPercent)
  put item 1 of masterLoc - (item 1 of the uOrigOffset of tObj *
 tPercent) into X
  put item 2 of masterLoc - (item 2 of the uOrigOffset of tObj *
 tPercent) into Y
  set loc of tObj to X,Y
   end repeat
   set loc of pGroup to masterLoc
   unlock screen
 end scaleGroup
 
 on initObjSpecs pGroup
   put loc of pGroup into masterLoc
   if the uDefaultWidth of pGroup =  then set the uDefaultWidth of pGroup
 to width of pGroup
   if the uDefaultHeight of pGroup =  then set the uDefaultHeight of
 pGroup to height of pGroup
   put the number of controls of pGroup into objCount
   repeat with N = 1 to objCount
  put long id of control N of pGroup into tObj
  if the uOrigOffset of tObj   and the uOrigDimensions of tObj  
 then next repeat
  put loc of tObj into objLoc
  set the uOrigOffset of tObj to item 1 of masterLoc - item 1 of
 objLoc,item 2 of masterLoc - item 2 of objLoc
  set the uOrigDimensions of tObj to width of tObj,height of tObj
   end repeat
 end initObjSpecs
 
 
 Maybe other folks will find this useful.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, Multimedia  Design
 
 ___
 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: Where to store data under Windows

2009-11-07 Thread Scott Morrow

Hello Richard,

I often try writing a little text file to the location that they pick  
(and then delete it if successful.)  If I can't create/write the text  
file then I know that they probably don't have sufficient permission  
and that I'm not going to be able to write anything else.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--





On Nov 7, 2009, at 1:22 PM, Richard Miller wrote:


Hi Shao,

Yes... this is what I was planning. But exactly which are the no- 
no folders under Vista and Windows 7? Are there any such folders on  
any drive other than C?


Thanks.
Richard


Shao Sean wrote:
Have it default somewhere (like the My Documents folder) and give  
the user an option (preference) to move it to where they see fit..  
Check if the user picks one of the no-no folders and inform them  
about the issues if they are not admin..

___
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: Difference between XP and Vista/7?

2009-11-02 Thread Scott Morrow

Hello Lars,

Nothing new here, just another way of phrasing it. The previous posts  
have pointed out the importance of putting your writable files outside  
of the Programs folder and into a folder that the user has permission  
to write to.  Under XP many (though not all) users and applications  
had permission to write to the Programs folder but under Vista the  
default setting is that they can't.


On the Mac it is actually quite similar.  While many home users DO  
have permission to write to the Applications folder, this is not  
always the case.  Under managed user accounts (very common in business  
or education settings where IT manages the machines) the primary user  
may NOT be the administrator and so may not have write privileges to  
the Applications folder.  One approach is to have the Splash.app  
start by making sure that there is a copy of the writable files in the  
user's   Library/Application Support  folder.  If the files aren't  
there, it copies these files out of the Applications folder and into  
the user's writable directory before loading them.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--




On Nov 1, 2009, at 1:02 PM, Lars Brehmer wrote:


Thanks Shao  Tiemo for the replies!

I guess I didn't make myself very clear, or I don't completely  
understand your suggestions, which is of course very likely, as I am  
one of those weird Mac-based Rev users who only understand Macs and  
Rev and not much else, and certainly nothing about Windows.


In the Rev IDE I have a stack - let's call it splashScreen that  
becomes the standalone application. There are also stacks myData,  
theApp, appGraphics and a couple of others. When I set the  
standalone application settings for the stack splashScreen, in the  
stacks pane I then add the stacks myData, theApp and  
appGraphics and the others. This gives me a standalone with  
the .exe and the added stacks in the program folder (Windows) or the  
application  Package  Contents  MacOS  (OSX). All very basic.  
When the application opens, it opens the added stacks, which in my  
simple understanding ARE the program, that is, what the user  
actually uses. The splash screen app is just a construction to allow  
changes to the actual program stacks. I learned this 5 years ago  
from this very list and have been doing it this way ever since.  
There are hundreds of posts in the rev digest suggesting this -  
changes in a standalone application cannot be saved so make a splash  
screen the actual application and include the other stacks that  
might need to accept changes. So just now I found out the when I run  
the application splashScreen in Vista / 7 and want to do this;


set the whatEver of stack myData to true
save stack myData

it isn't saved. But it isn't saved only when the application is  
installed via the installer I made with Inno. If the program folder  
is just sitting on the desktop, it does work as expected.


Shao Sean wrote:

While most systems are pretty relaxed about it, if the user trying  
to use your software does not  have privileges to modify the  
content of the directory your scheme stops working..



I have to say I don't understand this, but my natural question is  
how do you give the user such priveleges? Is it even possible?


further;

In Vista (and I am assuming Windows 7) there is the lovely virtual  
store which might be happening with your code seeing as it works  
when on the desktop but not installed in the Program Files  
directory.. Try saving your license stack to a safe folder  
(appdata) and see if that  works better for you..


I assume by license stack  you mean what I called myData. So how  
do I do this? How can I get that stack out of the program folder and  
into the Program Data folder? This question clearly shows how little  
I know and how dependent I am on the simplicity of RunRev - my  
standalones are 100% self contained - no databases, no writing to  
external files - just rev stacks and custom properties. Which al  
worked perfectly until Vista/7.


Tiemo wrote;

as Shao already pointed out, you may not write / update to the  
program dir,as far, as you haven't given full access for a normal  
user to your sub dir. The installer (inno) gets from vista once  
admin persmissions because of the name of the setup to allow him to  
write to the program dir. But your standalone may not.


again, how do I give that access to a user if it is at all possible?

The problem for people like me is that what worked in MacOS, OSX and  
every version of Windows throught XP sp3 suddenly doesn't work  
anymore. And no mention by RunRev that saving changes to stacks  
included in the standalone no longer works, at least no mention that  
I have ever seen. I have been reading this digest for 5 years now  
for the great tips and ideas, but I don't

Re: Launch another app from my standalone

2009-08-30 Thread Scott Morrow

Hello Adrian,

I've sort of re-written what Len suggested but without using a  
separate function or handler.  You can just put the whole thing in  
where you need it.  Eventually you may want to break out pieces of  
your code by using custom functions and commands but this should work.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--

put the filename of this stack into tFilePath --tFilePath contains the  
full path to the mainstack
put the itemDelimiter into tOldItemDelimiter -- remember what it was  
so we can set it back


set the itemDelimiter to slash -- /  this is the character that  
divides the path up for example-- C:/aFolder/anotherFolder/ 
aFileOrProgram


-- because / is now the itemDelimiter
-- aFileOrProgram would be the last item ( item -1 ) in tFilePath
-- on Windows, the path to the standalone,
-- or in the rev IDE the path to the stack file,
-- is the last item ( item -1 ) of tFilePath
-- the path to the folder enclosing the stack file or MyStandalone.exe
-- is the second to the last item of tFilePath second to the last is  
not rev code

-- we want to put the name of the application you want to launch
-- after the enclosing folder
-- However
-- on Mac OSX, if this code is being executed from a standalone  
application,

-- then the path to the folder enclosing the standalone is different
-- the fileName of this stack (tFilePath) will look something like:
--   /Macintosh HD/Applications/MyStandalone.app/Contents/MacOS/ 
MyStandalone

-- which makes the enclosing folder item -5 of tFilePath
-- so we will need to know which platform we are on
-- in order to determine what part of the path to use

if (the platform is MacOS) AND (the environment is not  
development) then  -- Mac Standalone

  put item 1 to -5 of tFilePath /  theAppName.app into tAppPath
else -- Windows or rev IDE
  put theAppName.exe into item -1 of tAppPath -- example-- put  
Photoshop.exe into item -1 of tFilePath

end if

-- in your code, replace theAppName.exe  or   theAppName.app
-- with the actual name of the program you want to open 
-- Keep it inside quotation marks


launch tAppPath

set the itemDelimiter to tOldItemDelimiter -- tidy up


---
-- here it is one more time without all the comments
-- watch line wraps in the email
---
put the filename of this stack into tFilePath
put the itemDelimiter into tOldItemDelimiter
set the itemDelimiter to slash
if (the platform is MacOS) AND (the environment is not  
development) then  -- Mac Standalone

 put item 1 to -5 of tFilePath /  theAppName.app into tAppPath
else -- Windows or rev IDE
 put theAppName.exe into item -1 of tAppPath -- example-- put  
Photoshop.exe into item -1 of tFilePath

end if
launch tAppPath
set the itemDelimiter to tOldItemDelimiter -- tidy up
___
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


long FieldName to owning stackName

2009-08-25 Thread Scott Morrow
I'm guessing that there is an elegant way of deriving the name of the  
owning stack when given the long name of a field.  Unfortunately my  
current strategy feels a chunking hack.  :  )  Ideas?


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: long FieldName to owning stackName

2009-08-25 Thread Scott Morrow

Mark, Mark and Jim... Thanks!
-Scott

On Aug 25, 2009, at 12:59 AM, Jim Ault wrote:


one way is to

get the long name of fld 1
replace / with cr in IT
get char 1 to -2 of line -1 of IT

Jim Ault
Las Vegas

On Aug 25, 2009, at 12:46 AM, Scott Morrow wrote:

I'm guessing that there is an elegant way of deriving the name of  
the owning stack when given the long name of a field.   
Unfortunately my current strategy feels a chunking hack.  :  )   
Ideas?


Scott Morrow

___
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: long FieldName to owning stackName

2009-08-25 Thread Scott Morrow

What about this variation?

if word -5 of the long name of control x is stack then
 put word -4 of the long name of control x into tStackName
 else -- the stack hasn't been saved yet
 put word -1 of the long name of control x into tStackName
end if


On Aug 25, 2009, at 2:27 AM, William Marriott wrote:


why not:

the last word of the long name of control x



Jim Ault wrote:

one way is to
get the long name of fld 1
replace / with cr in IT
get char 1 to -2 of line -1 of IT
Jim Ault
Las Vegas
On Aug 25, 2009, at 12:46 AM, Scott Morrow wrote:
I'm guessing that there is an elegant way of deriving the name of  
the owning stack when given the long name of a field.   
Unfortunately my current strategy feels a chunking hack.  :  )   
Ideas?


___
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: long FieldName to owning stackName

2009-08-25 Thread Scott Morrow

I don't consider using chunk expressions to be a hack in this case.


I love chunking it was just MY chunking that was a hack (as in a nasty  
hacking cough).


This piece of chunking is cool (as in Daddy-O) and just what I needed,  
too.

put word 1 to 2 of (char offset( stack  quote,x) to -1 of x)



-Scott



On Aug 25, 2009, at 2:51 AM, William Marriott wrote:

Well, it will always reference the mainstack of the control; by  
definition, substacks aren't separate files, so the *file* name will  
always be correct. Yes?


The issue with using owner is that technically you would have to  
recurse through an indeterminate number of owner levels, for groups  
nested within groups.


If you need the name of the substack, then you probably can't get  
away with a one-liner


put the long name of control n into x
put word 1 to 2 of (char offset( stack  quote,x) to -1 of x)

It really depends on what you specifically need and the usage, but  
in any event, I don't consider using chunk expressions to be a  
hack in this case.



Mark Schonewille wrote:

Not, because that might give you the wrong stack file.
On 25 aug 2009, at 11:27, William Marriott wrote:

why not:

the last word of the long name of control x


___
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


answer folder -- volumes

2009-08-13 Thread Scott Morrow
I'm trying to open the answer folder dialogue to display the mounted  
volumes.


This works:

answer folder  Where is the volume with /Volumes

Unfortunately the dialogue window shows each volume icon as an alias.   
While acceptable, I would prefer a view like the one that happens if  
the user's machine (still in the answer folder dialogue) is clicked in  
the sidebar, which then shows actual volume icons.  I'm unsure of the  
how to get this path because it doesn't register as a folder itself,  
only enabling the Choose button after a volume has been selected.   
Passing the label of the option menu at the top of the dialogue as  
the path didn't seem to work either:  )

rev 3.5
OSX 10.5.8

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: copy audioClip?

2009-08-09 Thread Scott Morrow

Hello Richard,
Try this
copy audioCLip coolsound.wav  of stack untitled 1 to stack  
Untitled 2


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--




On Aug 9, 2009, at 5:45 AM, Richard Gaskin wrote:


Richard Gaskin wrote:
I have an audioClip in an old stack for which I've lost the source  
file.  I'd like to use this clip in another stack.

Is there a way to copy audioClips from one stack to another?
It's been years since I've used them at all, my memory's getting  
rusty. :)


Nevermind - turned this up in the archives:
http://lists.runrev.com/pipermail/use-revolution/2006-June/083957.html 



Looks like the copy command does the trick.

--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: 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


___
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


empty is zero

2009-07-09 Thread Scott Morrow
I'm having trouble with a script where an empty parameter is evaluated  
as being zero.  I've only been using rev 3.5 a short while so maybe  
I've missed a setting or new feature?

In the message box all works as expected:

   put empty into tVariable
   put charToNum(tVariable) -- (empty)
   put isNumber(tVariable) -- false
   put tVariable is zero -- false


but in my script, when the parameter is empty I get:

on tHandler tParam -- where tParam is empty
   put charToNum(tParam) -- (empty)
   put isNumber(tParam) -- false
   put tParam is zero -- true
end tHandler

if I explicitly   put empty into tParaminside the script then  
all works as expected


I've not had a lot of sleep but hoped coffee and a maple bar might  
compensate.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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: empty is zero

2009-07-09 Thread Scott Morrow

Hello Mark,


If you check empty = 0, you'll get false


I DO get false in the message box  but in a handler where there is  
nothing being passed in the parameter I get the following (note that  
expressly putting empty into the parameter variable does give the  
expected result.)




if I call MyHandler with this inside a stack script:

on MyHandler tParam  -- where I didn't pass anything in tParam

  put isNumber(tParam) into tParamIsNumber
  put tParam = 0 into  tParamIsZero
  put (tParam is empty) into tParamIsEmpty

end MyHandler



it results in BOTH tParamIsZero = true   AND   tParamIsEmpty = true 
(it is empty and zero?)


also,  tParamIsNumber = false  ANDtParamIsZero  =  true(it is  
not a number but it is zero?)



If I add the line:put empty into tParam

on MyHandler tParam

  put empty into tParam
  put isNumber(tParam) into tParamIsNumber
  put tParam = 0 into  tParamIsZero
  put (tParam is empty) into tParamIsEmpty

end MyHandler

then ParamIsZero = false



Thanks for your help.

Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/

On Jul 9, 2009, at 1:56 PM, Mark Schonewille wrote:


Hi Scott,

If you check empty = 0, you'll get false, but if empty*1 = 0 will  
return true. AFAIK it has always been like this. I assume that  
tParam gets parsed when it is passed to a function or command  
handler. You can change the offending line of your script into: put  
tParam is zero and tParam is not empty


--
Best regards,

Mark Schonewille




On 9 jul 2009, at 22:18, Scott Morrow wrote:

I'm having trouble with a script where an empty parameter is  
evaluated as being zero.  I've only been using rev 3.5 a short  
while so maybe I've missed a setting or new feature?

In the message box all works as expected:

 put empty into tVariable
 put charToNum(tVariable) -- (empty)
 put isNumber(tVariable) -- false
 put tVariable is zero -- false


but in my script, when the parameter is empty I get:

on tHandler tParam -- where tParam is empty
 put charToNum(tParam) -- (empty)
 put isNumber(tParam) -- false
 put tParam is zero -- true
end tHandler

if I explicitly   put empty into tParaminside the script then  
all works as expected


I've not had a lot of sleep but hoped coffee and a maple bar might  
compensate.


Scott Morrow

___
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: empty is zero

2009-07-09 Thread Scott Morrow

Hello Jacque,

a variable sort of variable
it only equates to zero when you do a math calculation on it


Uh... I guess I knew that... I just wasn't seeing tVariable is zero   
(x=0) as a math calculation... but obviously it is


Thanks for straightening me out  :  )

Scott


On Jul 9, 2009, at 3:08 PM, J. Landman Gay wrote:


Scott Morrow wrote:

it results in BOTH tParamIsZero = true   AND   tParamIsEmpty =  
true(it is empty and zero?)


Right. Empty is a variable sort of variable... I believe it only  
equates to zero when you do a math calculation on it. Otherwise it  
isn't a number. This prevents math from failing when a parameter  
contains no value.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: empty is zero

2009-07-09 Thread Scott Morrow

Hello Mark and Jacque,

empty + 0 = 0 is true in the message box
empty = 0  is not true in the message box but the empty? parameter  
in a script does return true  (tParam = 0)


Rats, I'm obviously not getting something.  Maybe it's more coffee.

-Scott


On Jul 9, 2009, at 3:21 PM, Mark Schonewille wrote:


Hi Scott,

No, unless you're doing a calculation, because then it is parsed as  
a number. See Jacque's reply.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 21 June and haven't got a reply yet,  
please send me a reminder.







On 10 jul 2009, at 00:11, Scott Morrow wrote:


Hello Mark,

But shouldn't the isNumber function show it to be a number at that  
point?  I'm evaluating it as both empty, not a number and zero.


Thanks,

Scott



___
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: empty is zero

2009-07-09 Thread Scott Morrow

Hello Mark,

But shouldn't the isNumber function show it to be a number at that  
point?  I'm evaluating it as both empty, not a number and zero.


Thanks,

Scott


On Jul 9, 2009, at 3:05 PM, Mark Schonewille wrote:


Scott,

It looks like as soon as you pass a parameter, it gets parsed and  
hence gets a value of 0, similar to when you parse empty*1.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 21 June and haven't got a reply yet,  
please send me a reminder.







On 9 jul 2009, at 23:56, Scott Morrow wrote:


Hello Mark,


If you check empty = 0, you'll get false


I DO get false in the message box  but in a handler where there is  
nothing being passed in the parameter I get the following (note  
that expressly putting empty into the parameter variable does give  
the expected result.)




___
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: Version number, Splash screen, Auto-update

2009-06-29 Thread Scott Morrow
If you are wanting to use Sarah's scripting (thanks for posting that,  
Sarah) to help with an updater then it might be useful to have a  
generalized method for locating PlistBuddy.  Ken Ray supplied part of  
this one.  (Paste into the message box:)


go url http://www.elementarysoftware.com/rev-examples/PlistBuddy-Locator.rev 



Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--


On Jun 29, 2009, at 5:21 AM, George C Brackett wrote:

Very helpful utility, Sarah -- thank you very much!  Clicking your  
url crashed Firefox, so I recommend instead using the Message Box  
and typing

go url http://troz.troz.on-rev.com/stacks/PlistEditor.rev;

George

On Jun 29, 2009, at 2:21 AM, Sarah Reichelt wrote:

If I make an OS X standalone I can check the version number in  
the Finder

using 'Get Info'.


snip

I use a utility I wrote that reads the info.plist file and allows  
you

to change the version number stored there.
When you save the new version data, the app is touched which not
only makes it show the updated data from info.plist, but it changes
the app's modification date to the current date.
It isn't very neat, but it works well and if people are  
interested, I

would be happy to make it available.


Yes please.


You can download the stack from
http://troz.troz.on-rev.com/stacks/PlistEditor.rev
I added some basic help, so read it to see how it works.

Cheers,
Sarah

P.S. This is just a temporary address while I work out my new web
site, so if you try the download in a couple of weeks and it fails,
try going to www.troz.net and searching there instead.
___
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: right-click on Mac?

2009-06-27 Thread Scott Morrow

Hello Nicolas,

Right-click is supported on the Mac. For users who don't have a 2 or  
3 button mouse it is also accessible as Control-click click.  Rev  
takes care of this as both Right-clicking and Control-clicking  
result in mouse button 3


A Universal build is a bit larger but otherwise much more convenient  
for everyone than two (or three!) separate builds.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com

On Jun 27, 2009, at 6:43 PM, Nicolas Cueto wrote:


Hello,

The gmane search engine seems to be down
so I'll ask it here.

It's been years since I've used a Mac, but
I'm assuming for now that the mouse
generally shipped with Macs still doesn't
use a left/right (and centre) click like
Windows mice do.

If so, what is an elegant/simple way of
translating the mouse-click related handlers
of a stack/standalone originally designed
for Windows to a Mac platform?

Also, on a somewhat related topic. In runrev's
standalone settings for Macs, there are
three build-options. Must I build for all three?
Can I just go with OS X universal?

Thanks.

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

___
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: right-click on Mac?

2009-06-27 Thread Scott Morrow

Hello Nicolas,

Whoops,  Colin is correct.  With Rev 2.6.1 you can also build for Mac  
Classic which allows Mac users still running the Classic OS 9 system  
to use your software.  (The OS 9 system can't run a Universal  
build... that is only for OSX)  If it is educational software OS 9  
might still have a bit of an audience.  Most Mac users probably don't  
expect new products to support OS 9, though.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
--





On Jun 27, 2009, at 7:23 PM, Colin Holgate wrote:



On Jun 27, 2009, at 9:43 PM, Nicolas Cueto wrote:


Must I build for all three?
Can I just go with OS X universal?



That would make sense. It would be a small percentage of people that  
might use your stack that are still using Classic Mac OS. Being just  
OSX would mean that you could leave your right-click handlers alone  
too, Mac users can control-click if they don't have a two button  
mouse or a trackpad, and that should hopefully trigger those  
handlers ok.



___
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 to prevent a stack from loading twice (in Linux)

2009-05-23 Thread Scott Morrow
I love being surprised by learning something that my brain is ready  
for but that I wasn't expecting or looking to learn.  In the past I've  
used a file mechanism when needing to lock out another instance.  The  
shell() and socket ideas are far enough outside my comfort zone that I  
wouldn't have looked for a solution there.  Thanks for the poke in the  
brain.


Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)

On May 23, 2009, at 6:33 AM, Bernard Devlin wrote:


Peter, you could also use shell() to parse the output of the ps  
command to check if your application is already running...snip


Bernard

Or you can open a server socket on a fixed port, and quit if you  
fail to grab that port... snip


Jan Schenkel


___
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: Dumb Newbie Questions -- 1 of N

2009-05-01 Thread Scott Morrow


On May 1, 2009, at 1:50 AM, Scott Rossi wrote:

You can think of custom properties as global variables that are tied  
to

objects, instead of variables that float around in space.


That's exactly how I think of them.  Just containers.  Except  
variables  float around in space (local space or global space rather  
than outer space), where custom properties you have to say where the  
container lives (button 3 of card 1 or stack MainWindow rather than  
in the shed)


Scott Morrow
Elementary Software

___
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: Dumb Newbie Questions -- 1 of N

2009-04-30 Thread Scott Morrow

Hello Judy,

snipThere has to be some threshold at which Mark's approach  
makes sense and underneath that it simply doesn't matter.  What is  
that threshold and why does it matter at that point? /snip


I agree. However,  trying to define that threshold isn't probably ever  
going to be satisfying. I think this is one of those instructional  
difficulties that is hard to nail down outside of generalities and  
theory.   Using custom props to store data is usually not one of the  
concepts I would expect most folks new to Revolution to pick up early  
on.  Learning to store data in fields on cards is probably a simpler,  
more concrete and logical-next-step method that allows seemingly good  
results with the least effort.  (When I teach my 8 and 9 year old  
students to use the random function to pick a line of text,  I have  
them count the lines and hard code a digit rather than having them use  
 the number of lines of field blah   I've tried both and the digit  
is more understandable and works best for their needs.) In my case...  
even though I understood all the mechanics necessary to store data in  
custom props rather than card-based storage in fields, and I'd heard  
Richard Gaskin talk about it at two RevCons,  it wasn't until the card- 
based solution began failing my needs that I began to REALLY  
understand and start to change my way of looking at that part of  
design.  (Oh... that's what he meant...light bulb flickers )  I  
believe Judy is right about some people needing to use card-based  
storage. (especially those from a HyperCard background)  The point at  
which many of us are ready to learn another way is dependent on prior  
knowledge.  Why do I need another way? Until my prior knowledge  
included experience with and understanding of particular difficulties  
(the NEED to separate data from layout) I wasn't REALLY ready to learn  
about it other than in an abstraction or as an exercise.  (No, I'm not  
referring to Mr. Gaskin as an abstraction.)


Scott Morrow
Elementary Software

On Apr 30, 2009, at 11:25 AM, Judy Perry wrote:

DunbarX recently lamented the lack of stupid new user questions.  As  
I privately communicated to hi  Jacque, while not a new user, I  
certainly have stupid questions in abundance.


So here's mine on custom properties  arrays:

I d/l Mark's stack on the subject.  Here are my comments (no  
criticism of Mark intended):


1.  That's rather alot of work to go through for a stack that would  
have, at best, 3 or 4 cards worth of data.


2.  I'm willing to concede that, for such an employee database on  
the order of where I work, with probably ~7,000 employees, Mark's  
solution likely makes better sense from both a programming  
standpoint as well as a speed of execution standpoint.


3.  I am, however, willing to also point out that, for some normal  
human newcomer, if they're told they should NEVER EVER save data in  
a stack having multiple cards and multiple fields, they're gonna  
tell you that's why they stick with PowerPoint.


4.  I think #4 above defeats the purpose.  We were all stupid normal  
humans at one point.  Some of us (moi) still are.  There has to be  
some threshold at which Mark's approach makes sense and underneath  
that it simply doesn't matter.  What is that threshold and why does  
it matter at that point?


Kindest thanks,

Judy
___
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: OT: USED MACs

2009-04-21 Thread Scott Morrow
We run stuff like that ( I have mostly G3 iMacs, and some original,  
indestructible, clamshell iBooks) at my elementary school.  Folks  
donate or we pick them up cheap and keep fixing.  San Francisco is  
kind of a long drive though, even for a Cube and a G3 Wallstreet.   :  )


Scott Morrow
Elementary Software
Bellingham, WA (North of Seattle)

... anybody need a IIfx or 5?


On Apr 21, 2009, at 5:42 PM, Jim Ault wrote:

Wonder if there are any schools that are looking for old equipment..  
our computer club used to donate old items to the day school and  
elementary levels whose budgets were non-existent.  Usually some old  
tech guy was donating his time to keeping repairs and software in  
useable form.  You know, system 7, 8, 9.


PS..  and I am keeping my 128K original.  (OK it has a second floppy  
drivve and 2 Mb upgrade, so it is souped up)


Jim Ault
Las Vegas

On Apr 21, 2009, at 4:42 PM, stephen barncard wrote:


but I'm keeping the SE-30.  ha ha

I don't know if anybody here wants this stuff... but does it hurt  
to ask?

Pardon me if I've violated some rule

This collection looks like the history of Apple computer...


___
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: Printer driver crash on Win

2009-02-05 Thread Scott Morrow
I have a client experiencing this problem (application quits) on one  
machine under Windows XP.  All the rest of the machines at his site  
print correctly with this application. We have tried several times to  
solve this but for now he is just not using that particular computer  
to print with this application.  The print routine uses open printing  
and close printing.  I haven't been able to duplicate this on any of  
my machines.


Scott Morrow
Elementary Software

On Feb 5, 2009, at 9:46 AM, J. Landman Gay wrote:


Tiemo Hollmann TB wrote:

Hello,
I've posted this already a couple of month ago, but wanted to ask, if
anybody else has experienced same problems with Rev 3.0 on Win XP.
Some (rare) customers of mine complain that my prog crashes, when  
they call

the print dialog. I am just using:
Answer printer
Print card
There is a crash report in the QCC, concerning a not existing default
printer, but I couldn't verify, if that's the same situation at my
customers.
I tell my customers, they should look for an update of their  
printer driver,

but they tell me, their other progs can print without crash.
Has anybody experienced this behaviour and knows of any workaround?


I don't know the workaround, but someone else sent a ticket to the  
support queue saying that print script in the IDE also crashes the  
same way. He is going to submit a bug report for it.


You might see if specifically opening the print queue helps:

open printing
print this card
close printing

I haven't tried it, but it would be worth seeing if that works.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Printer driver crash on Win

2009-02-05 Thread Scott Morrow
I asked them to make sure they were using the latest drivers. His tech  
guy came by and I think made sure this computer was running the  
latest... but, of course, that isn't the same as seeing if the drivers  
are identical.Mostly I think they didn't want to fool with it  
anymore (can't blame them)  Next time we revisit this I'll check.


Scott Morrow
Elementary Software

On Feb 5, 2009, at 11:46 AM, J. Landman Gay wrote:


Scott Morrow wrote:
I have a client experiencing this problem (application quits) on  
one machine under Windows XP.  All the rest of the machines at his  
site print correctly with this application. We have tried several  
times to solve this but for now he is just not using that  
particular computer to print with this application.  The print  
routine uses open printing and close printing.  I haven't been able  
to duplicate this on any of my machines.


Hate when that happens. Does his machine use the same print drivers  
as the others? Since you've been troubleshooting, I assume it does,  
but it never hurts to ask.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Sounds

2009-01-19 Thread Scott Morrow

Hello Ton,

Scott Rossi  has a package of sounds (tm | audio) which I've used on  
several projects.  (I don't recall card shuffling as one of the  
sounds, though.)  You can find it here:


http://tactilemedia.com/

Scott Morrow
Elementary Software

On Jan 19, 2009, at 11:26 AM, Phil Davis wrote:


Hi Ton,

Here is another source for sound effects - they seem to always have  
what I need:

  http://www.soundrangers.com/

Phil Davis



Melitón Cardona Torres wrote:
I wonder whether there are typical simple sounds like card  
shuffling, chimes etc. one can get or buy somewhere.


Thanks in advance,

Ton

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
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: Application Browser problem?

2009-01-03 Thread Scott Morrow

Hello Kurt,
Unfortunately I don't know the answer to your question about using the  
Application Browser... but can suggest an alternative. Using the  
Message Box (or a button script) you may control such copy and paste  
actions.


go card 2 of stack  thisStack -- or in the Application Browser you  
could go to card 2 by double clicking on it
copy card 7 of stack thatStack to stack thisStack -- will paste  
right after the current card in stack thisStack


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com



On Jan 2, 2009, at 8:24 PM, Kurt Kaufman wrote:

I'm helping my 12-year-old daughter learn to program with RunRev,  
and I couldn't really figure this one out:


Could someone point me to a reference on how to move cards reliably  
between stacks in the Application Browser?
I find I can't predict exactly how it will work, between selecting  
the card in the A.B. using the contextual menu (right-click),  
pressing COMMAND-C to copy (or menu Edit--Copy Card), and then  
choosing a stack in which to paste the clipboard-held card.  (It  
seems that the Edit menu then offers Paste Objects, rather than  
Paste Card as one might expect.)  At this point,
it seems that unless I either double-click on the destination stack  
in the A.B., or click in the destination stack's window, it is NOT  
selected for the paste function, **even though** I might highlight  
the desired destination stack by single-clicking it in the A.B..


So, I can be in a position of having a card on the clipboard, ready  
for pasting, and I highlight a card of the destination stack (all of  
it's current objects are displayed), and yet, since I have not  
actually **definitively** selected my destination stack, if I paste  
my card it will be pasted back into the source stack.



Sorry if this is detailed in the help files, and I'm just missing it.

Also: It seems there might be a refresh problem where a newly pasted  
card shows up in the stack window while the A.B. still shows the  
pre-paste card highlighted and no pasted card?  (After collapsing  
the destination stack in the A.B. and re-displaying it, it shows up  
correctly with the newly-pasted card.)


Thanks, Kurt

Rev 3.0.0, Build 750,  Mac OX 10.5.6


___
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 user's name under OSX

2008-12-20 Thread Scott Morrow

Hello Mark,
Good to know.  I was trying to populate the Name: field of a fake  
administrative password query dialog.  I've since gone a different  
route and used an official Apple dialog (or dialogue for some)  
that takes care of this for me. However, I suspect I may yet have need  
of this again sometime.

-Scott

On Dec 20, 2008, at 3:20 AM, Mark Smith wrote:

Scott - I didn't know about dscl either, but it seems to work here  
on 10.4.11 as well.


Best,

Mark

On 19 Dec 2008, at 22:01, Scott Morrow wrote:


Hello Gordy,
Thanks for that. I was (am!) ignorant of dscl
I'll continue looking for something (additional) that might work in  
earlier versions.


-Scott

On Dec 19, 2008, at 5:14 AM, Gordon Tillman wrote:

Scott in 10.5 that information is stored in Directory Services.   
The dscl command is used to interact with that.  For example:


$ dscl . -read /Users/gordy RealName
RealName:
Gordon Tillman

(that's me!)

--gordy


On Dec 19, 2008, at 06:07, Scott Morrow wrote:



I'm trying to get the user's name under OSX. I can get the  
environment variable


$USER

but this only returns the user's short name.  Any ideas for  
getting the full name?

___
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


___
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


the user's name under OSX

2008-12-19 Thread Scott Morrow


I'm trying to get the user's name under OSX. I can get the environment  
variable


 $USER

but this only returns the user's short name.  Any ideas for getting  
the full name?



Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.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 user's name under OSX

2008-12-19 Thread Scott Morrow

Hello Gordy,
Thanks for that. I was (am!) ignorant of dscl
I'll continue looking for something (additional) that might work in  
earlier versions.


-Scott

On Dec 19, 2008, at 5:14 AM, Gordon Tillman wrote:

Scott in 10.5 that information is stored in Directory Services.  The  
dscl command is used to interact with that.  For example:


$ dscl . -read /Users/gordy RealName
RealName:
Gordon Tillman

(that's me!)

--gordy


On Dec 19, 2008, at 06:07, Scott Morrow wrote:



I'm trying to get the user's name under OSX. I can get the  
environment variable


$USER

but this only returns the user's short name.  Any ideas for getting  
the full name?

___
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: Spell check in a text field (how do I)

2008-12-11 Thread Scott Morrow

Hello Jim,

I'm no expert on spell checking but when I needed a cross-platform  
spell checker written in rev I broke the problem into 3 parts.

1.  A  UI for interacting with the spell checker
2.  A word checker that walks through the given text, word at a time,  
checking to see if they are in the bank of real words
3.  Suggested words... presented in the UI to allow quick correction/ 
selection of the intended word.  I found this last part to be by far  
the most challenging as things get messy when dealing with phonics.   
I ended up using a variation of Lawrence Philips' Double Metaphone  
algorithm.  The idea is to reduce the misspelled word to a short  
phonetic representation or key.  Previously you would also have  
reduced a subset of the real words in your bank to their short  
phonetic keys as well.  You might create a custom property for each  
unique phonetic key and store all the real words that reduce to this  
key as a list inside that custom property.  Then you could take the  
misspelled word's key and see if there was a custom property name that  
matched.  The hope then is that inside that custom property would be  
phonetically reasonable suggestions which could be presented to the  
user.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com


On Dec 11, 2008, at 10:32 AM, Jim Schaubeck wrote:


What are some of the ways I can write a stack which has spellchecking
for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
deploy on windows.  Thanks folks!
Jim...
___
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: unfocus field

2008-12-06 Thread Scott Morrow
Rats... I knew that but got stuck on focus... and focus on empty  
doesn't cut it!  :  )

-Scott Morrow

On Dec 5, 2008, at 10:54 PM, Ken Ray wrote:




Hello Thomas,
You can also focus on other objects.  Your button script could say
focus on me and that would remove the focus from your field.


Even simpler:

  select empty

:-)


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: unfocus field

2008-12-05 Thread Scott Morrow

Hello Thomas,
You can also focus on other objects.  Your button script could say  
focus on me and that would remove the focus from your field.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]

On Dec 5, 2008, at 9:44 PM, Thomas McGrath III wrote:


I need a little help.
I have field that accepts text. I want the insertion point and the  
focus border to not be there when I leave that field and push a  
button then go back to normal when the button script is done.


I tried showfocusborder but it does not get rid of the insertion line
focus on only works if I have another field to change the focus  
to, but I don't.


Scratching my head??

Tom McGrath III
Lazy River Software
[EMAIL PROTECTED]

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html


___
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: fileType creator

2008-12-04 Thread Scott Morrow

So close!
when you open the file it is created. So set the fileType before  
opening (creating) the file.


-- Dictionary: snip The fileType property is used to set the file  
type and creator of files created by the open file command and of  
files created/snip


-Scott Morrow
Elementary Software

On Dec 4, 2008, at 1:15 PM, -= JB =- wrote:

I am creating a new file using the open file command.  I set the  
fileType after it
is opened then I write to the file and close it as seen in the code  
below.  I have
tried to use set the fileType and set the stackFileType as shown  
below but they
don't change the creator and file type.  Does anyone know the proper  
way to
write it so I can set the file type and creator when I create a new  
file?


   open file filePath for binary update
   set the  filetype to RevoRSTK
   --set the  stackfiletype to RevoRSTK
   put fld id 1009 into theFile
   write theFile to file filePath
   close file filePath

thanks,
-=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


preserve custom folder icons in OSX

2008-12-01 Thread Scott Morrow
I'm trying to add, as part of an installer app, the ability to  
reproduce any original custom folder icons in OSX (and perhaps OS9 as  
I think it uses the same mechanism).  In other words, I would like to  
be able to suck up the custom folder icon information along with  
everything else so that it can be restored when the folder is spit out  
elsewhere.


If I understand correctly, the folder icon is controlled by an  
invisible file named IconCR  (often referred to as Icon\r) which  
contains an icon resource (icns,-16455). Additionally, I believe the  
folder itself needs to have a flag set in order for it to accept this  
icon.


I can't seem to touch or otherwise get a peek at the resource inside  
the icon\r file without first renaming it to something without the  
carriage return.


I haven't tried to figure out the folder flag yet.  Any suggestions  
gladly accepted.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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: preserve custom folder icons in OSX

2008-12-01 Thread Scott Morrow


On Dec 1, 2008, at 4:43 PM, Ken Ray wrote:


On 12/1/08 2:24 AM, Scott Morrow [EMAIL PROTECTED]  
wrote:



I'm trying to add, as part of an installer app, the ability to
reproduce any original custom folder icons in OSX (and perhaps OS9 as
I think it uses the same mechanism).  In other words, I would like to
be able to suck up the custom folder icon information along with
everything else so that it can be restored when the folder is spit  
out

elsewhere.


Can you just zip up the folder? That may keep the custom icon intact.


The rest of the installer app already works by sucking up folders, not  
all of which are destined for the same place.  I was just trying to  
put a little extra polish on.  Perhaps I should have zipped each  
folder and then sucked it up!



I can't seem to touch or otherwise get a peek at the resource inside
the icon\r file without first renaming it to something without the
carriage return.


Yeah, I couldn't either from inside Rev - I can only work with it in  
the

shell().


Hmm, perhaps I could use shell() to duplicate and rename the file,  
then suck that up with rev.  I think spitting it out later with a CR  
in the name will work.

Thanks.

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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


where is rev 2.9

2008-10-15 Thread Scott Morrow
I would like to be able to download an installer for rev 2.9 but can't  
seem to find an http of ftp location.  Any directions?


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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: Control X in Windows XP

2008-09-24 Thread Scott Morrow

Hello Joe,

Are your menus being displayed in the window that they act on  
(standard Windows behavior) or do you have a palette style menu bar.  
(Like rev uses in the IDE.)  The menu palette route caught me up in  
Windows the first time because of focus issues I hadn't thought of.


-Scott Morrow
 Elementary Software

On Sep 23, 2008, at 9:36 AM, Joe Lewis Wilkins wrote:

2.  My other dilemma is that the command key short-cuts for menu  
items in the Windows btn group, designated as Ctrl-something  
work erratically; sometimes they do and sometimes they don't. Any  
clue as to why this might be the case?


TIA,

Joe Wilkins


___
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: OS9 standalone builds

2008-09-18 Thread Scott Morrow
My experience in regards to building OS9 standalones, mirrors that of  
Mark's.  I have never been able to build a working standalone rev  
app unless I was doing it from within OS9 using rev 2.6.1 (or earlier)


Scott Morrow
Elementary Software
Now with 20% less chalk dust

On Sep 18, 2008, at 2:11 PM, Mark Schonewille wrote:


Hi François,

I don't think that anything newer than 2.6.1 is able to build  
standalones for Mac OS 9. With regard to Rev 3.0, I consider this a  
bug, but I have little hope that it is going to be fixed.


A bug report can be found at:
http://quality.runrev.com/qacenter/show_bug.cgi?id=6418

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

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


On 18 sep 2008, at 23:00, François Chaplais wrote:



Le 18 sept. 08 à 22:55, François Chaplais a écrit :
I just created a blank stack in Rev 3.0.0 gm-3 and created a  
Classic standalone;
I should be more precise: this is the studio version running on a  
Mac Book Pro, MacOSX 10.4.11.


best
François



___
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: Getting the text content of a HTML page

2008-08-03 Thread Scott Morrow

Hello Heather,

Mark's use of filter answered your question nicely.

This chunking method illustrates another, less elegant, way of doing  
what your pseudo-code below describes.



  put field theField into tText
  replace  with (CR) in tText
  replace  with (CR) in tText

  -- build a new list without the  or  lines
  repeat for each line tLine in tText
if ( is not in tLine) AND ( is not in tLine) then
  put tLine CR after tNewText
end if
  end repeat
  put tNewText




Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
--


On Aug 3, 2008, at 1:06 AM, H Baric wrote:

Okay, can someone please tell me if this (or something remotely like  
it)
would be possible (if script was written correctly, which I can't  
for the

life of me work out how):

put url somewebpage into field theField

put return before all the 

put return after all the 

replace lines containing  and  with empty



HAHA, I know it's not anywhere near the solution to extracting text  
from
HTML (Eric's function does a wayyy better job of that), but I'd LOVE  
to know
how to actually write the script if not anything else, because it's  
driven

me crazy for about two hours now! Grrr

If it does something wonderful that would be great too :P

Thanks so much  :)

Heather

___
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: Standalone - Using stack as DB

2008-08-02 Thread Scott Morrow

Peter,
I think a common variation is to have a standalone application (which  
most long-timers try to put minimal code into), a program main  
stack (perhaps with substacks) which can also be a stack file that  
the standalone loads first to establish the interface (and doesn't  
need to be saved), and data files which can also be substacks.  Then  
just the data substacks need to be involved with the save process.   
Keeping the data separate from the everything else has been consistent  
advice on this list.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]
--
On Aug 2, 2008, at 1:35 AM, Peter Alcibiades wrote:



Yes, very true.  This is, now its pointed out, obviously the  
underlying
source of my power off/saving problem.  Its also an argument against  
using
the traditional splash stack and then a real program + data stack,  
is it
not?  One should rather have a program main stack, and then data  
substacks.
No need ever to save the program stack since it never changes, just  
save the

data stacks as changed.  Is this what you usually do?


Eric Chatonet wrote:



I should have added that this way of doing never mix any line of code
with user's data in the same file.  And I think it important.




--
View this message in context: 
http://www.nabble.com/Re%3A-Standalone---Using-stack-as-DB-tp18756589p18787268.html
Sent from the Revolution - User mailing list archive at Nabble.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: launching an OSX bundle

2008-07-29 Thread Scott Morrow

Hello Andre,

Thanks for the lesson!

-Scott Morrow

On Jul 28, 2008, at 9:49 PM, Andre Garzia wrote:


Scott,

using something like

launch -a app name

will free you from dealing with path references, for example:

launch -a firefox

will launch firefox no matter where firefox.app is located, courtesy
of launcservices framework or whatever keeps track of the filesystem
these days...

As for having a difference, I know one, calling the binary direct will
freeze the process context that called it, for example if you open a
terminal window and use a command to call the binary, you'll see that
it doesn't return till the application exits, so, as far as the
terminal opened is concerned, the application is running and blocking
further interaction in that context, also you'll be able to see data
sent for STDOUT in the terminal. This is a good way to display debug
info for example, make your app output to stdout and call the binary.

If you use launch, then the application is launched in another
context, so, if you open a terminal and call launch you'll see that it
returns immediately no matter if the apps keep running or not. Also
stdin/stdout/stderr will be different then they are from launching by
calling the binary.

So what method you want depends on what you need. Do you need to
capture output, then calling the binary is the best option, if you
want to launch an app and forget about it, then launch will do it. I
think that calling shell() with the binary reference will block until
the called app exits but I am not sure.

hope this helps
andre

On Sun, Jul 13, 2008 at 7:13 PM, Scott Morrow
[EMAIL PROTECTED] wrote:

I'm wondering if issuing the launch command to:

/Applications/OSX bundle.app

produces different results than issuing the command to

OSX bundle.app/Contents/MacOS/theBinFile

Both seem to launch the app.  Just curious if there is a difference  
that I

might not be noticing?


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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





--
http://www.andregarzia.com All We Do Is Code.
___
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: So many ways in XTalks

2008-07-24 Thread Scott Morrow

snip
...is that a return in a function (or a command but that's more  
difficult to understand)  stops the running handler and returns  
immediately a result disregarding next statements.

/snip

A light bulb (if somewhat dim) just went on over my head... thanks.



snip
 For most things, readability is better than being too concise,  
especially when we're posting example code to this list.

/snip

Still, as in the above example (for me) I appreciated being challenged  
to understand something outside of what I already knew and used.   
These multiple examples often give me insight into generalizations  
about how to use the language better.  I suspect that at the  
intermediate stages, many readability preferences are specific to  
the individual's understanding of the rev language.  I remember when I  
needed to write:

  if the hilite of btn foo is true then  
in order to make it easy to understand, whereas now
   if the hilite of btn foo then  
 serves the same purpose with just as much readability.

Thank you all for the time and care it takes to write these examples.

snip

... copy someone's excellent code and just use it like a monkey...


/snip

Yes!  Pass the bananas, please.   :  )
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]
--






On Jul 24, 2008, at 11:41 AM, Eric Chatonet wrote:


Writing tutorials, I'm probably depraved :-)
Or for other reasons...

What I wanted to point out but it's possible I missed it ;-) is that  
a return in a function (or a command but that's more difficult to  
understand)  stops the running handler and returns immediately a  
result disregarding next statements.
I remember (when I was a bit younger ;-) that discovering this was  
great. May be it's obvious for all now?


And don't tell me I'm an old man ;-)
Have a nice day.

Le 24 juil. 08 à 20:23, J. Landman Gay a écrit :


Eric Chatonet wrote:

Dear Jacque,
You are right (as Ken was in a recent post).
But my goal is always readability and elegance:
e.g. no break, no 'and' and no 'or': something understandable at  
first sight without racking one's brains...
I always prefer it to concision even if I'm able to write put  
CleanText(StripCR(toUpper(myList))) into tResult ;-)


I know, and I agree, and I wasn't really too serious. :) For most  
things, readability is better than being too concise, especially  
when we're posting example code to this list.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/


William Humphrey wrote:
I like that especially when I can understand it. Very often I copy  
someone's

excellent code and just use it like a monkey...

___
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: Removing an OSX dock icon

2008-07-23 Thread Scott Morrow
Hello Ken and thanks again.  I am already using a script to locate  
copies of FileBuddy and so far it seems to work on the few machines  
I've tested. But thanks for suggesting it because it was dumb luck I  
ran across this script.


  put find /Library/Receipts -name *PlistBuddy into tFindScript
  put shell(tFindScript) into tPlistBuddyList


 I then figure out which has the most recent creation date and go  
with that one.


My fixPath() routine doesn't take all the same characters into  
account I'll be using yours!


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]


On Jul 23, 2008, at 9:31 AM, Ken Ray wrote:





Thanks a bunch.  I didn't know about PlistBuddy.  I've got it working
now!


BTW: If this is going to be a commercial app, you may want to insure  
against
the possibility that PlistBuddy isn't in the place you think it is  
(I've had

that happen when going from Tiger (where it was in the
AdditionalEssentials.pkg receipt file) to Leopard (where it ended up  
in
/usr/libexec)). Here's a handy handler I wrote just in case... feel  
free to

use any or all of it (watch line wraps):


function stsFindPListBuddy
  -- Attempts to locate PlistBuddy by some known paths first, and
  -- then uses locate if it can't find it. PlistBuddy is installed  
with a

  -- lot of software so it should always be there.
  put /usr/libexec/PlistBuddy  cr  /Library/Receipts/
AdditionalEssentials.pkg/Contents/Resources/PlistBuddy into  
tKnownLocs

  repeat for each line tLoc in tKnownLocs
if there is a file tLoc then return tLoc
  end repeat
  put shell(/usr/bin/locate PlistBuddy | sed 2,1d) into tLoc
  put word 1 to -1 of tLoc into tLoc
  return fixPath(tLoc)  -- Just in case of spaces, etc.
end stsFindPListBuddy

function fixPath pPath
 put \  space  quote  '`!;()[]?#$^*= into tSpecialChars
 repeat for each char tChar in tSpecialChars
   replace tChar with (\  tChar) in pPath
 end repeat
 return pPath
end fixPath

Enjoy!

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Removing an OSX dock icon

2008-07-22 Thread Scott Morrow

Hello Ken,

Thanks a bunch.  I didn't know about PlistBuddy.  I've got it working  
now!


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]


On Jul 22, 2008, at 11:38 AM, Ken Ray wrote:




With the following I'm able to add an icon to the OSX dock.  I'm
wondering if anyone knows (or would care to guess) how to remove an
icon from the dock... besides dragging it off  :  )


Take a look at the PlistBuddy command line file that ships in the  
bundles

of a lot of software on the Mac. Under Leopard, there should be one at
/usr/libexec/PlistBuddy.

If you run it with the -h parameter, you can get the list of what  
you can do

with it. Then you can use it with the Dock's plist file
(~/Library/Preferences/com.apple.dock.plist).

For example, to delete the item in the 13th app slot on the dock  
(you'd need
to run PlistBuddy with other configs to determine the slot number),  
you can

execute this:

/usr/libexec/PlistBuddy -c Delete persistent-apps:13
~/Library/Preferences/com.apple.dock.plist

And then reload the dock with killall Dock). It's a real PITA, but  
it

works pretty well.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Could it be this simple?

2008-07-22 Thread Scott Morrow

Hello Bill,

Check out Install Gadget

http://www.sweattechnologies.com/InstallGadget/

For simple installations like you are talking about, Install Gadget is  
hard to beat. The user gets a nice interface.  You get a simple drag  
and drop build... can't be easier.  The drag and drop does need to  
happen on a Windows OS.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]


On Jul 22, 2008, at 8:02 PM, Bill Vlahos wrote:

I am ready to distribute my application but I need an installer for  
Windows and I am programming this on a Mac. My installation process  
is very simple. All I need to do is unzip the folder to the desired  
location. No registry settings or any other installation processes.


Stuffit Deluxe for the Mac can create a self extracting archive for  
Windows as a .exe file which unstuffs to the folder and I'm done.


I got to thinking that I can probably do the same thing myself in Rev.
1. GZip the folder on the Mac
	2. Make a Rev Windows standalone that contains the zipped file in a  
Custom Property that will Unzip/Install the folder when opened.


Distribute the standalone Installer.

Could it be this simple? Other than not being Signed by  
Microsoft (unless I go through the certification/payment process),  
is there anything wrong with what I'm suggesting?


Or should I pay for StuffIt Deluxe to do this?

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



___
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: preventing mouse clicks

2008-07-22 Thread Scott Morrow

Hello Nicolas,

One thing to watch out for is that when you re-enable the group, all  
the controls within become enabled.  So if there was a disabled  
control in the  group before the group was disabled,  it will become  
enabled when the group is re enabled.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email [EMAIL PROTECTED]


On Jul 22, 2008, at 9:01 PM, Nicolas Cueto wrote:


If all your controls are part of a group, you can
disable them in one go by disabling the group


Fortunately, they were, and that's what I
ended up doing.

Thanks.

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


Mac OS9 icons

2008-07-20 Thread Scott Morrow
I'm needing to suck up and spit out Mac OS9 applications. I'm  
unable to maintain the higher resolution icon that I have been pasting  
into the Get Info information window before sucking up the  
application.  This icon isn't stored with the more primitive ions in  
the resfile: data.  I've been looking for a way to use AppleScript but  
haven't got enough of a lead to make any headway, yet.  Any ideas  
appreciated!


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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: Mac OS9 icons

2008-07-20 Thread Scott Morrow

Mark,
Thanks!  Knowing about the icns resource was enough to get me going.   
I've been using ResEdit (which, of course, doesn't show the icns  
resource)  Now my icons are all working great in OS9 even if I take  
them apart and put them back together.  Not that hoping to build a  
bunch for OS9 but that has been bugging me for a long time and it is  
really satisfying to have  a better understanding!


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
http://elementarysoftware.com/


On Jul 20, 2008, at 8:18 AM, Mark Schonewille wrote:


Hi Scott,

You can add an icns resource to the resource for of the application.  
I believe it has to be a particular ID number, but I don't remember  
exactly how it works.


--
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 20 jul 2008, at 12:24, Scott Morrow wrote:

I'm needing to suck up and spit out Mac OS9 applications. I'm  
unable to maintain the higher resolution icon that I have been  
pasting into the Get Info information window before sucking up  
the application.  This icon isn't stored with the more primitive  
ions in the resfile: data.  I've been looking for a way to use  
AppleScript but haven't got enough of a lead to make any headway,  
yet.  Any ideas appreciated!


Scott Morrow


___
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


Removing an OSX dock icon

2008-07-18 Thread Scott Morrow
With the following I'm able to add an icon to the OSX dock.  I'm  
wondering if anyone knows (or would care to guess) how to remove an  
icon from the dock... besides dragging it off  :  )


-- line 1 is really long
put defaults write com.apple.dock persistent-apps -array-add  
'dictkeytile-data/keydictkeyfile-data/ 
keydictkey_CFURLString/keystring/Applications/ 
MyRevStandalone.app//stringkey_CFURLStringType/keyinteger0/ 
integer/dict/dict/dict'; into tCmd



-- line 2
put shell(tCmd)

-- line 3
 get shell(killall Dock)


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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


Vista 256x256 icon

2008-07-17 Thread Scott Morrow
Does rev not support the Vista 256x256 icon size?  If so, is a third  
party injection possible?


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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


launching an OSX bundle

2008-07-13 Thread Scott Morrow

I'm wondering if issuing the launch command to:

/Applications/OSX bundle.app

 produces different results than issuing the command to

OSX bundle.app/Contents/MacOS/theBinFile

Both seem to launch the app.  Just curious if there is a difference  
that I might not be noticing?



Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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


combine shell scripts with administrator privileges

2008-07-11 Thread Scott Morrow
I'm trying to combine 2 shell scripts and my knowledge of shell  
scripting (and how to combine it with AppleScript) is proving too  
minimal.


I can do this:

put  chmod 777 tInnerPath into tShellCmd
put do shell script quote tShellCmd quote with administrator  
privileges into tCmd

do tCmd as applescript

What I want to do is piggyback a second script to chmod another file  
while making use of the previous admin privileges


(Otherwise I end up with a second dialog box asking the user to enter  
the password again)


Thanks,

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.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: combine shell scripts with administrator privileges

2008-07-11 Thread Scott Morrow

Hello Sarah,

Thanks for the lesson and the sample code!

-Scott

On Jul 11, 2008, at 4:32 AM, Sarah Reichelt wrote:


On Fri, Jul 11, 2008 at 5:15 PM, Scott Morrow
[EMAIL PROTECTED] wrote:
I'm trying to combine 2 shell scripts and my knowledge of shell  
scripting

(and how to combine it with AppleScript) is proving too minimal.

I can do this:

put  chmod 777 tInnerPath into tShellCmd
put do shell script quote tShellCmd quote with administrator
privileges into tCmd
do tCmd as applescript

What I want to do is piggyback a second script to chmod another  
file while

making use of the previous admin privileges

(Otherwise I end up with a second dialog box asking the user to  
enter the

password again)


If you want the standard OS X admin privileges dialog to appear, then
you will have to do it the way you are going and just live with having
two dialog boxes. A lot of apps do this anyway e.g. TextWrangler.

However if you are prepared to ask for an admin password using a
standard Rev dialog, then you can forget about AppleScript and just
use the shell function directly.

If the command does not require admin privileges, then you can just  
do this:


put  chmod 777 tInnerPath into tShellCmd
get shell(tShellCmd)

If it requires admin privileges, then you will have to ask for the
password, store it in a variable (tPass) and then combine it:

put #!/bin/sh  cr into tScript
put pw=  quote  tPass  quote  cr after tScript
put echo $pw | sudo -S   tShellCmd  cr after tScript
put shell(tScript) into tCheck  -- do the command  get the result

In this case, once you have the password, you can do as many shell
commands as you want.

Just one warning: if you are using file paths in a shell command, you
will have a problem if there are any spaces in the folder or file
name. Either surround the file path by quotes or escape the spaces. To
see how this can be done, open the terminal and drag a file into the
Terminal window. This will give you the full file path, escaped as the
shell needs it. However I find it easier just to use quotes.

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: focus in field problem

2008-06-23 Thread Scott Morrow

Hello Nicolas,
What about something like:

on openField
  select after last character of the target
end openField


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
 http://elementarysoftware.com
--




On Jun 22, 2008, at 10:23 PM, Nicolas Cueto wrote:


According to the documentation for the focus command:

If the object is an unlocked field, the insertion point is placed
after the text in the field.

I tried this command with an unlocked field and the flashing
insertion point does appear in the field, but it appears before
the the first word in the field rather than, as the docs say,
after the text in the field.

Is there another way of controlling where the insertion
point appears in a field?

Thank you.

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

___
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: Icon in Standalone

2008-06-20 Thread Scott Morrow

Hello Randy,
You might try copying one of the pLists from your other apps and  
editing the relative bits and then replacing the one that won't open  
with the newly edited one.  I haven't had any problems with pList  
corruption, though.  Are you using a pList editor to open it with or  
a text editor?

-Scott

On Jun 20, 2008, at 6:12 AM, Randy Hengst wrote:


Hi Scott,

Yes, I tried that method as well as command-D to no avail. However,  
I hadn't thought to check the pList. It won't open -- that suggests  
corruption. The pLists in all the other standalones I made do open.  
I'm using the default settings in the rev standalone settings. Any  
thoughts about the corruption culprit?


Jacque and Sarah, I'll play with the scripts you sent later today.  
It doesn't sound like they will address this problem, but will be  
very handy. Thanks for sharing them.


take care,
randy
-
On Jun 19, 2008, at 9:31 PM, Scott Morrow wrote:


Hello Randy,

I'm in the habit of Option + dragging  the recalcitrant application  
in order to duplicate it.  For me, this always seems to jar the  
Finder in the needed way.  If this doesn't do it for me it has  
always meant a problem elsewhere.  In my case it usually means I've  
messed up the pList.  However, I haven't noticed the standard rev- 
generated pList messing this up.

-Scott

On Jun 19, 2008, at 6:55 PM, Randy Hengst wrote:


Mark and Jacque,

Thank you for your comments.

Jacque, I don't know how to use the terminal, but I had tried both  
of your other suggestions.


Mark, I don't know why I didn't think to check the package  
contents. Anyway, the icon I made is in the resources folder, so  
I'm sure it is there and will show up eventually as Jacque  
suggested.


take care,
randy
-
On Jun 19, 2008, at 5:10 PM, Mark Schonewille wrote:


Hi Randy,

Do you see any icon at all? What kind of?

Are all standalones for Mac of the same time, i.e. either for  
Intel or PPC, or universal?


Are you sure that you have set the application icon, rather than  
the document icon?


Which icns files do you see inside the application package? There  
is/was a Rev bug, which may prevent the icns files from being  
copied. So, check that the icns files inside the application  
package are correct.


I don't think that anything is wrong with the stack itself. Only  
the standalone settings might be wrong, or even corrupt.


--
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 19 jun 2008, at 23:35, Randy Hengst wrote:


Hi All,

I've been playing with making icons for standalones for the  
first time. After scouring the archives I ended up using  
Iconbuilder 8.5.1 with Photoshop Elements 4.0 on MacOSX 4.11 and  
Rev Studio 2.8.1.


I've been successful with all but one of the standalones. This  
one project will not display the icon in the finder. The same  
icns file works just fine on a new stack. So, the icns file is  
OK.  I forced the finder to recognize it by creating an archive  
and then unstuffing the file.


I assumed something was corrupted in my stack. So, I created a  
new mainstack and copied the scripts and objects from the old  
stack to new. Still, the standalone will not display the icon in  
the finder. The project is just one stack and one card, 55  
objects and two audioclips.


Any suggestions for what I can check in my stack  that might be  
causing a problem?


take care,
randy hengst




___
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


___
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: Icon in Standalone

2008-06-19 Thread Scott Morrow

Hello Randy,

I'm in the habit of Option + dragging  the recalcitrant application in  
order to duplicate it.  For me, this always seems to jar the Finder  
in the needed way.  If this doesn't do it for me it has always meant a  
problem elsewhere.  In my case it usually means I've messed up the  
pList.  However, I haven't noticed the standard rev-generated pList  
messing this up.

-Scott

On Jun 19, 2008, at 6:55 PM, Randy Hengst wrote:


Mark and Jacque,

Thank you for your comments.

Jacque, I don't know how to use the terminal, but I had tried both  
of your other suggestions.


Mark, I don't know why I didn't think to check the package contents.  
Anyway, the icon I made is in the resources folder, so I'm sure it  
is there and will show up eventually as Jacque suggested.


take care,
randy
-
On Jun 19, 2008, at 5:10 PM, Mark Schonewille wrote:


Hi Randy,

Do you see any icon at all? What kind of?

Are all standalones for Mac of the same time, i.e. either for Intel  
or PPC, or universal?


Are you sure that you have set the application icon, rather than  
the document icon?


Which icns files do you see inside the application package? There  
is/was a Rev bug, which may prevent the icns files from being  
copied. So, check that the icns files inside the application  
package are correct.


I don't think that anything is wrong with the stack itself. Only  
the standalone settings might be wrong, or even corrupt.


--
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 19 jun 2008, at 23:35, Randy Hengst wrote:


Hi All,

I've been playing with making icons for standalones for the first  
time. After scouring the archives I ended up using Iconbuilder  
8.5.1 with Photoshop Elements 4.0 on MacOSX 4.11 and Rev Studio  
2.8.1.


I've been successful with all but one of the standalones. This one  
project will not display the icon in the finder. The same icns  
file works just fine on a new stack. So, the icns file is OK.  I  
forced the finder to recognize it by creating an archive and then  
unstuffing the file.


I assumed something was corrupted in my stack. So, I created a new  
mainstack and copied the scripts and objects from the old stack to  
new. Still, the standalone will not display the icon in the  
finder. The project is just one stack and one card, 55 objects and  
two audioclips.


Any suggestions for what I can check in my stack  that might be  
causing a problem?


take care,
randy hengst




___
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: Getting things the wrong way round . . .

2008-04-19 Thread Scott Morrow
Still, the combined branding title of Mirye Runtime Revolution pales  
next to:

Kirkland Signature Martha Stewart Favorite Holiday Hams

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Apr 19, 2008, at 11:02 AM, Ken Ray wrote:

...we are preparing Mirye Runtime Revolution for shipment to  
Amazon.


The name is Revolution. Unless you're altering it to be a different
product, why should one product have multiple names?


Right, so even if Mirye is being added on, it would be Mirye  
Revolution,
not Mirye Runtime Revolution (since Runtime Revolution is the  
company).

BTW, that confusion is all over the Mirye website as well, with some
references to Revolution (as in  Mirye Revolution 2.9 Released  
With Over

500 Improvements), but mostly as Runtime Revolution (as in Mirye
Software Releases Runtime Revolution 2.9), or event mixed (as in  
Mirye
Software, publishers of the cross-platform application development  
system

Runtime Revolution, announces the release of Revolution 2.9 Studio and
Enterprise...)

I don't mean to be nit-picky, but the topic of confusing company for
product for language which has been brought up on this list before  
is only
exacerbated when things like this occur. I can't tell you how many  
times

I've had to clarify/correct people asking me about Revolution.

Of course, if the *intent* by RunRev and Mirye is to make these  
things all
merge and become indistinguishable, then all that needs to happen is  
that it

officially be made known and then I (for one) will shut up about this.

;-)

Just my 2 cents,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: This has to be easy! Tell a program not to open a file

2008-04-15 Thread Scott Morrow

Scott Kane posted that tip in July. ( It was update.exe)

http://www.mail-archive.com/use-revolution@lists.runrev.com/msg96909.html

In one of my apps I now install the executable with a name of  
update.exe just so that it can set the registry on first run even if  
Vista uac is on. Then it changes its name to a more reasonable one  
just before quitting the first run.



-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Apr 15, 2008, at 3:56 PM, Sarah Reichelt wrote:


On Wed, Apr 16, 2008 at 8:47 AM, Mark Schonewille
[EMAIL PROTECTED] wrote:

So... let me rephrase that question. Is there a way to run my app in
administrator modus, without having to ask the user to open the  
properties

window and set admin mode manually?


There is a way that I read about and I'm not sure that I remember it
exactly, but apparently if your app's file name is Install.exe or
maybe it was Setup.exe, then Vista automatically puts you into admin
mode. This seems such an enormous security flaw that I can't believe
they actually do it, but you might like to give it a test.

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


SuckUp-SpitOut OS9 app

2008-04-01 Thread Scott Morrow
While I seem able to suck up a Windows executable (into a custom prop)  
and then spit it out in working order, I'm having trouble doing the  
same with Mac OS9 applications.


In addition to sucking up the application with  url (binfile:   
tPathToApp) 


I also get the resource fork usingget URL (resfile:   
tPathToApp) 


I then reconstitute the application withput (the uApplication of  
this stack)  into URL (binfile:  tInstallPath)  


and reset the resources using   put (the uAppResource of this stack)  
into URL (resfile:  tInstallPath)  


ResEdit shows the resources for the reconstituted OS9 app to be in  
place but something obviously isn't quite right as the app loses its  
icon and opens with TextEdit when double-clicked.  I'm hoping someone  
will know what I'm doing wrong...


Enterprise  2.9.0 rc-4
PPC OSX 10.5  (  10.2)

Thanks

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.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: SuckUp-SpitOut OS9 app

2008-04-01 Thread Scott Morrow

Hello Mark,

Fantastic!  That does the trick.  Thanks so much.

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Apr 1, 2008, at 1:19 AM, Mark Schonewille wrote:


Hi Scott,

On both Mac OS X and Mac OS 9 you need to set the filetype to  
APPL (or use whatever creator type you have chosen for your  
application instead of the question marks).


Best regards,

Mark Schonewille

--

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

A large collection of scripts for HyperCard, Revolution, SuperCard  
and other programming languages can be found at http://runrev.info





On 1 apr 2008, at 09:34, Scott Morrow wrote:
While I seem able to suck up a Windows executable (into a custom  
prop) and then spit it out in working order, I'm having trouble  
doing the same with Mac OS9 applications.


In addition to sucking up the application with  url (binfile:   
tPathToApp) 


I also get the resource fork usingget URL (resfile:   
tPathToApp) 


I then reconstitute the application withput (the uApplication  
of this stack)  into URL (binfile:  tInstallPath)  


and reset the resources using   put (the uAppResource of this  
stack) into URL (resfile:  tInstallPath)  


ResEdit shows the resources for the reconstituted OS9 app to be in  
place but something obviously isn't quite right as the app loses  
its icon and opens with TextEdit when double-clicked.  I'm hoping  
someone will know what I'm doing wrong...


Enterprise  2.9.0 rc-4
PPC OSX 10.5  (  10.2)

Thanks

-Scott Morrow



___
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: Anyone interested in learning more about Rev on Rockets?

2008-02-21 Thread Scott Morrow

Hello Chip and Andre,

I'm following this thread closely and would love tutorial examples!

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-
On Feb 21, 2008, at 3:01 AM, Chipp Walters wrote:


Part II

So, the other really cool part of ROR (Rev On Rockets) is

snip


So, if you're interested, holler at me or Andre, or just respond  
here. If
there are enough folks, we'll create a few free ROR tutes. Just let  
us know!


-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: put into named field weirdness

2008-02-10 Thread Scott Morrow
Perhaps the card hasn't yet opened.  You could try moving the handler  
to check.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-


On Feb 10, 2008, at 8:49 PM, Russell Martin wrote:


Any idea why the following line of code errors out when run from
openStack, but works just fine later when called from a handler
responding to a button press:

put lNewFilesField into field FilesField

Is there some kind of field name initialization that hasn't finished  
by

the time openStack is called?

___
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: Leopard throb images in a standalone

2008-01-30 Thread Scott Morrow
 Any way around this? I really like my app windows to have slightly  
rounded corners, but I also like some things to slide in and out  
like sheets. Ides anyone?


Hello Lars,

If you are doing something like showing and hiding groups with a wipe  
effect providing the sheet-like look you might be able to achieve an  
even cleaner look without the visual effect by actually sliding the  
groups on or off the edge of the card.  I use this trick regularly and  
have been quite pleased with the results.


See:  move and moveSpeed

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Jan 30, 2008, at 3:09 PM, Lars Brehmer wrote:

First of all, many thanks to Sarah, Jaqueline and Jim for the  
concise and very easy to understand suggestions for my recent  
question about using a stack with many cards vs. listfield/custom  
properties. As simple as their suggestions were, they had tiny bits  
that are not clear in the documentation, at least not for a non- 
coder like me. The results are terrific, anywhere from a script  
taking 60 vs 1600 milliseconds down to 18 vs 34!  A terrific speed  
improvement, thanks again! One strange thing though - Originally my  
data was in the many card stack stored as custom properties, now all  
of that is a single, very large custom property, so when I deleted  
the many card stack and made a new standalone, I expected the file  
size to be about the same if not slightly smaller, but instead it  
has grown by a couple of megs (about 30%!). The new single custom  
property is just the sum of all the old custom properties, and the  
only other changes are in a bunch of scripts, which for the most  
part got shorter. Where did the extra size come from?


Next question - how, if at all possible, can I make images in a  
standalone selectable and copy and pastable? In the IDE, obviously,  
yes, but clicking on an image in my standalone does not select it. I  
am starting to think it is not meant to be, but that would seem odd  
to me.


Last question - some of you may recall my Leopard throb question  
from a week ago - where the shadow around the active window throbs  
in Leopard when a handler with a visual effect is executed. Now I  
know what causes it, but I don't know how to fix it, if that is even  
possible. It happens with visual effect wipe on a window that has a  
window shape, but not on a rectangular window.  Any way around this?  
I really like my app windows to have slightly rounded corners, but I  
also like some things to slide in and out like sheets. Ides anyone?


Cheers,

Lars

___
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: OT: Anyone know of a way to lock the Dock in Leopard?

2008-01-11 Thread Scott Morrow
Here at our elementary school teachers have discussed the desirability 
of being able to lock the dock.  Students accidentally drag the icons 
out... or discover it is fun to make them disappear.  I have found that 
running a secondary user account with Modify Dock permissions off 
is almost more trouble than replacing the icons because of the time it 
takes to switch back and forth between accounts (OSX 10.2 - 10.4) 
anytime a change needs to be made.


I'm now happily testing a rev app that runs on startup and executes Jim 
Sims'  shell() script.


Is there a method to discover whether the dock is currently locked or 
not?


Scott Morrow

Elementary Software
Now with 20% less chalk dust
http://elementarysoftware.com


On Jan 8, 2008, at 12:37 PM, Jim Sims wrote:


Terminal

To LOCK the Dock use:

defaults write com.apple.dock contents-immutable -bool true
killall Dock

To UNLOCK use:

defaults write com.apple.dock contents-immutable -bool false
killall Dock




On Jan 11, 2008, at 10:26 AM, Troy Rollins wrote:



On Jan 11, 2008, at 1:08 PM, Derek Bump wrote:

The reason I would like to lock the items in the dock is because a 
customer of mine would REALLY benefit from it.  He's an older man, 
and with his arthritis, he has problems with clicking and dragging.  
When he intends to click once (such as on an icon in the dock), he'll 
accidentally hold down the mouse button for too long and drag the 
mouse a little.  Poof... the icon he's gotten accustomed to clicking 
is now gone.


I know that one of the user account permissions is modify dock. It 
would seem that perhaps this user shouldn't have that permission 
enabled.


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
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: Program problems on Windows Vista

2007-11-27 Thread Scott Morrow

Hello Derek,
I am trying to pin down a (similar?) problem that happens if the  
application is being run on a multiple-user system but it is not  
installed or launched by the primary user.  Just a thought in the dark.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Nov 27, 2007, at 4:11 PM, Derek Bump wrote:

I'm wondering if anyone has been experiencing this problem and  
knows how

to solve it.  I've got 2 customers, one is using Windows Vista Home
Premium and the other is using Windows Vista Business.  They both
experience the same problem with JPEGCompress 2.9.

They can launch the program once, use it just fine, and then close it.
When they attempt to launch the program again, they get a Windows  
error
message saying that the program cannot be opened.  One user  
supplied me

with the following Windows Error Data:

  Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: JPEGCompress.exe
  Application Version:  2.9.0.0
  Application Timestamp:467ba830
  Fault Module Name:ntdll.dll
  Fault Module Version: 6.0.6000.16386
  Fault Module Timestamp:   4549bdc9
  Exception Code:   c005
  Exception Offset: 00061c02
  OS Version:   6.0.6000.2.0.0.256.6
  Locale ID:1032
  Additional Information 1: 64d7
  Additional Information 2: 081335f078811e1fd639bc6c63d83627
  Additional Information 3: 3fdc
  Additional Information 4: 35fc8982503f4afb4ff8fb0737cc1a55

So far I've tested JPEGCompress 2.9 on Windows Vista Home Basic, Home
Premium, Business and Ultimate.  Premium, Business and Ultimate  
were all

checked using VMWare.

So far I am unable to identify any common ground between the two users
other than they are using Windows Vista.  Any ideas?

I've had them try the program in Safe Mode, uninstalling and
re-installing, they all have enough memory and disk space, latest
updates.  I'm running out of ideas.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com

___
Compress your photos quickly and easily with JPEGCompress 2.9!

http://www.dreamscapesoftware.com/products/jpegcompress/

___
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: Program problems on Windows Vista

2007-11-27 Thread Scott Morrow

Hello Derek,

I use VB scripts to create a similar system profile though I'm darned  
ignorant of how that stuff works.  Would something in your system  
profiler have called something not supported in the current version  
of VB ?


What did you do to find out information about multiple users?  I'm  
pretty sure my profiler doesn't return that info.


-Scott

On Nov 27, 2007, at 6:03 PM, Derek Bump wrote:


Thanks Scott.

I just created a system profiler that generates a report about nearly
every aspect of the system and emails it to me.  I just finished  
testing

it on XP Home and Vista Home Premium and it worked wonderfully.  I did
get an interesting error on Vista though:

This program requires MSVBVM50.dll, which is no longer included in  
this

version of Windows.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com

___
Compress your photos quickly and easily with JPEGCompress 2.9!

http://www.dreamscapesoftware.com/products/jpegcompress/



Scott Morrow wrote:

Hello Derek,
I am trying to pin down a (similar?) problem that happens if the
application is being run on a multiple-user system but it is not
installed or launched by the primary user.  Just a thought in the  
dark.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Nov 27, 2007, at 4:11 PM, Derek Bump wrote:

I'm wondering if anyone has been experiencing this problem and  
knows how

to solve it.  I've got 2 customers, one is using Windows Vista Home
Premium and the other is using Windows Vista Business.  They both
experience the same problem with JPEGCompress 2.9.

They can launch the program once, use it just fine, and then  
close it.
When they attempt to launch the program again, they get a Windows  
error
message saying that the program cannot be opened.  One user  
supplied me

with the following Windows Error Data:

  Problem signature:
  Problem Event Name:APPCRASH
  Application Name:JPEGCompress.exe
  Application Version:2.9.0.0
  Application Timestamp:467ba830
  Fault Module Name:ntdll.dll
  Fault Module Version:6.0.6000.16386
  Fault Module Timestamp:4549bdc9
  Exception Code:c005
  Exception Offset:00061c02
  OS Version:6.0.6000.2.0.0.256.6
  Locale ID:1032
  Additional Information 1:64d7
  Additional Information 2:081335f078811e1fd639bc6c63d83627
  Additional Information 3:3fdc
  Additional Information 4:35fc8982503f4afb4ff8fb0737cc1a55

So far I've tested JPEGCompress 2.9 on Windows Vista Home Basic,  
Home
Premium, Business and Ultimate.  Premium, Business and Ultimate  
were all

checked using VMWare.

So far I am unable to identify any common ground between the two  
users

other than they are using Windows Vista.  Any ideas?

I've had them try the program in Safe Mode, uninstalling and
re-installing, they all have enough memory and disk space, latest
updates.  I'm running out of ideas.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com

___
Compress your photos quickly and easily with JPEGCompress 2.9!

http://www.dreamscapesoftware.com/products/jpegcompress/

___
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



___
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: Drag to resize list fields

2007-11-20 Thread Scott Morrow

Hello Russell,

Eric Chatonet of So Smart Software has a fine example on how to do  
this as part of his Managing Resizing tutorial.


http://www.sosmartsoftware.com/?r=revolution_didacticielsl=en

In the example stack look under the Tips and Tricks tab and click  
the Two Fields Together button.  The script is in the divider bar.



-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Nov 20, 2007, at 6:07 PM, Russell Martin wrote:

Hi. I'm attempting to create an interface where I have two list  
fields side by side. I would like the user to be able to click in  
the space between the two lists and then drag left or right to and  
have the lists widths to be resized.


What I've attempted to do, is to put a tall narrow rectangle in the  
space between the two fields and then have it respond to the  
mouseDown and dragMove messages.


They look like this:

on mouseDown
  -- I set the dragdata, because the documentation led me to believe
  -- it was necessary to get the rectangle to respond to dragMove  
messages

  set the dragdata[text] to text being dragged
  -- the rectangle's width is 10 and so this immediately moves the  
rectangle
  -- to be centered to the pointer, if the pointer escapes the  
rectangle, the drag

  -- operation fails
  set the left of me to the mouseH - 5
end mouseDown


on dragMove
  -- again, this centers the rectangle to the pointer
  set the left of me to the mouseH - 5
  -- this resizes the left hand field to be one pixel away from the  
rectangle

  set the width of field LeftSideField to the mouseH - 6
  -- this gets the left hand field positioned properly again  
against the left

  -- edge of the window
  set the left of field LeftSideField to 0
  -- then, I set the width of the right hand field and fix it's  
position
  set the width of field RightSideField to width of this stack -  
the mouseH - 6

  set the left of field RightSideField to width the mouseH - 6
end dragMove


Now, this mostly works, but not as well as I'd like. If you move  
the pointer too quickly (which is not hard to do), it will escape  
from the rectangle and your drag operation will stop and the  
dragMove messages will start making their way up the message path.  
Also, even if you drag slowly enough to avoid this, when the window  
is resized and the fields resize based on their geometry settings,  
they are no longer within one pixel of the rectangle.


I'm thinking that there has two be a better way to accomplish what  
I'm trying to do in Revolution. I'm hoping that someone out there  
will be able to set me straight. Thanks in advance. :-)





   
__ 
__

Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
___
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: Identify Intel processor under 2.6.1

2007-10-31 Thread Scott Morrow

Ken,
Thanks, I am using a variation on your approach and it is working.  If 
I recall correctly the shell call doesn't work in OSX 10.2, fortunately 
only system versions above 10.4.9 can be used by Intel Macs so checking 
the system version first eliminates that issue.  I'm just checking to 
see if Intel is among the words returned by the System Profiler.  I 
couldn't think of anything else in that short list that might return 
Intel


Scott Morrow

Elementary Software
Now with 20% less chalk dust
http://elementarysoftware.com


On Oct 31, 2007, at 12:17 AM, Ken Ray wrote:


On Tue, 30 Oct 2007 23:56:15 -0700, Scott Morrow wrote:


Mark,
 This solution works brilliantly in 2.8.1 - unfortunately for some
reason it always seems to return false in 2.6.1 no matter the
processor.  I don't understand the logic behind it so I'm no good to
trouble shoot here.


Hmm, if this is true, you may have to use the longer system profiler
version I posted earlier. Mark, can you confirm whether the endian
version works for you in 2.6.1?


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


___
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: Identify Intel processor under 2.6.1

2007-10-30 Thread Scott Morrow

Mark,
 This solution works brilliantly in 2.8.1 - unfortunately for some  
reason it always seems to return false in 2.6.1 no matter the  
processor.  I don't understand the logic behind it so I'm no good to  
trouble shoot here.

Thanks,
Scott

On Oct 30, 2007, at 3:47 AM, Mark Smith wrote:


Scott, you can test for 'endianness;

function isIntel
  return (char 1 of (binaryencode(I,1)) is not null)
end isIntel

Best,

Mark

On 30 Oct 2007, at 06:32, Scott Morrow wrote:

Is there a way to query for an Intel Mac when running under rev  
2.6.1 without using the processor function which seems to report  
incorrectly?


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.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


Identify Intel processor under 2.6.1

2007-10-29 Thread Scott Morrow
Is there a way to query for an Intel Mac when running under rev 2.6.1  
without using the processor function which seems to report  
incorrectly?


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.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: Do stacks have controllable levels?

2007-09-27 Thread Scott Morrow
Whoa!  I didn't know that was doable!  Your stack(s) appears to solve  
a problem I've been struggling with. Thanks a bunch for sharing.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Sep 26, 2007, at 10:39 PM, Scott Rossi wrote:

BTW, not sure if this is what you're trying to do, but you might  
want to
take a look at a demo stack that features a sliding panel similar  
to the

drawer command.  Execute the following in your message box:

 go url http://www.tactilemedia.com/download/slider.rev;

This uses a palette stack as the parent window and toplevel stack  
as the

slider.  Maybe it is of some use.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design


___
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: Do stacks have controllable levels?

2007-09-26 Thread Scott Morrow

Paul,
 It isn't exactly the look you are describing but what about using  
the revChangeWindowSize command (with slide) in order to simulate  
closing and reopening Panel x   Panel x could consist of  multiple  
groups that could be hidden and shown as needed.  The main window  
could expand or shrink in order to expose or hide the Panelx group(s)


Also, though not cross platform,
drawer stack Panelx at right in stack LargeWindow
should work

-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Sep 26, 2007, at 9:45 PM, Paul Gabel wrote:


Hello everybody:

I have a large stack and a small stack (Let's call the latter  
Panel x).

   
|   | ||
|   | ||
|   | ||
|   | ||
|___| ||

From a script, Panel x needs to slide behind the right side of  
the large stack and switch to another panel (Panel y) which  
slides back out. The problem is that I can't consistently control  
which is on top.


1. I tried drawer Panel x but the stack disappeared. The only way  
I could get it back was by quitting Rev and reopening. Anyway, I'm  
aiming for cross-platform.


2. I tried to keep the large stack on top by temporarily using  
modal or systemWindow, but both cause the large stack to close and  
reopen which is unsightly. If I use lock screen, the large stack  
turns white during the process.


Sometimes Panel x slides on top the first time I do it and then  
slides behind the second time. Is there a consistent method of  
controlling stack levels? Thank you.


Paul Gabel

Rev Studio 2.8.1
Mac OS X 10.4.10
iMac Intel___
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: Quicktime on Windows

2007-09-26 Thread Scott Morrow

Curry,
I'm on a Mac at the moment but if you are testing in the IDE,  under  
Rev's General preferences there is a check box for Load QuickTime on  
startUp and a tool tip that suggests setting dontUseQT will fail if  
Rev does loads QT on startup.  Perhaps this preference is turned on?


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

On Sep 26, 2007, at 3:15 PM, [EMAIL PROTECTED] wrote:

When testing with and without Quicktime on Windows, playing .mid  
files in
a player, I was unable to really test without any QT features by  
setting

dontUseQT. Instead, I had to actually uninstall it!

With no QT, players don't loop automatically (at least with .mid  
files,

haven't tested others), and the player volume can't be set using
playLoudness. With QT installed, it seems these features are available
even with dontUseQT, if I made no mistake.

I'm wondering if anyone knows a good way for true QT/non-QT testing  
of all
features short of un/install, and also if I should bugzilla this or  
not.


Thanks,

Curry

___
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: ANN: MikMod External (mod and mod-like playing library for MacOS X)

2007-09-22 Thread Scott Morrow

Cool, Andre.
I have calculated that at this rate your 5th external should allow  
developers to interface directly with either the Hubble Telescope  
or the NASA's  Phoenix Lander.

-Scott Morrow

On Sep 22, 2007, at 2:38 PM, Andre Garzia wrote:


Aloha my friends,
Now I bring to you folks an external that wraps around MikMod 
http://mikmod.raphnet.net/ library. This is aimed at game and  
multimedia
developers. Mod files are the best format to use in games since you  
can
change properties and loops inside the music at runtime. They are  
also very

small.

 snip 

This is my second external... :-)

Cheers
andre

___
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 10.2 hardware info

2007-09-12 Thread Scott Morrow
Thanks, I have been successful in getting information under 10.3 and  
10.4 using system_profiler (though with slightly different parameters  
for each OS) but not with 10.2


I can call system_profiler directly from the Terminal application  
without a problem but in Rev the result I get back is something like:


2007-09-12 00:29:34.501 system_profiler[842] *** Uncaught exception:  
NSInvalidArgumentException launch path not accessible

/bin/sh: line 1:   842 Trace/BPT trap  system_profiler


I thought that it might be an issue with rev 2.6.1 -  which is what I  
need to run this with, but I just tested it using 2.8.1 with similar  
results.



On Sep 11, 2007, at 9:51 PM, Jim Sims wrote:



On Sep 12, 2007, at 6:18 AM, Scott Morrow wrote:

I've been unsuccessful in discovering a scripted technique for  
returning processor and memory information under OSX 10.2   This  
is the sort of thing that System Profiler can return but for some  
reason I seem unable to query it correctly in OSX 10.2   Any  
suggestions?


Terminal  system_profiler  will get you lots of information  
about the machine.


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


  1   2   3   >