New topic: Copy file from Shell doesn't seem to work
<http://forums.realsoftware.com/viewtopic.php?t=24882> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message brianheibert.com Post subject: Copy file from Shell doesn't seem to workPosted: Mon Oct 20, 2008 2:04 pm Joined: Thu Jan 25, 2007 7:38 pm Posts: 349 Location: Loveland, OH USA Copying files from the shell command doesn't seem to work for some reason I enter the full path in my original file edit field and my duplicate file edit field and nothing happens. Is it possible to use a AppleScript to do this? If so how would I do that? But anyway here's my shell code Code: dim original as string dim copy as string dim sysversion as integer dim myOSErr as Boolean myOSErr =system.gestalt("sysv",sysversion) original = CopyMate.OrigFilePath.text copy = CopyMate.DuplicateFilePath.text If TargetMacOS and sysversion >1040 then dim copyshell as shell copyshell = new Shell copyshell.execute "cp "+original+" "+copy else MSGBOX "CopyMate requires MacOS X (v10.4.x or higher)." quit end if Brian Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
