🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18315

gold section applescript

#18315
From: paul yoon
Date: Sun, 06 Apr 2003 11:56
26 lines
2052 bytes
I started making this script and was asking for help in the "indesign for mac" forum, but i guess it's more appropriate to have it here.

the script is more or less done, but if anyone has any feedback i'd be very glad to hear it. you can find it (and a little explaination) here <http://www.tfisf.com/extra/applescript/>

olav had this to say, and i'm a little confused (applescript is not my strong point)


      Just a slight AppleScript style note--by convention, handlers (the subroutines
      that start with "on") go at the end of the script.

so after the last "end tell"?

      Also, when you get a "could not continue <handler_name>" error, it's usually
      because you're referring to it from inside another subroutine. In those
      cases, either put "my" before the handler name when you call it, or add
      "of me" after the handler name. ("Me" being the script itself.)

are you getting errors?

instead of "on sine_of(anglea)", i should write "on sine_of(anglea) of me"?

also- i had trouble with re-using the sin and tan functions-- if i wanted to take the sine of some other angle, i presume i can't just substitute the new angle "angleb" in, right? like this:

set bsin to sine_of(angleb)

or can i? maybe i ought to try it out before i bug people for help, eh?
Technical Details
Message-ID: <1de89e08.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a433353972ca3922,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-06 04:09:49 PST
From: "paul yoon" <adobe@dissostichus.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: gold section applescript
Message-ID: <1de89e08.-1@WebX.la2eafNXanI>
Date: Sun, 6 Apr 2003 03:56:43 -0800
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit