Re: shell

2010-01-07 Thread Bernard Devlin
Hi Herschel,

I am unfamiliar with Hylafax.  I don't think shell is going to cut
it for your needs.  What you may need is open process, write to
process and read from process.  Open process is kind of like
opening a non-visible terminal, where the state of the program opened
as a process persists throughout your read/write interactions with it.

If you have a CLI client for hylafax for OS X  Windows, then you can
use that as the process to open.  If the only CLI client you have for
hylafax is on the server, then you will need to run remote sessions to
the server.  On OS X you could try 'talking' to the remote hylafax
client via ssh opened via open process.  If that works, you've got a
start.  On Windows you would then have to use something like plink
(part of the Putty suite of ssh programs for windows).

A final option might be to use the Expect program locally to talk to
the remote hylafax client.  I have never used Expect, but I imagine it
would be more complex to use than open process + ssh.

It's going to be convoluted, but it might work.

Bernard

On Wed, Jan 6, 2010 at 6:36 PM, Hershel Fisch hersh...@syp2u4c.com wrote:
 My server is FreeBSD or OSX, Client is OSX and Win.

 What is the problem with writing multiple arguments?  Do you mean
 multiple successive shell commands, or multiple arguments to one
 program?

 I want to write a GUI to connect to the server. Now I see in Rev, when a
 shell command is issued its sent and returns the prompt, if I need to
 respond to that prompt then it issues a different shell session and not a
 continuation of the previous one, e.g. I want to connect to a server or
 change user, put shell(su - userABC) it returns password that means that
 it wants a password to continue now where and who can I provide a password
 it should continue the current session? In terminal I just type it in and
 its done.
___
use-revolution mailing list
use-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: Edinburgh Conference DVDs

2010-01-07 Thread Bernard Devlin
Richmond, if you undertake any interaction with RunRev that requires
physical shipment, you have to expect very long delays.  This happened
with the printed docs years ago, and with other conference DVDs.  Add
Christmas/New Year into the equation (the UK does shut down for about
14 days at the end of each year).  Now the country is paralysed by
snow.

Seriously, just re-adjust your expectation.  I'm sure by March or
April you will have the physical goods.

Hopefully someone will come along soon and explain what is causing the
delay, and re-adjust people's expectations accordingly.

Bernard

On Wed, Jan 6, 2010 at 8:31 PM, Richmond Mathewson
richmondmathew...@gmail.com wrote:
 And boxed sets of RunRev Studio 4 . . .

 I suppose everybody else has forgotten that the money they paid for the
 Edinburgh
 conference was not for the conference alone.

 If I undertake to do some work for somebody, and they pay me in advance, and
 I don't deliver (by the advertised dealine !) I will be taken to court,
 or, in
 Bulgaria (that rather more practical country) some shaven-headed chap with
 scars
 on his face will come and visit me to discuss my desire for cosmetic
 surgery.
 Knowing this, and because I am, on the whole, an honourable sort of person,
 I either deliver, or repay some of my fee for late or non-delivery.
___
use-revolution mailing list
use-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: Edinburgh Conference DVDs

2010-01-07 Thread Rolf Kocherhans
I am also waiting for the DVDs!

Can the Mothership please answer this question ?!



Am 07.01.2010 um 06:23 schrieb use-revolution-requ...@lists.runrev.com:

 And boxed sets of RunRev Studio 4 . . .
 
 I suppose everybody else has forgotten that the money they paid for the
 Edinburgh
 conference was not for the conference alone.

___
use-revolution mailing list
use-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: Edinburgh Conference DVDs

2010-01-07 Thread Mark Schonewille

Bernard,

Edinburgh is a city with quite a few post offices at walking distance  
from the RunRev HQ. The nearest post office is around the corner and  
to the left. Put stuff into big envelopes or boxes, walk to post  
office, done. That should take only one day.


RunRev HQ:
http://maps.google.co.uk/maps?f=qsource=s_qhl=engeocode=q=25a+Thistle+Street+Lane+South+West+sll=55.950545,-3.23101sspn=0.135521,0.274658ie=UTF8hq=hnear=25A+Thistle+St+Ln+SW,+Edinburgh,+Midlothian+EH2+1EW,+United+Kingdomll=55.953754,-3.198824spn=0.13551,0.274658t=hz=12 



Post offices:
http://maps.google.co.uk/maps?hl=ennum=100lr=safe=offie=UTF8q=edinburgh+post+officehq=post+officehnear=Edinburgh,+UKt=hz=12 



I didn't order anything, I am not waiting for anything, but I am  
surprised that people need to wait 3 months or longer for a product to  
be shipped. Even actual shipment by boat shouldn't take longer than 6  
weeks.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

We make software, websites and webware. We are always looking for new  
projects. Feel free to contact us and ask for a quote without any  
further obligations

http://economy-x-talk.com/contact.html

Op 7 jan 2010, om 11:17 heeft Bernard Devlin het volgende geschreven:


Richmond, if you undertake any interaction with RunRev that requires
physical shipment, you have to expect very long delays.  This happened
with the printed docs years ago, and with other conference DVDs.  Add
Christmas/New Year into the equation (the UK does shut down for about
14 days at the end of each year).  Now the country is paralysed by
snow.

Seriously, just re-adjust your expectation.  I'm sure by March or
April you will have the physical goods.

Hopefully someone will come along soon and explain what is causing the
delay, and re-adjust people's expectations accordingly.

Bernard



___
use-revolution mailing list
use-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: Edinburgh Conference DVDs

2010-01-07 Thread BNig

Rolf,
over at the forum Andycal has an answer from support:
http://forums.runrev.com/phpBB2/viewtopic.php?f=5t=4664
regards
Bernd

Rolf Kocherhans wrote:
 
 I am also waiting for the DVDs!
 
 Can the Mothership please answer this question ?!
 

-- 
View this message in context: 
http://n4.nabble.com/Edinburgh-Conference-DVDs-tp975773p1008717.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


AW: Edinburgh Conference DVDs

2010-01-07 Thread Tiemo Hollmann TB

Ok, scanning all material from the conference, cutting and producing can
actually take some time (shouldn't usually take soo long, but...)

But what I don't like the most on this issue is that we have to pay in
advance (me in October) and don't get a value for it over month. I think
this is a not correct business behaviour with selling a simple DVD.

I hope at least that we will get this year a good quality for our money and
not that quality disaster as last year. I don't like being forced twice to
buy the cat in a bag (german saying, don't know the English one)

Sorry RunRev guys, my 2 cents
Tiemo

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


Re: How to invoke SendInput() Windows API. was Re: How do I paste into a different app?

2010-01-07 Thread runrev260805
Hi Bill,

i have done something similar.  You can create a vbs script and let Rev run 
this.

I am not very good at VBS, but the following lines show how to insert text into 
an app.

___
Set WshShell = WScript.CreateObject(WScript.Shell) 
WshShell.Run winword.exe
'the app is opened. If your app is already running, you do not need this line
WScript.Sleep 2000  
 'script stops for 2000 milliseconds to take sure, that the app is running 
before further proceeding.

WshShell.AppActivate Dokument1 - Microsoft Word
'activates your already running app
'between the quotes you have to put the exact name of the app - as it is shown 
in the title bar of that app
' winword also shows the document name in the title bar

WScript.Sleep 100  
 'script stops for 100 milliseconds'

WshShell.SendKeys This Text should be inserted   
 'the text between the quotes is sent to the app

WScript.Sleep 100  
WshShell.SendKeys {enter}
'sends an enter to winword
WScript.Sleep 100  

WshShell.SendKeys This Text should also be inserted   
 'the text between the quotes is sent to the app



Maybe Ken Ray could jump in, as he knows much more about VB and VBS.

Regards,

Matthias





 Original Message 
Subject: How to invoke SendInput() Windows API. was Re: How do I paste into a 
different app? (07-Jan-2010 6:42)
From:Bill Vlahos bvla...@mac.com
To:  runrev260...@m-r-d.de

 It looks like Microsoft has deprecated the keybd_event API and suggests 
 using SendInput() instead.
 
 Below is a sample of what needs to be sent. This is a C++ example. How do I 
 send this from Rev in Windows? It looks similar to what I do with 
 AppleScript on the Mac? While the send...as applescript commands are 
 documented in Rev's dictionary I don't see anything similar for Windows 
 APIs.
 
 INPUT inp[2];
memset(inp,0,sizeof(INPUT));
inp[0].type = INPUT_KEYBOARD;
inp[0].ki.dwFlags = KEYEVENTF_UNICODE; // to avoid shift, and so on
inp[1] = inp[0];
inp[1].ki.dwFlags |= KEYEVENTF_KEYUP;
 
for (LPCTSTR p=str; *p; p++) {
   inp[0].ki.wScan = inp[1].ki.wScan = *p;
   SendInput(2, inp, sizeof(INPUT));
}
 
 Here are some relevant links:
 http://msdn.microsoft.com/en-us/magazine/cc163867.aspx
 http://www.codeguru.com/forum/showthread.php?t=377393
 http://msdn.microsoft.com/en-us/library/ms646310(VS.85).aspx
 
 On Dec 31, 2009, at 7:27 AM, Bill Vlahos wrote:
 
  I figured it out and have it working on the Mac with AppleScript. I'm not 
  using a paste function but the AppleScript keystroke function. It looks 
  like the Windows API keybd_event can do the same type of thing.
 
 Bill Vlahos
 _
 InfoWallet (http://www.infowallet.com) helps me remember the important 
 details of my life.
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 
 To: use-revolution@lists.runrev.com


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


Test

2010-01-07 Thread Klaus Major
Hi all, 

just a test, since I did not receive any posting since yesterday evening.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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-2: Edinburgh Conference DVDs

2010-01-07 Thread runrev260805
 buy the cat in a bag (german saying, don't know the English one)

to buy a pig in a poke  ;-)

Matthias


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


AW: Re-2: Edinburgh Conference DVDs

2010-01-07 Thread Tiemo Hollmann TB
Good to know! :)

Tiemo

 
  buy the cat in a bag (german saying, don't know the English one)
 
 to buy a pig in a poke  ;-)
 
 Matthias
 

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


OT: 2nd Conference DVD set for sale

2010-01-07 Thread runrev260805
Hi,

because i´ve ordered the Megabundle,i will receive  a 2nd Conference DVD set, 
which i do not need. So if there is anyone on the list (because of customs 
germans or EU customers are preferred) interested in it,  contact me offlist at 
   matthias (at) m-r-d.de

Regards,

Matthias


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


(Data Grid) How to get the setting of the dgHeaderAlignment[column] saved

2010-01-07 Thread Andre.Bisseret

Bonjour,

I have a data grid DataGrid defined with the Inspector. The columns'  
headers are aligned to left.


In order to get the columns headers centered I do the following :
--
  put the dgProp[columns] of group DataGrid into theColumns
  repeat for each line enil in theColumns
 set the dgHeaderAlignment[enil] of grp DataGrid of this cd to  
center

  end repeat
---
Ok, that works well.

I save the stack
If I close the stack and reopen it, the headers are still centered.

But if I quit Rev, when I reopen the stack, the headers are aligned to  
left again.


What am I missing?

Thanks a lot in advance for any advice

Best regards from Grenoble
André

P.S. I sent this message about 2 hours ago but seems it was not  
received (it does not appear in the archives) ; so I am trying again 


___
use-revolution mailing list
use-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 deleteGroup

2010-01-07 Thread David Bovill
Hi Devin - the problem is no message is sent so I can't tell when the group
is deleted. The only way to do that is have a front script, but I was hoping
to use behaviors - so i could script a component without having to install
somethin in a users development environment.

2010/1/4 Devin Asay devin_a...@byu.edu


 On Jan 1, 2010, at 12:45 PM, David Bovill wrote:

  Just noticed that the deleteGroup message is not sent when the group is
 nested - anyone got an idea how to get around this?

 Say you have a group that you want to do some tidying up if a user deletes
 it - and so you put a handler like this in the group itself:

 on deleteGroup

  beep
  doSomeTidying
  pass deleteGroup
 end deleteGroup


 Which works fine if it is a toplevel group - but when this group is inside
 another group deleting the toplevel group triggers a deleteGroup message
 which travels up the hierarchy to the card - but no deleteGroup messages
 are
 sent from the inner groups - this means you can't attach appropriate
 behaviors to the groups.

 Wandering if anyone has looked at this - I can't think how to do it as
 deleteGroup is sent after deletion so even a frontscript would not be able
 to tell what was inside a deleted group. Even the new closeControl message
 does not seem to be sent in these circumstances?


 David,

 Maybe you'll need to check the child objects of the group before you delete
 the parent group. If they have child groups delete them first from the
 inside out, so that each group is deleted individually and so triggers the
 deleteGroup message.

 repeat with x= 1 to the number of groups in group parent
  if there is a group x of group parent then
delete group x of group parent
   else
exit repeat
  end if
 end repeat

 Regards,

 Devin


 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University

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

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


Strange issue on Windows Vista

2010-01-07 Thread Andre Rombauts

Hello from the cold and snowy Belgium...

I'm developping On Snow Leopard Enterprise 4.5 an application using  
MySQL libraries. The guy who is testing for me the Windows standalone  
reports that it is OK on XP and Windows7 but not on Vista. On Vista he  
is getting the error


Object: stack revExternalLibrary of stack C:/Program Files/Chatou/ 
Chatou.exe


I can generate a similar error if I remove the dbmysql.dll from the / 
database_drivers subdir in /Externals Is it possible to have issues on  
Vista and not on 7 or classic XP?


André


___
use-revolution mailing list
use-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 the name of a USB volume

2010-01-07 Thread Richard Gaskin

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


Very helpful Phil, and I appreciate your posting it, but unfortunately 
the issue I found with using system_profiler is that it doesn't report 
the volume name as it appears to the user on the desktop.


I had hoped there would be some reasonably simple way to get a list of 
mounted volumes that looks something like this:


driveName  mountPoint  type

...where driveName is the name as it appears in the Finder, 
mountPoint is either / or Volumes/drivename, and type is 
either ATA, SCSI, CD/DVD, USB, etc.


With what I've learned in this thread it seems I may be able to use 
output from system_profiler checked against output from AppleScript 
calls to obtain such a list.


For the future, I see that Jeanne DeVoto had submitted an RQCC request 
for the detailed volumes which could do what I need if implemented as 
described there:

http://quality.runrev.com/qacenter/show_bug.cgi?id=101

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.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-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 deleteGroup

2010-01-07 Thread Devin Asay


On Jan 7, 2010, at 8:21 AM, David Bovill wrote:

Hi Devin - the problem is no message is sent so I can't tell when  
the group
is deleted. The only way to do that is have a front script, but I  
was hoping
to use behaviors - so i could script a component without having to  
install

somethin in a users development environment.


Sorry, David, I didn't read your original message closely enough. What  
if the parent group has a deleteGroup handler that passes the message  
on? Maybe the parent group is just swallowing group-related messages  
from child groups.


What does the Message Watcher say? If no deleteGroup is generated by  
nested groups it seems like a bug to me.


Regards,

Devin



2010/1/4 Devin Asay devin_a...@byu.edu



On Jan 1, 2010, at 12:45 PM, David Bovill wrote:

Just noticed that the deleteGroup message is not sent when the  
group is

nested - anyone got an idea how to get around this?

Say you have a group that you want to do some tidying up if a user  
deletes

it - and so you put a handler like this in the group itself:

on deleteGroup


beep
doSomeTidying
pass deleteGroup
end deleteGroup


Which works fine if it is a toplevel group - but when this group  
is inside
another group deleting the toplevel group triggers a deleteGroup  
message
which travels up the hierarchy to the card - but no deleteGroup  
messages

are
sent from the inner groups - this means you can't attach appropriate
behaviors to the groups.

Wandering if anyone has looked at this - I can't think how to do  
it as
deleteGroup is sent after deletion so even a frontscript would not  
be able
to tell what was inside a deleted group. Even the new closeControl  
message

does not seem to be sent in these circumstances?



David,

Maybe you'll need to check the child objects of the group before  
you delete
the parent group. If they have child groups delete them first from  
the
inside out, so that each group is deleted individually and so  
triggers the

deleteGroup message.

repeat with x= 1 to the number of groups in group parent
if there is a group x of group parent then
  delete group x of group parent
 else
  exit repeat
end if
end repeat

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


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

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


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: Edinburgh Conference DVDs

2010-01-07 Thread Bernard Devlin
Mark, I'm sure you realise, I was being ironic :-)  The last time I
bought conference DVDs from Runrev, they took 6 months to arrive.
Most of my emails to them in that 6 month period asking for
explanations went unanswered.  After several months of waiting, my
exasperation with them flared up with me expressing my displeasure on
this list.

I think they seriously let customers down by not setting expectations
appropriately.  If there is going to be a 3 month or 6 month wait, it
is better to just tell people that up front.  If an unforeseen problem
crops up, send an email to the list.  Sadly, years after me making
this recommendation it appears they have still not learned how to
simply re-set expectations with a brief email.

Since that experience with them, I make myself assume that anything I
buy from them requiring physical shipment has a delivery date 6 months
hence.  To be fair, I've almost never had any problem with any
non-physical shipment.

I hope they will soon let those waiting hear of a realistic shipment
date.  Maybe the person in charge of this has been off on long-term
sick leave.  I'm sure there is nothing underhand about the delay.

Bernard

On Thu, Jan 7, 2010 at 10:37 AM, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Bernard,

 Edinburgh is a city with quite a few post offices at walking distance from
 the RunRev HQ. The nearest post office is around the corner and to the left.
 Put stuff into big envelopes or boxes, walk to post office, done. That
 should take only one day.
___
use-revolution mailing list
use-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 deleteGroup

2010-01-07 Thread Trevor DeVore

On Jan 7, 2010, at 10:47 AM, Devin Asay wrote:

Sorry, David, I didn't read your original message closely enough.  
What if the parent group has a deleteGroup handler that passes the  
message on? Maybe the parent group is just swallowing group-related  
messages from child groups.


What does the Message Watcher say? If no deleteGroup is generated by  
nested groups it seems like a bug to me.


Devin,

I think the issue David is trying to address is that no deleteGroup is  
sent to children groups if the parent is deleted (which should  
probably be considered a bug anyway). Assume you have this group  
hierarchy:


Group A
Group B
Group C

If you delete Group B then Group B receives the deleteGroup message as  
does Group A (unless Group B traps the message).


If you delete Group A then Group B and Group C DO NOT receive the  
deleteGroup message. Only Group A does.


Currently a developer needs to to manually go through a group's  
children and dispatch the deleteGroup message to it's children if it  
was the target of the deleteGroup message.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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 deleteGroup

2010-01-07 Thread David Bovill
It's an issue for anyone developing nested components. In my case I have a
component that I want to distribute that creates some (global) data that I
want to tidy up / clear when the component is deleted manually or by script.
This is fine if the group is a top level group, but as i use layout groups
and other forms of group nesting (say I want to use the group within a
datagrid for instance) - then no message at all is sent - and so I cannot
create this form of component without resorting to libraries or front/back
scripts.

I've filed this as a report here (and copied Trevor's description)  -
http://quality.runrev.com/qacenter/show_bug.cgi?id=8524  Votes appreciated!

2010/1/7 Trevor DeVore li...@mangomultimedia.com


 Assume you have this group hierarchy:

 Group A
Group B
Group C

 If you delete Group B then Group B receives the deleteGroup message as does
 Group A (unless Group B traps the message).

 If you delete Group A then Group B and Group C DO NOT receive the
 deleteGroup message. Only Group A does.

 Currently a developer needs to to manually go through a group's children
 and dispatch the deleteGroup message to it's children if it was the target
 of the deleteGroup message.

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


can't open tRev anymore

2010-01-07 Thread Eric Sciolli
Hello

I've downloaded last version of tRev but when I try to open it on
macosx 10.6.2 it closes suddenly; does someone encountered this
problem?

Thanks

Eric
___
use-revolution mailing list
use-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: can't open tRev anymore

2010-01-07 Thread J. Landman Gay

Eric Sciolli wrote:

Hello

I've downloaded last version of tRev but when I try to open it on
macosx 10.6.2 it closes suddenly; does someone encountered this
problem?


The tech queue is getting reports about failed OS X builds occasionally. 
I haven't figured out why but the symptoms are what you describe. 
Sometimes it works if you do this:


Click on the afflicted application to select it in the Finder

Either click the application while holding the control key, or use the 
Action menu (the icon looks like a gear) to access the option Show 
Package Contents


Open the Contents folder therein, and then find the MacOS folder
Modify the permissions on this folder to give it execute permissions 
for all users. Do this by opening the Terminal (located in 
Applications/Utilities) and typing the following command (don't press 
return afterward):


sudo chmod 755

After typing this, drag the MacOS folder to the Terminal window -- its 
path should appear. Press return, and you will be prompted for your 
administrator password, which you should enter.


The MacOS directory should now have read, write and execute priveleges 
for the owner, and read and execute privileges for the group and others.



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


Re: Edinburgh Conference DVDs

2010-01-07 Thread J. Landman Gay
I asked about the DVDs. Production was completed just before Christmas. 
As was mentioned, the office (like most of the country) was closed for 2 
weeks during the holidays and they have just returned. They will begin 
shipping soon.


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


Re: Edinburgh Conference DVDs

2010-01-07 Thread Marian Petrides
Great news!  Thanks for the update, Jacque!!

On Jan 7, 2010, at 11:06 AM, J. Landman Gay wrote:

 I asked about the DVDs. Production was completed just before Christmas. As 
 was mentioned, the office (like most of the country) was closed for 2 weeks 
 during the holidays and they have just returned. They will begin shipping 
 soon.
 
 -- 
 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


Attn: Dan Olsen

2010-01-07 Thread J. Landman Gay
Dan, if you are reading this list, please contact either me or tech 
support with a valid email address. We have all been trying to send your 
megabundle materials since your order was received but the address you 
provided bounces back as undeliverable. Tech support can't reply to your 
query either for the same reason. If you have a different email, please 
let us know.


(Sorry to impose on the list, folks, but we couldn't think of any other 
way to respond.)


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


Re: Finding the name of a USB volume

2010-01-07 Thread Phil Davis

Hi Richard,

I believe this does include the volume names as they appear in the 
Finder. Look for the Volumes: tag in each output line.


Phil



On 1/7/10 7:43 AM, Richard Gaskin wrote:

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


Very helpful Phil, and I appreciate your posting it, but unfortunately 
the issue I found with using system_profiler is that it doesn't report 
the volume name as it appears to the user on the desktop.


I had hoped there would be some reasonably simple way to get a list of 
mounted volumes that looks something like this:


driveName mountPoint type

...where driveName is the name as it appears in the Finder, 
mountPoint is either / or Volumes/drivename, and type is 
either ATA, SCSI, CD/DVD, USB, etc.


With what I've learned in this thread it seems I may be able to use 
output from system_profiler checked against output from AppleScript 
calls to obtain such a list.


For the future, I see that Jeanne DeVoto had submitted an RQCC request 
for the detailed volumes which could do what I need if implemented 
as described there:

http://quality.runrev.com/qacenter/show_bug.cgi?id=101

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.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

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



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


AW: Strange issue on Windows Vista

2010-01-07 Thread Tiemo Hollmann TB
Hi André,

that sounds strange. As far as I know and I experiences it every day there
are (almost) no differences between Vista and 7 in this part of the system
architecture. So I would believe it is not a matter of Vista or 7, but of
different configurations / user rights / settings, etc.

The only strange thing I can see is the blank in your path before the exe,
but that is probably a typo and even if not it wouldn't make a difference
between Vista and 7

Tiemo 

 -Ursprüngliche Nachricht-
 Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
 boun...@lists.runrev.com] Im Auftrag von Andre Rombauts
 Gesendet: Donnerstag, 7. Januar 2010 16:30
 An: How to use Revolution
 Betreff: Strange issue on Windows Vista
 
 Hello from the cold and snowy Belgium...
 
 I'm developping On Snow Leopard Enterprise 4.5 an application using
 MySQL libraries. The guy who is testing for me the Windows standalone
 reports that it is OK on XP and Windows7 but not on Vista. On Vista he
 is getting the error
 
 Object: stack revExternalLibrary of stack C:/Program Files/Chatou/
 Chatou.exe
 
 I can generate a similar error if I remove the dbmysql.dll from the /
 database_drivers subdir in /Externals Is it possible to have issues on
 Vista and not on 7 or classic XP?
 
 André
 
 
 ___
 use-revolution mailing list
 use-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


Exagofon and RunRev on Create Digital Music

2010-01-07 Thread René Micout
There is an article about Exagofon with mention of RunRev at :
http://createdigitalmusic.com/2010/01/07/put-a-hex-on-you-new-game-crazy-music-sequencer-with-hexagons/#more-8958
Bons souvenirs de Paris
René___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


can't open tRev anymore

2010-01-07 Thread Eric Sciolli
Hello Jacqueline

your solution doesn't work... perhaps it's a bug with the new version of tRev?

Thanks

Eric___
use-revolution mailing list
use-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: can't open tRev anymore

2010-01-07 Thread J. Landman Gay

Eric Sciolli wrote:

Hello Jacqueline

your solution doesn't work... perhaps it's a bug with the new version of tRev?


The next step is to contact Jerry directly.

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


Re: Strange issue on Windows Vista

2010-01-07 Thread Michael Kann
http://www.runrev.com/developers/lessons-and-tutorials/tutorials/advanced-windows-vista/

--- On Thu, 1/7/10, Andre Rombauts an...@rombauts.be wrote:

 From: Andre Rombauts an...@rombauts.be
 Subject: Strange issue on Windows Vista
 To: How to use Revolution use-revolution@lists.runrev.com
 Date: Thursday, January 7, 2010, 9:29 AM
 Hello from the cold and snowy
 Belgium...
 
 I'm developping On Snow Leopard Enterprise 4.5 an
 application using MySQL libraries. The guy who is testing
 for me the Windows standalone reports that it is OK on XP
 and Windows7 but not on Vista. On Vista he is getting the
 error
 
 Object: stack revExternalLibrary of stack C:/Program
 Files/Chatou/Chatou.exe
 
 I can generate a similar error if I remove the dbmysql.dll
 from the /database_drivers subdir in /Externals Is it
 possible to have issues on Vista and not on 7 or classic
 XP?
 
 André
 
 
 ___
 use-revolution mailing list
 use-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: Edinburgh Conference DVDs

2010-01-07 Thread Richmond Mathewson
Actually my Grunt would not really be a grunt if I felt that I had been
informed why
things have taken so long + a reassurance that in due course (with some idea
of
timescale) things would be delivered.

On Thu, Jan 7, 2010 at 10:17 AM, Bernard Devlin bdrun...@gmail.com wrote:

 Richmond, if you undertake any interaction with RunRev that requires
 physical shipment, you have to expect very long delays.  This happened
 with the printed docs years ago, and with other conference DVDs.  Add
 Christmas/New Year into the equation (the UK does shut down for about
 14 days at the end of each year).  Now the country is paralysed by
 snow.


I know, I am, at present in a neighbouring country (England) that is
experiencing
very cold weather.



 Seriously, just re-adjust your expectation.  I'm sure by March or
 April you will have the physical goods.

 Hopefully someone will come along soon and explain what is causing the
 delay, and re-adjust people's expectations accordingly.


It would be nice if RR could tell us  . . .



 Bernard

 On Wed, Jan 6, 2010 at 8:31 PM, Richmond Mathewson
 richmondmathew...@gmail.com wrote:
  And boxed sets of RunRev Studio 4 . . .
 
  I suppose everybody else has forgotten that the money they paid for the
  Edinburgh
  conference was not for the conference alone.
 
  If I undertake to do some work for somebody, and they pay me in advance,
 and
  I don't deliver (by the advertised dealine !) I will be taken to
 court,
  or, in
  Bulgaria (that rather more practical country) some shaven-headed chap
 with
  scars
  on his face will come and visit me to discuss my desire for cosmetic
  surgery.
  Knowing this, and because I am, on the whole, an honourable sort of
 person,
  I either deliver, or repay some of my fee for late or non-delivery.
 ___
 use-revolution mailing list
 use-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://andregarzia.on-rev.com/richmond/dwriter.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


