🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19119

Re: Compiling odl file on MAC

#19119
From: Dave Saunders
Date: Mon, 20 Jan 2003 12:19
19 lines
1491 bytes
Where is this function located? Is it elsewhere in the script you're running? If so, then what you should do is just call it, not put it inside those two tell statements.

If your script needs a reference to a document as a parameter, then you should pass that inside the parentheses.

If you need to call a function from inside a tell loop then you need to say:

DoDocEvent() of me

or

my DoDocEvent()

either of these tells the scripting language to ignore the containing tell constructions. But they only work if the function is part of the script in question. If it's an external function then you must first bring it into scope by using Load Script.

This is all AppleScript conventions more that InDesign specific.

Hope this helps.

Dave
Technical Details
Message-ID: <1de774a0.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de774a0.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e91471ad23a2d52b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-20 04:39:20 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Compiling odl file on MAC
Message-ID: <1de774a0.0@WebX.la2eafNXanI>
Date: Mon, 20 Jan 2003 04:19:53 -0800
References: <1de774a0.-1@WebX.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit