I need your help to decode what is in the clipboard (return clipboard info)
I need your help to decode what is in the clipboard (return clipboard info)
- Subject: I need your help to decode what is in the clipboard (return clipboard info)
- From: Emile SCHWARZ <email@hidden>
- Date: Sun, 25 Feb 2007 15:35:37 +0100 (CET)
Hi all,
I select and copy an application from the Finder, and, using the following Script:
return clipboard info
I get:
{{string, 10}, {Unicode text, 20}, {«class hfs », 80}, {«class utf8», 10}, {«class ut16», 22}, {picture, 42}, {«class icns», 22138}, {«class furl», 55}}
As everyone can guess from the list, these are a list of 8 objects, each object having a type and a length. As an example, here’s the decodage of the first object:
{string, 10}
string = class type
10 = length in gytes
In this 8 object list, I have two questions:
1. Please confirm (or deny and say what it is if I am wrong and you know why):
------------------------------------------------------------------------------
«class ut16» = Text string with utf-16 encodings?
2. Where can I find the informations about the {«class hfs », 80} object ?
--------------------------------------------------------------------------
What I have found (if correct) until now is:
0000: OSTYPE File Type
0004: OSTYPE Creator Type
0008: Word unknow (two bytes)
000A: Word File VRefNum ? (two bytes)
000C: Word unknow (two bytes)
000E: Word Folder DirID ? (two bytes)
0010: PString Item name (Byte length followed by the item name without encoding) [1]
0030: unknow contents
and I do not have a single idea of what follows in the remainder $20 bytes.
Idea, book to read, URL, whatever, please.
TIA,
Emile
[1] If the file name length is > 31 bytes, we get the "file name truncated at 22 chars ending with # and a 4 digits code followed by the extension (.png in my example)"
_______________________________________________
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