revCopyFolder

Richard Hillen mail at richard-hillen.de
Wed Jul 17 10:46:00 EDT 2002


Hello Sarah , Hello Howard,

Re revCopyFolder, Sarah, 17.7.2002:

My Parameters:

Mac Powerbook G4, Mac OS 9.2.2 (german)

Richard.

> Message: 11
> Date: Wed, 17 Jul 2002 11:06:23 +1000
> Subject: Re: revCopyFolder
> From: Sarah <sarahr at genesearch.com.au>
> To: use-revolution at lists.runrev.com
> Reply-To: use-revolution at lists.runrev.com
> 
> Your script works perfectly under Mac OS X but I think with Mac systems,
> the revCopyFolder command uses AppleScript and it is different on
> others. What system do you use?
> 
> The only other thing I can think of is if you are trying to do a copy
> that can't work, like copying a folder to itself or inside itself or
> onto a protected disk.
> 
> Sarah
> 
> On Wednesday, July 17, 2002, at 06:40  AM, Richard Hillen wrote:
> 
> > Hello list,
> >
> > I need your help with this script:
> >
> > on mouseup
> >   answer folder "Sourcefolder please"
> >   put it into SF
> >   answer Folder "Destinationfolder please"
> >   put it into DF
> >
> >   revCopyFolder SF,DF
> >   put the result
> >
> > end mouseup
> >
> > The result: "Execution error".
> >
> > Why?
> >
> > Thanx, Richard.
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> 
> --__--__--
> 
> Message: 12
> Date: Tue, 16 Jul 2002 22:06:39 -0400
> Subject: Where at Macworld? - Birds of a feather
> From: Rick Harrison <harrison at all-auctions.com>
> To: <use-revolution at lists.runrev.com>
> Reply-To: use-revolution at lists.runrev.com
> 
> Hi there,
> 
> I've been looking at the old posts about this
> and noticed that an exact place was not mentioned
> for the Rev. Birds of a Feather gathering at MacWorld
> in NYC tomorrow evening.
> 
> Does anyone know where we are meeting?
> 
> Thanks,
> 
> Rick Harrison
> 
> --__--__--
> 
> Message: 13
> Date: Tue, 16 Jul 2002 22:20:25 +0200
> To: use-revolution at lists.runrev.com
> From: Yves =?iso-8859-1?Q?Copp=E9?=  <yvescoppe at skynet.be>
> Subject: diffdays
> Reply-To: use-revolution at lists.runrev.com
> 
> Hello,
> 
> Can someone help me to write a function that returns the difference
> of days between two dates ?
> Please don't forget the dateformat can be different from a system to
> another (U.S,French,German,...)
> 
> Thank you.
> --
> Salutations.
> 
> Yves COPPE
> 
> Email : yvescoppe at skynet.be
> 
> --__--__--
> 
> Message: 14
> Date: Wed, 17 Jul 2002 14:27:19 +1000
> Subject: Re: diffdays
> From: Sarah <sarahr at genesearch.com.au>
> To: use-revolution at lists.runrev.com
> Reply-To: use-revolution at lists.runrev.com
> 
> If you convert both dates to seconds, and divide the difference by 86400
> (the number of seconds in a day), then you will get the number of days
> between the dates. When you convert, specify what format you are
> starting with e.g.
>         convert from short system date to seconds
> This will allow for localised date formats.
> 
> Cheers,
> Sarah
> 
> On Wednesday, July 17, 2002, at 12:42  PM, Yves Coppé wrote:
> 
> > Hello,
> >
> > Can someone help me to write a function that returns the difference of
> > days between two dates ?
> > Please don't forget the dateformat can be different from a system to
> > another (U.S,French,German,...)
> >
> > Thank you.
> > --
> > Salutations.
> >
> > Yves COPPE
> >
> > Email : yvescoppe at skynet.be
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> 
> --__--__--
> 
> Message: 15
> Date: Wed, 17 Jul 2002 06:53:33 +0200
> Subject: Re: diffdays
> From: Terry Vogelaar <terry at discovery.nl>
> To: <use-revolution at lists.runrev.com>
> Reply-To: use-revolution at lists.runrev.com
> 
> > Can someone help me to write a function that returns the difference
> > of days between two dates ?
> > Please don't forget the dateformat can be different from a system to
> > another (U.S,French,German,...)
> 
> Hello Yves,
> 
> I don't know if this is the smartest way, but this should do it:
> 
> on mouseUp
>   put "dinsdag, 9 juli 2002" into DateA
>   convert DateA from system long date to seconds
>   put "7/17/02" into DateB
>   convert DateB from short date to seconds
>   put DateA - DateB into diff
>   divide diff by 86400 -- No of seconds in 1 day
>   if char 1 of diff = "-" then delete char 1 of diff
>   put diff
> end mouseUp
> 
> and the message box shows the date of 10 days ago in French (or Dutch, or
> whatever language you are using). As long as RR can understand the date
> format provided, and you specify which format it is, there shouldn't be a
> problem. The only thing is if the data provided is in languages other then
> the system language of the user and English, in other words: on my system, I
> can only interpret Dutch or English dates; not Frech or German. Maybe a nice
> feature request to add a few more languages than English...
> 
> Terry
> 
> --__--__--
> 
> Message: 16
> Date: Wed, 17 Jul 2002 07:38:06 +0200
> To: use-revolution at lists.runrev.com
> From: sims <sims at ezpzapps.com>
> Subject: Re: diffdays
> Reply-To: use-revolution at lists.runrev.com
> 
> What is the best way if the date is much earlier?
> 
> If I do the following, I get only 730 days:
> 
> on mouseUp
>    put "7/17/1900" into DateA
>    convert DateA from system long date to seconds
>    put "7/17/2002" into DateB
>    convert DateB from short date to seconds
>    put DateA - DateB into diff
>    divide diff by 86400 -- No of seconds in 1 day
>    if char 1 of diff = "-" then delete char 1 of diff
>    put diff
> end mouseUp
> 
> sims
> 
> >
> >on mouseUp
> >   put "dinsdag, 9 juli 2002" into DateA
> >   convert DateA from system long date to seconds
> >   put "7/17/02" into DateB
> >   convert DateB from short date to seconds
> >   put DateA - DateB into diff
> >   divide diff by 86400 -- No of seconds in 1 day
> >   if char 1 of diff = "-" then delete char 1 of diff
> >   put diff
> >end mouseUp
> 
> --__--__--
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> End of use-revolution Digest



More information about the Use-livecode mailing list