Opps! That won't work either, I think that should do it tho:

ask file "Save File As:"
if it = empty then exit mouseUp
put it into myFilePathName
set the itemDelimiter to "/"
put item -1 of myFilePathName into myFileName
put myFilePathName into myFolderPathName
put empty into item -1 of myFolderPathName

if there is not a folder myFolderPathName then
  create folder myFolderPathName
end if

revCopyFile  "/Content/rubyonrails.pdf", myFolderPathName
rename file myFilePathName to myFileName

Hope this Helps
All the Best
Dave

------------------------------------------------------------------------ --------
Try doing this:

  if it is empty then exit mouseUp
put it & "/" into filePath

IOW, add a "/" to the end of the file path.

I think that should make it work.

All the Best
Dave


On 30 Mar 2006, at 21:36, Jonathan Kotthoff wrote:

This does not seem like it should be this hard...I must be missing something...i am running 2.7 making a simple stack that will copy a file to a target on Winows XP and Mac OS X.4...

here is the code:

on mouseUp
  -- bring up a standard system "save as" file selector

  ask file "Save file as:"
-- if the user cancels, exit without saving
  if it is empty then exit mouseUp
  -- put it into filePath
  put it into filePath
-- Copy file
 revCopyFile "/Content/rubyonrails.pdf",filePath
end mouseUp

no file is copied to the target folder however...

anybody have an example of a stack that copies or an explanation

Thanks in advance...

Jonathan
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to