Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!pasteur!agate!ig!uwmcsd1!leah!itsgw!steinmetz!uunet!mcvax!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.sys.mac.programmer Subject: Re: ResEdit Clipboard Format? Message-ID: <351@piring.cwi.nl> Date: 8 Jun 88 09:28:06 GMT References: <4717@husc6.harvard.edu> <3111@polyslo.UUCP> Reply-To: guido@cwi.nl (Guido van Rossum) Organization: The Royal Society for Prevention of Cruelty to Amoebae Lines: 20 In article <3111@polyslo.UUCP> dorourke@polyslo.UUCP (David O'Rourke) writes: > It is my understanding that the format of the data on the Clipboard is >just the same as the resource that was copied. So if you were to copy a >"BNDL", ResEdit would put a resource of type "BNDL" on the clipboard. Now >most applications don't support "BNDL" data types, so they don't allow you >to "import" them. It's your guess against mine, but I don't believe you. First, ResEdit can copy and paste a collection of resources, so it must have a way of storing many resources in a single scrap entry. Second, to get anything from the clipboard (without cheating) you must pass a type (a four-letter word) to GetScrap. My guess is that ResEdit uses its own type, and undoubtedly someone with a debugger can peek into the scrap mgr's administration to see what that type is. From then on, decyphering the information that's there should be simple enough. (You might also have a look at the ScrapBook file, if that's still supported). Good luck! -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl@uunet.uu.net