Script Object...
Script Object...
- Subject: Script Object...
- From: Simon Forster <email@hidden>
- Date: Thu, 29 Jul 2004 19:20:31 +0100
My recollection of this may be wrong but I thought one could use script
objects to dynamically assign the name of a property you want to fetch.
Unfortunately, I haven't paid much attention to this in the past and
now I'm not too sure what to search on to get a sensible result.
I'm scripting OmniGraffle and I'd like to get the id of the shape whose
text property is "Start". Unfortunately the whose reference form
doesn't work (unless I've got that wrong too!) so I was going to write
a generic handler which'll return the value of the property label
passed to the handler as an argument.
What I'm trying to do is something like:
set propertyName to "text"
set propertyValue to "Start"
if propertyName of shape i = propertyValue then
...
If I call this from within a loop I can get the appropriate shape. But
of course this doesn't work. I thought that one could do something with
script objects to get this sort of construct to work but can't figure
out how - nor can I figure out what to search on to answer this
question.
Actually, reading though this I'm not sure I even know how to ask the
question }:-o
Does anyone know what I'm getting at here?
TIA
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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.