LocationReference
Alias
, Data
, JaplScriptFile
, Picture
, Record
, ReferenceImpl
, Tdta
, TypeClass
public interface Reference
object part
and an application part
.object part
points to a specific
object within an application, e.g. first window
.
The object part
points to the scriptable application itself, e.g. Finder
.
Together they form a complete
Object Specifier,
e.g. first window of application "Finder"
.As mentioned above, in most cases, a reference is an Object Specifier, and not strictly identical to an AppleScript Reference.
Codec
,
AppleScript Language GuideModifier and Type | Method | Description |
---|---|---|
<T> T |
cast(Class<T> klass) |
Cast this object to another AppleScript type.
|
String |
getApplicationReference() |
Application reference.
|
String |
getObjectReference() |
Object reference.
|
TypeClass |
getTypeClass() |
Returns the AppleScript runtime class for this object.
|
boolean |
isInstanceOf(TypeClass typeClass) |
Indicates whether this object is an instance of the given
TypeClass . |
String getObjectReference()
String getApplicationReference()
<T> T cast(Class<T> klass)
T
- target typeklass
- type to cast to@Type("type") @Name("class") @Code("type") @Kind("property") TypeClass getTypeClass()
Note that the runtime may be different from the class corresponding to the Java interface you are currently using as a proxy, i.e. the Java interface may be less specialized.