revCopyFile problems

Sarah Reichelt sarah.reichelt at gmail.com
Mon Apr 3 22:10:20 EDT 2006


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


On 4/3/06, Scott Morrow <scott at elementarysoftware.com> wrote:
> Sarah,
> I was having what I think was a similar problem a while back (trying
> to copy an AppleScriptExtension.osax from within a bundle to another
> folder) and Christian posted this shell script which, for me, worked
> like a charm.
> ----------------------------------------------------------------
> On Sep 22, 2004,  Christian Langers wrote:
>
> 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 "&quote&tSource&quote&&quote&tDestination&quote) 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 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
> > error". Then it will just work!
> >
> > Now I can't get it to work at all.
> >
> > I construct variables to hold the folder path & bundle path and they
> > are as follows:
> > tBundle: /Users/sarah/Desktop/Updater test/TestApp.app
> > tFolderPath: /Users/sarah/Desktop/Updater test/Archives/20060403_1/
> >
> > I verify their existence using "there is a folder" (OS X apps are
> > really folders).
> >
> > Then I try:
> >     revCopyFile tBundle, tFolderPath
> >
> > I've tried revCopyFolder too even though the docs state that
> > revCopyFile is the one to use for app bundles.
> >
> > Any ideas?
> > Sarah
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list