Re: Writing multiple files to clipboard
Re: Writing multiple files to clipboard
- Subject: Re: Writing multiple files to clipboard
- From: Axel Luttgens <email@hidden>
- Date: Sun, 12 Dec 2010 14:04:07 +0100
Le 12 déc. 2010 à 10:48, Robert Krüger a écrit :
> Hi,
>
> thanks for the quick reply but it did not work that way either. I didn't get a "Paste items" menu entry.
>
> However, when I added "as «class furl»" I got "paste item" (still not correct, should be "items") but then the paste command failed with an error saying that one or more of the items no longer existed.
Hello Robert,
I fear things are a bit more complicated.
When copying a single item here in the Finder, the clipboard info looks like this:
--> {{«class furl», 75}, {«class icns», 165529}, {«class ut16», 28}, {«class utf8», 13}, {«class 8BPS», 251590}, {«class BMP », 1048630}, {«class TPIC», 332691}, {TIFF picture, 1050218}, {«class PNGf», 143564}, {«class jp2 », 65642}, {GIF picture, 41965}, {JPEG picture, 43847}, {string, 13}}
That is, it looks like the Finder puts much more than just a furl on the clipboard: various string representations of the item's name, icons, possibly previews...
On the other hand, copying two items yields:
--> {{«class furl», 75}, {«class ut16», 104}, {«class utf8», 51}, {string, 51}}
Either the Finder now stores some info somewhere else, or Standard Additions' clipboard-related commands aren't able to interpret the information stored in the Finder's clipboard.
Add to this the fact that the Finder's dictionary indicates that the "copy" command and the "clipboard" element aren't available yet.
At best, in the current state of affairs, it seems that the data put on the clipboard by the Finder should be viewed as a kind of black box.
> Weird, this must be doable in a simple way.
Depending on your needs, making use of Finder's "select" command and then of some GUI scripting:
tell application "System Events" to tell application process "Finder" to keystroke "c" using command down
could be of some help.
HTH,
Axel
_______________________________________________
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