Re: Converting application classes to raw codes in chevrons
Re: Converting application classes to raw codes in chevrons
- Subject: Re: Converting application classes to raw codes in chevrons
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 2 Oct 2006 18:20:53 +0200
Le 2 oct. 2006 à 17:11, T&B a écrit :
How can I convert application specific class names to raw Apple
Event codes (in chevrons etc), so I can use them outside of a tell
app block?
For instance, if I tell AppleWorks to get the properties of a
graphic object:
tell application "AppleWorks 6"
tell drawing area of front document
set myProperties to properties of graphic object 1
end tell
end tell
which gives:
{class:graphic object, index:1, bounds:{109, 134, 244, 287}, fill
color:{56797, 0, 0}, fill pattern:2, fill gradient:off, fill
texture:off, name:"", pen color:{0, 0, 0}, pen pattern:2, pen width:
1.0, rotation:0, text wrap:no wrap, wrap gutter:5, lock:read write,
graphic object:{class:oval, index:1}}
Now, how can I get the bounds, fill color etc of myProperties
outside of a tell app block? I think I need to use the raw codes of
those classes, such as:
tell application "AppleWorks 6"
tell drawing area of front document
set myProperties to properties of graphic object 1
end tell
end tell
set myBounds to <<boundsClass>> of myProperties
set myFillColor to <<fillColorClass>> of myProperties
But how can I find out what <<boundsClass>> and <<fillColorClass>>
are really supposed to be?
Years ago I did this by deleting the target app, opening the script
in Script Editor, and choosing SimpleText (which had no scripting
dictionary), to force it to decompile the AppleScript code words.
Does that still work? Is there a better way?
I try to respond before Emmanuel: use Smile ;-)
Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden