Applescript - issue command from a variable

Ketan Majmudar - Spirit Quest ket at spiritquest.co.uk
Sun Jun 15 13:51:01 PDT 2003


Hi,

I have one problem with my applescripting at the moment:

running OG 2.1.1 on os X 10.2.4

I am working on a script that will 'sense' a web site structure mapped out in OG, then create the
folder and file structures using templates pre-created in BBEdit. The templates will have include
statements so that the site (which is PHP driven) will only then need to be opened for content
addition. As there will be over 200+ pages in the site, the idea of using OG as the visual design,
then once approved run the script and the structure is on your HD>

Here is my problem:

One routine I am working on is the recursive checking of children shapes (connected to outgoing
lines). To begin with I am setting the recursive depth using a variable 'z'. The routine loops
through the routine z times to create the proper syntax for the command.

eg when I set z to three, this is what the routine provides:

text of source of incoming lines of (source of incoming lines of (source of incoming lines))

this is stored in a variable 'display'. 

My question is if this is in the variable display, how can I tell OG to run the command set
newVariable to 'display' without OG simply copying the 'text' of display to the new variable ?

Ideally I will be sotring the returned value from OG into a list, but to begin with I want to return
the text of the sourced object as a variable.

I know this is an applescript issue - but I can't remember how I do this ..

any help would be appreciated.

Regards,

Ket
--
Ketan K Majmudar
Spirit Quest
w:: http://www.spiritquest.co.uk
e:: ket at spiritquest.co.uk
t:: +44(0)20 8346 7553
----------------------------
Holistic - Ethical - Local - Global Solutions 



More information about the OmniGraffle-Users mailing list