Re: How to access raw data (as seen in chevron syntax)
Re: How to access raw data (as seen in chevron syntax)
- Subject: Re: How to access raw data (as seen in chevron syntax)
- From: Matthew Strange <email@hidden>
- Date: Wed, 7 Jul 2010 15:25:46 -0400
Sorry for the delayed reply...
Date: Sat, 3 Jul 2010 01:04:42 +0200
From: Tommy Bollman
About getting the picture data:
How about coercing the clipboard to a record, presumably you have
Script Debugger so that you can see the properties, of the record
returned.
Then write the so and so many bytes as unicode text (text) to a
file of class utf16, then you could read back the the parts you
wanted as string and convert
them to number as you see fit, (Hex-Edit may help you with the
interpretation - finding the correct offsets in the contents of
that file) . It would of course be a painfully slow process, but I
think it should work as long as you can get PICT data of the
clipboard.
Coerce the clipboard to a record works, but then you have a record
containing a picture. There is still no way to access the individual
bytes in memory. Writing the bytes to a file allows you to recreate
the PICT file, but the old header info is lost.
It appears there's just no way to read raw data into memory and then
manipulate that data short of writing it out to a text file and then
reading it back in. Writing to a scratch file isn't that bad, and I
wouldn't have thought of that without input from the list. Thank you
to all.
Asides: Script Debugger is indispensable. I use "HexEditor" instead.
The developer (Raphael Sebbe) seems to have moved on to other
pursuits, but I started using it early on and still like it.
Date: Sat, 03 Jul 2010 09:24:39 +1000
From: Shane Stanley
While we're digressing, if you're on 10.6 and you want to try
AppleScriptObjC, you can get the dimensions easily enough...
Ahhh yes, if only scripting wasn't a side hobby of mine. Someday... ;^)
Matt Strange
Autograph Systems
An Authorized Apple Reseller
www.autographsystems.com
_______________________________________________
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