copy move folder code
Posted: Thu Mar 12, 2009 8:11 pm
I have been working with some code, that works well for files.
But not for folders.
I can see that the binfile designation does not work, but I was just experimenting on a process that might lead me, (the blind man) to
a solution,
any suggestions are always appreciated,
But not for folders.
Code: Select all
on mouseUp
put the filename of this stack into fPath
set the itemDelimiter to "/"
put empty into the last item of fPath
put "WP_dist" into myVar
put (fPath &myVar) into myFolderPath
--looking at result to see if path is correct
put myFolderPath into fld "testing"
get $folderPath_wpconfig
put "/WP_dist" after it
put it into myFolder
-- checking path
put myFolder into fld testing2
-- I am sure this is where I am going wrong, tried folder, but nothing
--occurs, binfile and file product an empty document with correct title.
put url ("binfile:" & myFolderPath) into url ("binfile:" & myFolder)
end mouseUp
a solution,
any suggestions are always appreciated,