• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
accessing raw data (was: Re: 24U 'post notification')
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

accessing raw data (was: Re: 24U 'post notification')


  • Subject: accessing raw data (was: Re: 24U 'post notification')
  • From: Gary Lists <email@hidden>
  • Date: Mon, 07 Jul 2003 20:44:34 -0400

SUBJECT CHANGE BY O.P.

original subject: 24U 'post notification'
new subject: Accessing Raw Data


On or about 7/7/03 7:59 AM, julifos wrote:

> (somebody with a more complete explaining of *data*?)
<clip>
> ________________
> * brief info, ASLG, page 120

Okay, I didn't definitively answer my own question, but I think the answer
is: No, one can not access any of the literal returned result of class data.

Granted that I may not be seeing the forest for the trees, can I not, taking
JJ's example of:

"k" as C string
--> <<data cstr6B00>>

...and, being given only <<data cstr6B00>>, go backward, to determine that
this data is a 'cstr' with a value of '6B00' ?


Here is what I found in the ASLG. I've made effort to "synch up" the web and
pdf references.

For display purposes (though harder to utilize as links) I'm only
referencing the actual HTML page file name for the ASLG on the web.

The stub URL is:
http://developer.apple.com/documentation/AppleScript/Conceptual/

then: AppleScriptLangGuide/
then: [pagename]


1 =====================
At web [AppleScript.28.html]
At PDF [p56]

Common Value Class Definitions

Data - Raw data that cannot be represented in AppleScript, but can be stored
in a variable

2 =====================
At Web [AppleScript.2c.html#21842]
At PDF [p61]

Common Value Class Definitions: Data

A value of class Data is data returned by an application (in response to a
command) that does not belong to any of the other value classes defined in
this chapter. A value of class Data is raw data that can only be stored in a
variable.

For more information on raw data, see 3Raw Data in Parameters2 (page 120).

PROPERTY: Class The class identifier for the object. This property is
read-only, and its value varies depending on the application.
ELEMENTS: None
OPERATORS: The operators that can take values of class Data as operands are
= and 1.

** I can understand =, but what is 1 (just out of curiosity)?


3 =====================
At Web [AppleScript.2c.html#21842]
At PDF [p120] -- thanks JJ..I started from here

Using Parameter: Raw Data in Parameters
Some application commands return values that do not belong to any of the
normal AppleScript value classes. For example, the Edit Graphic command
supported by some graphics applications returns values that belong to the
class Data, which is described in 3Data2 (page 61).

4 =====================
At Web [AppleScript.3f.html#19601] (Fig. 3.3)
At PDF [p99] (Fig. 3.3)
At PDF [p364 / Appendix A] (Fig. A-1)

These tables show that there are no coercions available ( data -> data ) is
the only intersection.


--
Gary

MacOS 9.1 / "9 is Fine"
OMM: osa:AS 183 / osa:JS 103 / FM 55 / BB 612 / Smile 188
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: 24U 'post notification' (From: julifos <email@hidden>)

  • Prev by Date: Re: 24U 'post notification'
  • Next by Date: copy Mac HD to remote share
  • Previous by thread: Re: 24U 'post notification'
  • Next by thread: Creator type of packaged app bug?
  • Index(es):
    • Date
    • Thread