Writing multiple files to clipboard
Writing multiple files to clipboard
- Subject: Writing multiple files to clipboard
- From: Robert Krüger <email@hidden>
- Date: Sat, 11 Dec 2010 21:53:40 +0100
Hi,
I'm failing to achieve a seemingly simple thing. I want to write files into the clipboard so they can be pasted into Finder.
This works well for a single file, using this code:
set theFile to POSIX file "/users/krueger/tmp/file1.dat"
set the clipboard to theFile
However, when I try to put multiple files into the clipboard by the naive approach,
set theFile1 to POSIX file "/users/krueger/tmp/file1.dat"
set theFile2 to POSIX file "/users/krueger/tmp/file2.dat"
set fileList to {theFile1, theFile2}
set the clipboard to fileList
I don't get a "Paste Items" menu entry in Finder.
When I compare clipboard info to when I actually select those files in Finder, there is a difference. With my code the clipboard data is listed a "list" while for the data put into the clipboard by Finder it is "class furl".
Any hints appreciated.
Cheers,
Robert
P.S.: Is it normal that the list archive search doesn't work? I've been trying for the past two days. Browsing through the archive month by month is not really an option. Is there a non-apple searchable archive that anyone can recommend?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden