uot;, tInfile, tOutDir )
>put shell( it )
> # A variation of it, which is how I code :
> on mouseUp
> get shell( format( "cp '%s' '%s'", \
> $HOME & "/Desktop/test.txt" , \
> $HOME & "/Desktop/outDir" ) )
Le 6 sept. 2010 à 00:18, biodan a écrit :
> ... shell from a Terminal session does not work
Hi.
Yes it works !
> put $HOME &"/Desktop/test.txt" into tInfile
> put $HOME &"/Desktop/outDir" into tOutDir
> put "cp tInfile tOutDir" into tCmd
> put shell(tCmd)
Just commenting your last line and w
I can confirm that the absolute file path does work using the Rev 4.0 (build
950) IDE in OSX but revCopyFile does not work from the command-line.
Also, in OS X, calling the shell from a Terminal session does not work
either: e.g.
put $HOME &"/Desktop/test.txt" into tInfile
put $H
Hi Klaus!
No, BUT it works with an ABSOLUTE filepath...
adding a note to the docs. *sigh*
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://
Wild guess:
Does it work if you add a SLASH to the targetfolder
-> revCopyFile tNewFilename,(pDestinationPath&"/bilder/")
> Cheers,
>
> malte
Best
Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com
___
use-
Slight correction.
This appears to work:
put URL ("binfile:"&tNewFilename) into URL
("binfile:"&pDestinationPath&"/bilder/"&tNewFileName)
However, this is quite suboptimal, as it reads the file into memory.
Cheers,
malte
___
use-revolution mailing
Hi all,
I am a little stumped on this one. :-(
trying to do:
revCopyFile tNewFilename,(pDestinationPath&"/bilder")
put the result
tNewFilename = -1_ds_7_2.jpg
(pDestinationPath&"/bilder" )=
/Users/maltebrill2/Documents/archaeodox/-1/-1_datensicheru
Thankyou for your reply...
Yes, the global variable gdefaultfolder has a
value , it is set when the stack first opens in the preOpenStack
handler using :-
---
global gdefaultFolder
on preOpenstack
se
2010 at 3:14 PM, John Dixon wrote:
>
> Hi
>
> Could someone tell me why revCopyFile and revCopyFolder will not work in
> the
> script below when run as a standalone under Mac OS X everything is fine
> in the IDE.
http://runtime-revolution.278305.n4.nabble.com/Problem-with-revCopyFile-tp2253990p2254158.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 subs
Josep...
Thanks for your quick reply... my knowledge of unix is positively dangerous, so
I have to ask the question 'Will your shell copy command solution work for a
file as well as a folder ?'
> I get the same problem and I solved using a shell copy command.
>
> put "your folder path A" into
Salut,
Josep
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Problem-with-revCopyFile-tp2253990p2254104.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@li
Hi
Could someone tell me why revCopyFile and revCopyFolder will not work in the
script below when run as a standalone under Mac OS X everything is fine
in the IDE...
The folders are created but the file and folder that I wish to copy are not
copied
amp; q(pTo)) into tcomm
get shell(tcomm)
else
--> Windows <--
set the hideconsolewindows to true
revCopyfile pFrom, pTo
end if
end copyFileToDest
I think that the function "revCopyfile" uses Applescript and there are
some issues...
Hope this helped,
Christ
A couple specific comments:
> did not work
> put specialFolderPath("DeskTop") into GVDeskTop
> set the defaultFolder to GVDeskTop
> revCopyFile "/MyFolder/MyFile.rev","MyFile.rev"
In the last line of this ..it does not look like you
Hi from Paris,
I am confused about the commands "revCopyFile" and "revCopyFolder", on
both my Mac and on my PC, especially in the context of "desktop". I
want to create files, folders and shortcuts on the Mac and PC desktops.
I am using Revolution DreamCard 2
h clean file names to write to RevCopyFile ran thru a copy of
1,758 files in no time at all.
Solved. Another example of "It's Not a Rev Problem at all...it's your
own dumb script!"
Sivakatirswami
On Aug 4, 2006, at 1:57 AM, Sivakatirswami wrote:
Goal: copy about
Hi Sivakatirswami,
Revolution issues the revCopyFile command but doesn't wait for the
result. You might try getting the result after executing the command,
although I don't know whether this really helps. I suspect that the
revCopyFile command uses AppleScript on Mac OS X. If an
On Aug 4, 2006, at 1:57 AM, Sivakatirswami wrote:
Goal: copy about 1,500 files from one set of directories to another
directory with a new name on the server, not on the client
machine, which is simply initiating, controlling the process
remotely.
Hi Sivakatirswami,
I had this same pr
r each line y in fld "soundFiles" # each record has a fld
w/list of .wav, .ra, .mp3 files to step through
RevCopyFile (oldpath &"/"& oldFileName), (newpath & "/" & new
file name
# an explicit instance if watching variable watcher would l
put empty into item -1 of myFolderPathName
if there is not a folder myFolderPathName then
create folder myFolderPathName
end if
revCopyFile "/Content/rubyonrails.pdf", myFolderPathName
rename file myFilePathName to myFileName
ancels, exit without saving
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp
no file is copied to the target folder however...
anybody have an example of a stack that co
I'm using revCopyFile to backup some files but if the file already
exists in the destination folder, revCopyFile (and revCopyFolder, it
turns out) returns an execution error. Has anyone been able to make
this work without using something else like a shell script?
Bug 2298 says:
- Addit
Thanks very much Scott, and thanks to Christian. This worked perfectly
and I think it's probably faster than using AppleScript the way
revCopyFile does.
Could this solution be of use in solving the similar "Emergency" that
someone was asking about yesterday?
Regards,
Sarah
O
"e&tSource"e&"e&tDestination"e) into
tCommand
get shell(tCommand)
Cheers from little Luxembourg,
Christian
---
On Apr 2, 2006, at 6:51 PM, Sarah Reichelt wrote:
Hi All,
I've spent the last hour struggling
Hi All,
I've spent the last hour struggling with the revCopyFile command which
works SOMETIMES! I am trying to copy an application bundle to a newly
created folder. The folder gets made OK, but 3 out of 4 times, it will
be empty and the result of the revCopyFole command is "execution
er
it without saving
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp
If you want to put content into a new file with a pre-determined file
name and path, then use the "u
> revCopyFile "/Content/rubyonrails.pdf",filePath
The key is the Rev defaultfolder definition.
That is the starting point for the relative path you have.
On the Mac, the full file path starts above "/Content"
This would work on the Mac if your (Rev defaultfolder) con
Hi Jonathan,
I think that you get away with it in Windows, because
the 'Start in' path coincides with the start of the
relative path to your source file.
And you should try and provide the full path, indeed.
Jan Schenkel.
--- Jonathan Kotthoff <[EMAIL PROTECTED]>
wrote:
> So what were really say
is the code:
on mouseUp
-- bring up a standard system "save as" file
selector
ask file "Save file as:"
-- if the user cancels, exit without saving
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Co
ncels, exit without saving
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp
no file is copied to the target folder however...
anybody have an example of a stack that copies
ing
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp
no file is copied to the target folder however...
anybody have an example of a stack that copies or an explanation
t;
> on mouseUp
>-- bring up a standard system "save as" file
> selector
>
>ask file "Save file as:"
> -- if the user cancels, exit without saving
>if it is empty then exit mouseUp
>-- put it into filePath
>put it into filePath
>
"Save file as:"
-- if the user cancels, exit without saving
if it is empty then exit mouseUp
-- put it into filePath
put it into filePath
-- Copy file
revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp
no file is copied to the target folder however...
anybody h
> Is it possible to have a progress bar while a file is being copied to
> a server with the revCopyFile command. The files are fairly large and
> take a minute or so to copy. The computer is actually copying the
> file but to the user it appears as if the computer has locked up.
>
Yes Sir, i know that ;)
The problem as I got it is that the stack freezes till the end of the
activity, since it is single threaded appl. And the GIF freezes at the current
frame, i remember having done something like this 2 yrs back. If it doesnt,
then great!
I dont know though whet
On Nov 15, 2005, at 5:15 PM, Vikram Singh wrote:
Maybe you can embed a small browser (without borders etc... I am
talking of Chipp's external) and play the GIF animation in the
browser, rather than in the stack directly (if I remember, it will
lock up/freeze too). I *think* the browser sh
ov 15, 2005, at 2:15 PM, Andrew Sharp wrote:
> Hello everyone,
>
> Is it possible to have a progress bar while a file is being copied
> to a server with the revCopyFile command. The files are fairly
> large and take a minute or so to copy. The computer is actually
> copying the
On Nov 15, 2005, at 2:15 PM, Andrew Sharp wrote:
Hello everyone,
Is it possible to have a progress bar while a file is being copied
to a server with the revCopyFile command. The files are fairly
large and take a minute or so to copy. The computer is actually
copying the file but to the
On 11/15/05 10:15 AM, "Andrew Sharp" <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> Is it possible to have a progress bar while a file is being copied to
> a server with the revCopyFile command. The files are fairly large and
> take a minute or so to copy. The c
Hello everyone,
Is it possible to have a progress bar while a file is being copied to
a server with the revCopyFile command. The files are fairly large and
take a minute or so to copy. The computer is actually copying the
file but to the user it appears as if the computer has locked up.
Any
Hello List,
Will using the RevCopyFile command overwrite a
an existing (and unlocked) file (i.e., if file X in
folder A is copied to a folder B in which a copy
of file X already exists)?
I've tested this out on Win2k with different types
of unlocked files and the answer appears to be
Hello Everyone,
I've just been playing with the revCopyFile command, trying to
create a simple backup routine for a project. It looks like the
command does nothing under OS X if a copy of the file is already in
the new location; it doesn't overwrite the copy or save th
Thanks all.
I probably will end up using the put method, as I intend to compress
the files anyway. I was just curious about revCopyFile, and whether
or not there was some way to suppress that audio. Sounds like there
isn't, at least not right now. There must be some way of doi
On Jun 22, 2005, at 12:59 PM, Chris Sheffield wrote:
Here's an stupid thing that I'm hoping someone can help with.
When using revCopyFile under 10.4.1, I'm getting the annoying sound
that plays whenever you move/copy a file or folder to another
location in the Finder.
When using revCopyFile under 10.4.1, I'm getting the annoying sound
that plays whenever you move/copy a file or folder to another
location in the Finder. In my opinion, revCopyFile should not play
that sound, but I'm sure it does just cause it uses system services
to do the copy
On 6/22/05 1:59 PM, Chris Sheffield wrote:
When using revCopyFile under 10.4.1, I'm getting the annoying sound
that plays whenever you move/copy a file or folder to another location
in the Finder.
Oops, sorry, you weren't asking about Windows files. You can still use
you
On 6/22/05 1:59 PM, Chris Sheffield wrote:
Here's an stupid thing that I'm hoping someone can help with.
When using revCopyFile under 10.4.1, I'm getting the annoying sound
that plays whenever you move/copy a file or folder to another location
in the Finder. In my opini
lded - bug hinting now ;)
cheers
Gzaviee (as pronounced ;)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Chris Sheffield
> Sent: Wednesday, June 22, 2005 21:00
> To: How to use Revolution
> Subject: revCopyFile under Tiger
Here's an stupid thing that I'm hoping someone can help with.
When using revCopyFile under 10.4.1, I'm getting the annoying sound
that plays whenever you move/copy a file or folder to another
location in the Finder. In my opinion, revCopyFile should not play
that sound,
Welcome, Chris.
Yes, you can copy a file without RevCopyFile. Depending on the file type,
you can...
put url ("file:"&tSourceFilePath) into url ("file:"&tDestPath) - for text
files
or
put url ("binfile:"&tSourceFilePath) into url ("bin
Joy! I can't believe it, but I've never noticed the shortcut reference
before!! I wonder how many other obvious things I've been missing...
On 17 Mar 2005, at 18:39, J. Landman Gay wrote:
Cmd-Shift-C (on Windows: Control-Shift-C)
For the stack script: Cmd-Shift-S (on Windows: Control-Shift-S)
F
Klaus -
thanks for the tips
If the files are not too big, read if they may fit into memory, you
can:
...
put url("binfile:MyHD/Myfolder/slickimage.psd") into
url("binfile:MyHD/anotherfolder/copy of slickimage.psd")
This would be perfect for me. I'd had a quick fiddle with this type of
approach,
On 3/17/05 10:17 AM, Chris Carroll-Davis wrote:
p.s. Is there a keyboard shortcut for calling up the card script ?
Cmd-Shift-C (on Windows: Control-Shift-C)
For the stack script: Cmd-Shift-S (on Windows: Control-Shift-S)
For more: Help menu -> Quick Reference Guides -> Shortcut reference
--
Jacque
e
with SC.
So have many of us :-)
So although I'm reasonably experienced at scripting with xTalk
(though: experienced<>proficient!)
I am quite a newbie when it comes to Rev. So be gentle with me.
My first question: Is there an alternative way to copy a local file
other than with RevCop
reasonably experienced at scripting
with xTalk (though: experienced<>proficient!) I am quite a newbie when
it comes to Rev. So be gentle with me.
My first question: Is there an alternative way to copy a local file
other than with RevCopyFile ? RevCopyFile seems to lock up my machine
From: Dick Kriesel <[EMAIL PROTECTED]>
Date: Tue Mar 8, 2005 6:50:31 PM Australia/Melbourne
To: How to use Revolution
Subject: Re: revCopyFile problems on OSX
Reply-To: How to use Revolution
on further testing the shell method...
get shell("ditto -rsrcFork
""e&s
On 3/7/05 8:41 PM, "Terry Judd" <[EMAIL PROTECTED]> wrote:
> Can someone who's already 'been there' suggest the best solution?
Well, I can't say it's the best solution, but it's working for me:
on copyFile pFile1,pFile2
delete file pFile2
s
Ello - I've run into the occasionally/often? bemoaned problem where
revCopyFile fails under OSX. It seems to be particularly flakey in my
case as I'm copying the same set of files in and out of various folders
during testing of an app I'm developing.
Searching the archive revea
Hi Dick,
I think at some stage revCopyFile changed from taking a file as the
destination to taking a folder name. Think of it as being the same as
option-dragging a file to another folder in the Finder. It makes a new
and identical copy of the file in the destination folder.
Your example stack
On Feb 14, 2005, at 11:26 PM, Dick Kriesel wrote:
I’ve tried everything I can think of to get revCopyFile to work in RR
2.5 on
OS X 10.3.8.
Everything I’ve tried results in “execution error.”
I just voted for BZ 2422.
Any clues, honored gurus?
-- Dick
Dick,
I could not manage to make that think
I¹ve tried everything I can think of to get revCopyFile to work in RR 2.5 on
OS X 10.3.8.
Everything I¹ve tried results in ³execution error.²
I just voted for BZ 2422.
Any clues, honored gurus?
-- Dick
___
use-revolution mailing list
use-revolution
Hello Christian,
It worked like a charm the very first time I tried it! I've been
hassling with that problem off and on for quite a bit. Fantastic. And
now I can say that I have used a shell() command. Who knows where that
may lead?
Many thanks from rainy Washington state.
-Scott Morrow
Ele
Hello Scott,
I think, if I understood what you wrote, I found a solution :
Here is what you can do (in a script) :
put PathOfSourceFile (e.g. "/Library/Receipts/BranchProposalSystem1.pkg")
into tSource
put PathOfDestination into tDestination (e.g. "/Users/userName/Desktop")
put ("cp -R -p ""e&tS
nd out that this concerned the OS X version; on Windows
revCopyFile was
working as expected...
Used "ditto -rsrc ..." and get shell() instead and voilà it worked for
the
OS X...
I thank myself for my help... ;-)
___
use-revolution mailing list
[EMA
t; & tFoldName)
create folder ("Dossiers/" & tFoldName&"/"&"data")
put ("Dossiers/" & tFoldName&"/"&"data") into tdestination
revCopyfile "sources/dataproj.rev",tde
Can anyone tell me if the revCopyFile command changed in Rev 2.5?
I have this code, which worked when I can compiled with Rev 2.2...
create folder "/Applications/myISP"
create folder "/Applications/myISP/logs"
revCopyFile "UpdateLog","/Applications/myISP/log
[EMAIL PROTECTED] writes:
>Anyone else notice that revCopyFile doesn't copy the Mac file type and
>creator?
>
>RR 2.2, Mac OS X
Seems to be fixed for b1
see :
http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?id=
On 8/23/04 4:43 AM, "Frank Leahy" <[EMAIL PROTECTED]> wrote:
> Anyone else notice that revCopyFile doesn't copy the Mac file type and
> creator?
Yes, I use the 'ditto' command through shell. Depending on your OS, you do
this:
10.3 or later:
ditto --rsr
Thanks for all the help. The folder where the file is has thousands of
files, and getting files details is just way too slow. However, I
think I've found a work-around. On http://www.macosxhints.com, I found
a reference to a terminal command called "SetFile". It's available
here (/Developer
What is the best way to preserve file modification date/time when copied
to a Windows 2000 server?
Hi James,
The detailed version of the files function returns, among other
things, the modification dates for each file in the defaultFolder.
So one needs to:
A. Save the defaultFolder if it need
What is the best way to preserve file modification date/time when copied
to a Windows 2000 server?
I need to preserve the modification date when a file is copied from a
user's local MacOSX (10.2.x) to a Windows 2000 server. By default,
"revcopyfile" does not preserve the mod
into tCommand
get shell (tCommand)
why?
b) use of "get" why is it needed? is it because this is a function and
not a command?
Thanks, this list is such a great resource...
Aloha from Kauai
Sivakatirswami
On Sunday, October 5, 2003, at 09:28 PM, Brian Yennie wrote:
I can't
|
| cc:
|
| Subject: RE: revCopyFile broken on OS X?
|
>-------|
RevCopyFile uses "cp"
RevCopyFile uses "cp" through the shell, which copies attributes but
does not copy the resource fork properly.
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[
I can't speak to revCopyFile, but on OS X there is a shell command for
copying files with resource fork intact. If that's not what revCopyFile
is using, you could try it:
get shell("ditto -rsrcFork
""e&sourcePath"e&"e&destPath"e)
You might
problem is
revCopyFile
is not behaving as documented on OS X... purportedly it should:
"... the revCopyFile command provides certain advantages. It copies
file attributes (such as file type) and Mac OS resource forks along
with the file. It also does not require reading the entire file into
;Sent: Fri, 20 Jun 2003 19:36:41
>
>>revCopyFile uses an Applescript and as I found to
>my cost, there are
>>many undocumented changes between the AppleScript
>of OS 9 and that of
>>OS X :-(
>
>>If the files are small enough to fit into memory,
>you could try using
>
>revCopyFile uses an Applescript and as I found to my cost, there are
>many undocumented changes between the AppleScript of OS 9 and that of
>OS X :-(
>If the files are small enough to fit into memory, you could try using
>get URL and then put URL to re-save into the new locatio
revCopyFile uses an Applescript and as I found to my cost, there are
many undocumented changes between the AppleScript of OS 9 and that of
OS X :-(
If the files are small enough to fit into memory, you could try using
get URL and then put URL to re-save into the new location. if the files
are
ter "JPEG,*.jpg"
revCopyFile it,"My Folder" -- this folder is in the Rev folder
end mouseUp
Pressing the button returns "compiler error".
I've tried several versions of it including a try with full URLs. Can any
one tell me where is my mistake ?
I'm stil
>>When I have tried to use the revcopyfile funtction lately, I have not
>>been able to get it to work. I am using this script.
Here is something I discovered that might pertain to this. I decided to try
and get a file to copy using the shell command. However, I discovered I
coul
>Check "the result" after doing the revCopyFile. Also, make sure that the
>folder you are choosing is a valid writable folder.
The result returns nothing, so Revolution appears to be thinking it is
working fine.
>
>Apart from that, all I can tell you is that it works fine
Check "the result" after doing the revCopyFile. Also, make sure that the
folder you are choosing is a valid writable folder.
Apart from that, all I can tell you is that it works fine on Mac OS X :-)
Sarah
On Wednesday, July 24, 2002, at 05:05 AM, Scott Slaugh wrote:
> When I
When I have tried to use the revcopyfile funtction lately, I have not been
able to get it to work. I am using this script.
answer file "what"
put it into whatfile
answer folder "where"
put it into whatfolder
revcopyfile whatfile,whatfolder
No matter what file I pick, or f
When I have tried to use the revcopyfile funtction lately, I have not been
able to get it to work. I am using this script.
answer file "what"
put it into whatfile
answer folder "where"
put it into whatfolder
revcopyfile whatfile,whatfolder
No matter what file I pick, or f
this stage.
And to the query of one of the responders, yes, "elsewhere" is the name
of the hard disk on my portable. The desktop is somewhere. You have to
have a convention :-)
thanks
david
On Thursday, April 25, 2002, at 03:23 , Karl Petersen wrote:
> David,
>
> After the re
David,
After the revCopyFile call, try looking at the result. If it is
"execution error" then something went wrong with the AppleScript. (In
the Mac OS, revCopyFile uses AppleScript to "tell" the Finder to copy
the file to the destination folder. Presumably revCopyFil
I posted this last Thursday but as yet have no response. No-one have a
problem with revCopyFile or this script?
The problem is that the copy fails silently. The bit about displaying
the paths is simply to point out that the variables are mysteriously
emptied by the failed copy attempt.
If
I am trying to use revCopyFile for the first time. In the course of
trying to work out why it does not do it for me, I put the following
test script in the message box:
put "/Elsewhere/Users/davidv/Desktop/Telstra usage" into sPath
put "/Elsewhere/Users/davidv/tmp/"
- Great news! I sure need it. Messing with the dos prompt
has never been one of my abilities.
/Niklas
We will include a revCopyFile command in 1.1.1 which will
copy a file on any
OS including the correct creator type and the resource
fork, without loading
the entire file into memory if it is
91 matches
Mail list logo