revCopyFile : compiler error
Sarah
sarahr at genesearch.com.au
Thu Jun 19 20:55:00 EDT 2003
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 too big, you could still use open/close, read & write commands to
copy the file yourself.
Alternatively, find the AppleScript that revCopyFile uses, test it in
the AppleScript Script Editor and put it back into your stack for use
with OS 9.
Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/
On Thursday, June 19, 2003, at 01:26 pm, Romain Lafourcade wrote:
> Hello all !
>
> I'm working on an on-screen-portfolio-maker.
>
> At one moment the user is supposed to choose an image file somewhere
> on his
> machine and place a copy of it in a previously created folder.
> The script look like this :
>
> on mouseUp
> answer file "Select an image :" with filter "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 still on Rev 1.1.1 / G4 / Mac OS 9.2.1 / 320 Mb RAM
>
> Thanks, Romain
More information about the use-livecode
mailing list