copying files
    Yennie at aol.com 
    Yennie at aol.com
       
    Tue Feb  4 13:33:01 EST 2003
    
    
  
You'll have to refer to an AppleScript reference for that syntax, but 
generally you should be able to take a script which runs in Script Editor, 
paste it into a field in Metacard, and do this:
do (fld "CopyAppleScript") as applescript
If you want to merge in some values from the current script, do this:
do merge(fld "CopyAppleScript") as applescript
And inside your script, put a placeholder like this:   [[ myPathName ]]
I believe AppleScript paths want ":" delimiters, although there are also 
utilities for dealing with POSIX (i.e. Metacard) paths.
If you need to convert, you should replace "/" with ":" and add the volume 
name to the front.
Ex: "/Folder/MyFile.txt"    becomes    "Macintosh HD:Folder:MyFile.txt"
For shell(), see the "mv" or "cpy" commands. You can get the syntax by 
launching the "Terminal" application and running "man cpy" or "man mv".
You should be able to do something like this:
get shell("cpy"&&oldPath&&newPath)
You will need to use command line flags to copy directories/folders.
HTH,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030204/4c7d74a7/attachment.htm
    
    
More information about the metacard
mailing list