Help duplicating file, desesperated
Help duplicating file, desesperated
- Subject: Help duplicating file, desesperated
- From: "Raul Anfibic" <email@hidden>
- Date: Wed, 5 May 2004 13:32:07 +0200
Hi All,
I'm a PC user,
I'm making an application to duplicate a file passed with a parameter
In a MAC with OSX
Using this code: duplicate "disk:folder1:filename.pdf" to "disk:folder2:"
I works!!
But the problem beguins using external values
Using this code:
-Getting the name of the disk
set chav to (path to me) as string
set vol to text item 1 of chav
tell application "Finder"
activate
-- vol is "diskname"
-- chemin is a string "folder:file.pdf"
set theFileToDuplicate to vol & ":" & chemin
-- How can I convert "theFileToDuplicate" to a string?, is this
going wrong?
set theFolderToRecieveFile to choose folder with prompt "Where don
you want to write file?"
duplicate theFileToDuplicate to theFolderToRecieveFile
end tell
I doesn't work
I'm desesperated looking for the problem, what can I do?
Can someone please help?
Any suggestion will be appreciated.
Thanks On Advance
Razl Garcma
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.