• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help duplicating file, desesperated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Help duplicating file, desesperated
      • From: Bill White <email@hidden>
  • Prev by Date: Re: Folder compare
  • Next by Date: Re: Help duplicating file, desesperated
  • Previous by thread: Re: Folder compare
  • Next by thread: Re: Help duplicating file, desesperated
  • Index(es):
    • Date
    • Thread