valentina, externals of libdatabase

2010-01-07 Thread Bernard Devlin
I recently decided to take a fresh look at Valentina.  As the licensed
copy I had was quite old, I upgraded to 4.3

On Vista with RevEnt 4.0, I decided the easiest way to learn more
about Valentina was using Trevor's LibDatabase library.  (I know that
it's kind of 'old hat' compared to SQL Yoga, but LibDatabase appeals
to me).

I'm kind of confused about how externals are supposed to be registered
these days.  I ran the Valentina installer, and it made no changes to
the Revolution program directories (i.e. it did not add itself to the
list of externals in the Externals text file, nor add the drivers to
the folder containing database drivers).

I got the example stack provided by Paradigma to work by adding the
V4Rev.dll file to the external references of the Examples main stack.

When it comes to making use of LibDatabase, the only way I could get
it to work was by adding V4Rev.dll to the externals of the library).
I was getting an error at at the point where LibDatabase calls
Valentina_Init.  It seems to me that the main stack of an application
should be where the externals are set, not in a library stack.  I am
sure that if LibDatabase required a reference to any relevant
externals, Trevor would have said so (he's a thorough kinda guy).

Also, does anyone know how to get an error string back from Valentina?

Bernard
___
use-revolution mailing list
use-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: can't open tRev anymore

2010-01-07 Thread Jerry Daniels
I know this doesn't help much, but It's running here, Eric. Also Mac  
OS X. Which Rev are you running?


Best,

Jerry Daniels

The latest Rev Editor Video:
http://reveditor.com/feature-friday-leave-bookmarks-in-handler-lis

On Jan 7, 2010, at 10:51 AM, Eric Sciolli wrote:


Hello

I've downloaded last version of tRev but when I try to open it on
macosx 10.6.2 it closes suddenly; does someone encountered this
problem?

Thanks

Eric
___
use-revolution mailing list
use-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


Scale ImageSource?

2010-01-07 Thread Scott Rossi
Can anyone think of way to scale the imageSource representation of an image
in a field without actually scaling the source image?

I have a bunch of Web based thumbnail images that are larger than I would
like, which I want to display in a field via imageSource links.  The only
way I can think to scale the imageSource display is to set the fileName of
an intermediate image object to the URL of the thumbnail, scale the
intermediate image, and then point the imageSource items in the field at the
intermediate image object.  But then I think I would need a separate
intermediate image for every imageSource reference, which will eventually
become unmanageable.

I tried adding standard HTML size tags (width =, height =) to the HTMLtext
of the field but these seem to be ignored.

Any other ideas on how I might do this?

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: can't open tRev anymore

2010-01-07 Thread Sarah Reichelt
Have you tried starting tRev with the option key held down? This  
forces a re-install of all the components.


Cheers,
Sarah

Sent from my iPhone

On 08/01/2010, at 2:51 AM, Eric Sciolli eric.scio...@sunrise.ch wrote:


Hello

I've downloaded last version of tRev but when I try to open it on
macosx 10.6.2 it closes suddenly; does someone encountered this
problem?

Thanks

Eric
___
use-revolution mailing list
use-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: valentina, externals of libdatabase

2010-01-07 Thread Ruslan Zasukhin
On 1/7/10 10:23 PM, Bernard Devlin bdrun...@gmail.com wrote:

Hi Bernard,

 I recently decided to take a fresh look at Valentina.  As the licensed
 copy I had was quite old, I upgraded to 4.3
 
 On Vista with RevEnt 4.0, I decided the easiest way to learn more
 about Valentina was using Trevor's LibDatabase library.  (I know that
 it's kind of 'old hat' compared to SQL Yoga, but LibDatabase appeals
 to me).
 
 I'm kind of confused about how externals are supposed to be registered
 these days.  I ran the Valentina installer, and it made no changes to
 the Revolution program directories (i.e. it did not add itself to the
 list of externals in the Externals text file, nor add the drivers to
 the folder containing database drivers).
 
 I got the example stack provided by Paradigma to work by adding the
 V4Rev.dll file to the external references of the Examples main stack.
 
 When it comes to making use of LibDatabase, the only way I could get
 it to work was by adding V4Rev.dll to the externals of the library).
 I was getting an error at at the point where LibDatabase calls
 Valentina_Init.  It seems to me that the main stack of an application
 should be where the externals are set, not in a library stack.  I am
 sure that if LibDatabase required a reference to any relevant
 externals, Trevor would have said so (he's a thorough kinda guy).

Yes I think Trevor can answer this, and most probably this is describe in
some docs.
 
 Also, does anyone know how to get an error string back from Valentina?

** If you will look into V4REV/Examples you will see how to work with Errors
codes and strings.

** This is entry point of Valentina for REV docs in WIKI

http://valentina-db.com/dokuwiki/doku.php?id=valentina:products:adk:v4rev:v
4rev

Here you can find simple steps how to install,
Tutorial, PDF of API, ...


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


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


(Data Grid) How to get the setting of the dgHeaderAlignment[column] saved

2010-01-07 Thread Andre.Bisseret

Bonjour,

I have a data grid DataGrid defined with the Inspector. The columns'  
headers are aligned to left.


In order to get the columns headers centered I do the following :
--
   put the dgProp[columns] of group DataGrid into theColumns
   repeat for each line enil in theColumns
  set the dgHeaderAlignment[enil] of grp DataGrid of this cd to  
center

   end repeat
---
Ok, that works well.

I save the stack
If I close the stack and reopen it, the headers are still centered.

But if I quit Rev, when I reopen the stack, the headers are aligned to  
left again.


What am I missing?

Thanks a lot in advance for any advice

Best regards from Grenoble
André

___
use-revolution mailing list
use-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: Scale ImageSource?

2010-01-07 Thread J. Landman Gay

Scott Rossi wrote:

Can anyone think of way to scale the imageSource representation of an image
in a field without actually scaling the source image?


Sadly, I don't think you can. You can set the fixedlineheight and it 
will cut off the image but it doesn't sound like that's what you want.


Did you try using a space?
manic laughter

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


Re: Scale ImageSource?

2010-01-07 Thread Terry Judd
Scott - What about exporting the scaled image object to a 'random' temporary
file (using the tempname function), setting the imagesource and then
deleting the file. That way you should avoid the caching issues that Jacqui
brought up the other day.

Terry...

On 8/01/10 9:07 AM, Scott Rossi sc...@tactilemedia.com wrote:

 Can anyone think of way to scale the imageSource representation of an image
 in a field without actually scaling the source image?
 
 I have a bunch of Web based thumbnail images that are larger than I would
 like, which I want to display in a field via imageSource links.  The only
 way I can think to scale the imageSource display is to set the fileName of
 an intermediate image object to the URL of the thumbnail, scale the
 intermediate image, and then point the imageSource items in the field at the
 intermediate image object.  But then I think I would need a separate
 intermediate image for every imageSource reference, which will eventually
 become unmanageable.
 
 I tried adding standard HTML size tags (width =, height =) to the HTMLtext
 of the field but these seem to be ignored.
 
 Any other ideas on how I might do this?
 
 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: Scale ImageSource?

2010-01-07 Thread J. Landman Gay

Terry Judd wrote:

Scott - What about exporting the scaled image object to a 'random' temporary
file (using the tempname function), setting the imagesource and then
deleting the file. That way you should avoid the caching issues that Jacqui
brought up the other day.


What an interesting idea. Nice.

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


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: Scale ImageSource?

2010-01-07 Thread Scott Rossi
Recently, Terry Judd wrote:

 Can anyone think of way to scale the imageSource representation of an image
 in a field without actually scaling the source image?

 What about exporting the scaled image object to a 'random' temporary
 file (using the tempname function), setting the imagesource and then
 deleting the file. That way you should avoid the caching issues that Jacqui
 brought up the other day.

As Jacque said, an interesting idea Terry.  In fact, the imageSource caching
feature could actually work to my benefit since the thumbnails could all
be exported to a single temp image without fear of updating the other
imageSource references.  Using one fileName would be a bit less messy than
using 40 or so separate exports I would have to deal with (40 thumbnails).

Thanks  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: Scale ImageSource?

2010-01-07 Thread J. Landman Gay

Scott Rossi wrote:


As Jacque said, an interesting idea Terry.  In fact, the imageSource caching
feature could actually work to my benefit since the thumbnails could all
be exported to a single temp image without fear of updating the other
imageSource references.  Using one fileName would be a bit less messy than
using 40 or so separate exports I would have to deal with (40 thumbnails).


Let us know if it works. I have a hunch that Rev will only read the 
first iteration of the image and all the subsequent imagesource 
references to the same file will look like the first one. But I'm not 
sure, so I'm curious. And if it does work, we all have a new trick.


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


Re: Finding the name of a USB volume

2010-01-07 Thread Phil Davis

On 1/7/10 9:36 PM, Scott Morrow wrote:

Very nice.  Thanks, Phil!

Scott Morrow

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

You're welcome!

Here is an improved version of the original handler. It adds a Device: 
label to the device name and replaces the single Volumes: label before 
ALL volume descriptions with a Volume: label before EACH volume 
description (should make it easier to break out descriptions of each 
partition on a USB drive).


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
  put empty into tNewLine
  repeat for each item tItem in tLine
 put word 1 to -1 of tItem  tab after tNewLine
  end repeat

  -- insert a device tag at beginning of device description
  delete last char of item 1 of tNewLine -- trailing colon
  put Device:  before item 1 of tNewLine

  -- remove single 'volumes:' tag at beginning of all volume 
descriptions

  replace Volumes:  tab with empty in tNewLine

  -- insert a volume:  tag at the start of each volume description
  replace (colon  tab) with cr in tNewLine -- break after each 
volume name

  repeat with x = 1 to (the number of lines in tNewLine - 1)
 put Volume:  before last item of line x of tNewLine
  end repeat
  replace cr with tab in tNewLine

  -- append finished line to rest of data
  put cr into last char of tNewLine
  put tNewLine after tNewData
   end repeat
   delete last char of tNewData

   -- return the data
   return tNewData
end macUsbDrives

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


Re: Scale ImageSource?

2010-01-07 Thread Scott Rossi
Recently, Jacque Landman Gay wrote:

 As Jacque said, an interesting idea Terry.  In fact, the imageSource caching
 feature could actually work to my benefit since the thumbnails could all
 be exported to a single temp image without fear of updating the other
 imageSource references.  Using one fileName would be a bit less messy than
 using 40 or so separate exports I would have to deal with (40 thumbnails).
 
 Let us know if it works. I have a hunch that Rev will only read the
 first iteration of the image and all the subsequent imagesource
 references to the same file will look like the first one. But I'm not
 sure, so I'm curious. And if it does work, we all have a new trick.

Oops, you're probably right.  If I get a chance to try it I'll report back.

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: Scale ImageSource?

2010-01-07 Thread Jim Ault

Would this work?

delete image currentThumb
import your image
put the last image id into newId
set the name of image id newId to currentThumb
set the imageSource of char thisChar of field 1 to currentThumb

You could detect the if(same thumbnail condition) by storing it in a  
variable, then comparing this imagedata to the new thumb.



On Jan 7, 2010, at 10:26 PM, J. Landman Gay wrote:


Scott Rossi wrote:

As Jacque said, an interesting idea Terry.  In fact, the  
imageSource caching
feature could actually work to my benefit since the thumbnails  
could all

be exported to a single temp image without fear of updating the other
imageSource references.  Using one fileName would be a bit less  
messy than
using 40 or so separate exports I would have to deal with (40  
thumbnails).


Let us know if it works. I have a hunch that Rev will only read the  
first iteration of the image and all the subsequent imagesource  
references to the same file will look like the first one. But I'm  
not sure, so I'm curious. And if it does work, we all have a new  
trick.


--
Jacqueline Landman Gay


Jim Ault
Las Vegas



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