home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-09 | 539.5 KB | 11,744 lines | [TEXT/R*ch] |
- Subject: April MacScripting Digest
- Date: Mon, 02 May 94 17:02:40 -0500
- From: Fred Terry <pfterry@lks.csi.com>
-
-
- This is the April digest of the MacScripting mailing list.
-
- =========================================================================
- Date: Thu, 31 Mar 1994 15:45:33 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Adam C. Engst" <ace@TIDBITS.COM>
- Organization: TidBITS
- Subject: Frontmost memory leak
-
- Someone forwarded this to me - I can't vouch for it's accuracy, but
- I thought I'd mention it so people could either say it's not true
- or be aware of it...
-
- cheers ... -Adam
-
- # 3. I have found that when using the FrontMost editor (AppleScript 1.1) or
- # running a droplet built using same, that 100k to 400k of system heap is used
- # but not released when those appls are quit. We have tried it on Macs from
- # the orig Mac II to an 840 AV, all running Sys 7.1 with the same results.
- # Someone at SOS-APPl is looking into it, but while on the phone, he quietly
- # admitted he is running Sys 7.5!
-
- --
- Adam C. Engst, TidBITS Editor -- ace@tidbits.com -- info@tidbits.com
- Author of The Internet Starter Kit for Macintosh -- tisk@tidbits.com
- =========================================================================
- Date: Fri, 1 Apr 1994 08:21:58 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Ronald J. Logsdon" <RJ@SHEBUTE.COM>
- Subject: UNSUBSCRIBE APPLESCRIPT
-
- UNSUBSCRIBE APPLESCRIPT rj@shebute.com
-
- Ronald J. Logsdon
- Shebute'
-
- http://Shebute.com/Humans/RJ_Logsdon.HTML
- =========================================================================
- Date: Fri, 1 Apr 1994 08:30:54 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS: One More Time
-
- We've had to unsub attempts to the main list in as many days, so it is time
- to send this out again. Please retain this for your records and refer to it
- when you need to change your status on the list.
-
- For the record, the list name is "MACSCRPT" and should be addressed as such
- to "Listserv@dartmouth.edu" rather than to this list or to the request list
- (the latter of which should be used when you need to speak to a human
- administrator of this list when something goes wrong with the listserv
- program itself).
-
- The relevent addresses you need to know are as follows:
-
- * LISTSERV@dartmouth.edu
- the master controller. Mail is handled by computer
- so you have a limited set of commands you can send it.
- (Sending the HELP command will get you basics on this
- including instructions on how to sign off the list and
- set basic options for yourself like whether you want to
- receive the list in digest format or not)
-
- * MacScripting-Request@dartmouth.edu
- Fred Terry and Andy J. Williams, the list administrators.
- We can be contacted when you have a problem with the LISTSERV
- program above or when you have any administrative questions.
-
- * MacScripting@dartmouth.edu
- the distribution list. Mail sent here goes to
- all the recipients.
-
-
- If you have ANY questions at all please contact us at
- MacScripting-Request@dartmouth.edu.
-
- -A
- =========================================================================
- Date: Fri, 1 Apr 1994 07:49:53 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stewart-CIC-IS <Stewart-CIC-IS%micmac@REDSTONE-EMH2.ARMY.MIL>
- Subject: Re: Hypercard won't save
-
- Hi! I've been lurking for a couple of weeks, and know nothing about
- AppleScript. But I saw a similar message on the HC listserver--so I'm
- cross-posting their answer. (Is that illegal? ;-)
-
- >"Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU> asks:
- >As an aside, HCv2.2 SAYS it can build stand-alone applications from system
- >7, and all the blurb's in the manual, and I even get SOME of the stuff they
- >say when I try to "Save a Copy", but I DON'T get the pop-up list of
- >File-Types as the manual states. I'm using system 7.1 (which I would HOPE
- >would be backwardly compatible with system 7????) Any takers? Or should I
- >post this question on the HC listserver?
-
- >From yesterday's HC listserver--->
- >I have a problem with creating a standalone version of a HyperCard 2.2 stack.
- >It has been noted that to do this you need to choose 'Save a Copy' from the
- >File menu, and a pop-up menu of File-Type should then enable you to save it is
-
- >a StandAlone.
- >
- >The problem is that when I do this, there is no pop-up menu, just a field
- >indicating that it is saving it as File-Type : Stack.
- >
- >The book says that this requires systems 7.
- >I am using system 7.1 on a Centris 660AV. I have also tried this on a LCIII
- >and a Quadra 800 with the same result.
- >
- >Has anyone had a similar problem, or have I missed a simple step somewhere.
- >
-
- Their answer-->
- >Yes, Mike, I had the same problem. Move the translators to the systems file
- >and make sure applescript is in the HC directory. Then you will get the
- proper
- >dialog box. But be prepared: standalone stacks are huge. Sample: one of my
- >stacks went from 24K to 800K.
- >Regards, STan Sulkes
- >sulkes@ucbeh.san.uc.edu
-
- I don't deserve any credit for this answer. :-) Good Luck!
-
- Marcus
- stewart-cic-is@redstone-emh2.army.mil
- =========================================================================
- Date: Fri, 1 Apr 1994 08:53:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: K J Fox <kjfox@MKE.AB.COM>
- Subject: Re: Frontmost memory leak
-
- ># 3. I have found that when using the FrontMost editor (AppleScript 1.1) or
- ># running a droplet built using same, that 100k to 400k of system heap is used
- ># but not released when those appls are quit. We have tried it on Macs from
- ># the orig Mac II to an 840 AV, all running Sys 7.1 with the same results.
- ># Someone at SOS-APPl is looking into it, but while on the phone, he quietly
- ># admitted he is running Sys 7.5!
- >
-
- Regarding the memory leak with FrontMost... I've written one application
- with it and did some recent checking. It appears that each successive
- launch of the application grabs another 100-300K of memory by the System as
- shown in the "About This Macintosh..." box. I'm not sure of a good way to
- see the specific size of my system heap though (any ideas??) At the start,
- my System was at 4900K and after about 7 launches, it ballooned to 6500K.
- No other apps were launched. I guess it's time to reboot!
-
- kjf
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Kenneth J. Fox
- Rockwell Automation - Allen Bradley Co.
- Milwaukee, WI (414)382-3287
- kjfox@mke.ab.com
- =========================================================================
- Date: Fri, 1 Apr 1994 06:57:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: Applescript 1.1 upgrade: Worth it?
-
- >Sorry if I you talked about this earlier and I missed it.... I bought the
- >AppleScript Developer's Toolkit 1.0 from APDA back in December. Price was
- >$199. I just called them and they said the upgrade to version 1.1 is $99.
- >That seems a bit much for an incremental upgrade! What are the new
- >features in 1.1? Is it worth it?
-
- Well, AS 1.1 is certainly much improved over 1.0. Its faster, and it seems
- more stable. The other item you get with the upgrade to the Developers Kit
- is Frontmost, an AppleScript based interface builder. All the other
- elements of the package (example code and utilities) are pretty much
- unchanged.
-
- -Mark
- =========================================================================
- Date: Fri, 1 Apr 1994 09:03:19 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Frontmost memory leak
- In-Reply-To: Your message of "Fri, 01 Apr 94 08:53:15 CST"
-
- >
- >Regarding the memory leak with FrontMost... I've written one application
- >with it and did some recent checking. It appears that each successive
- >launch of the application grabs another 100-300K of memory by the System as
- >shown in the "About This Macintosh..." box. I'm not sure of a good way to
- >see the specific size of my system heap though (any ideas??) At the start,
- >my System was at 4900K and after about 7 launches, it ballooned to 6500K.
- >No other apps were launched. I guess it's time to reboot!
-
- Wouldn't ZoneRanger work for this. If my memory isn't completely gone, you
- should be able to examine the individual blocks.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Fri, 1 Apr 1994 09:41:44 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lawrence Wood <lawrencw@MICROSOFT.COM>
- Subject: Re: Example Excel AppleScripts?
-
- Hi,
- There should be excel examples on gaea but I'll have to look
- to make sure. If
- not I really dont know where to find any examples. As for the Excel
- SDK (which the
- manual refers to) is very AppleEvent oriented, but, AppleEvents and
- AppleScript are
- VERY closely tied together. Really the only way I know to learn about
- Excel3&4 is to
- open the application's dictionary and use what it shows. Since all you
- can really do
- is get or set things it's not too bad. You can also 1. Evaluate
- formulas, 2. Execute a
- macro command, 3. Execute an entire macro. Good luck.
-
- lw
- **********************************************************************
- *****************************
- #include<stddisclaimer.h> These are my ramblings and do not represent my
- employer, etc.
- **********************************************************************
- *****************************
-
- ----------
- From: Stephen Jonke <netmail!jonke@GSFC.NASA.GOV>
- To: Multiple recipients of list MACSCRPT <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
- Subject: Example Excel AppleScripts?
- Date: 29 Mar, 94 5:03PM
-
- Does anyone have any examples of AppleScripting Excel that I could look at?
- I looked on gaea, but there were no Excel AppleScripts there. Also, are
- there any guides available for AppleScripting Excel? The document
- mentioned in the Excel manual seems to be oriented toward AppleEvents, as
- opposed to AppleScript (i.e. low level).
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Fri, 1 Apr 1994 15:42:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jamie Lawrence <jamiel@SYBASE.COM>
- Subject: scripting MS Excel
-
- Does anyone wanna give a poor, frustrated excel-scripting wannabe some
- example script they have laying around to send and recieve data using
- Excel? I can't seem to find the proper syntax to get anything back and
- forth. Through a macro I could make sure the particular data in question
- could be selected (even though I want to be able to get more complex data
- later), but I can't even use this because the script editor won't accept
- the class 'selection-object', which I found in Excel's dictionary. It
- thinks I mean selection minus object.
-
- Help please?
-
- thanks-
- jamie
- =========================================================================
- Date: Fri, 1 Apr 1994 15:58:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: scripting MS Excel
-
- At 15:42 4/1/94 -0800, Jamie Lawrence wrote:
- >Does anyone wanna give a poor, frustrated excel-scripting wannabe some
- >example script they have laying around to send and recieve data using
- >Excel? I can't seem to find the proper syntax to get anything back and
- >forth. Through a macro I could make sure the particular data in question
- >could be selected (even though I want to be able to get more complex data
- >later), but I can't even use this because the script editor won't accept
- >the class 'selection-object', which I found in Excel's dictionary. It
- >thinks I mean selection minus object.
-
-
- tell application "Microsoft Excel"
- set foo to selection
- get value of foo
- end tell
-
-
- That returns the value of the currently selected cell. If the current
- selection is a range of cells, you get a list, something like this one
- (this is burn-before-reading secret data): {{"191.5"}, {"189.5"},
- {"188.5"}, {"189.5"}, {"189"}, {"189.5"}, {"188.5"}, {"189.5"}, {"188.5"}}
-
- You can do things like
-
- set value of cell 1 of row 6 to -99
-
- or, as above
- set foo to selection
- set value of foo to 120.5
-
- [It shouldn't be necessary to have the intermediate variable, but it seems
- to be.]
-
- Hope these help. Keep trying...it really does work
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 1 Apr 1994 22:59:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: Acid Jazz
-
- Acid Jazz is an Application, but I believe that version 1.1v1 was already
- on gaea, it is NOT new. the "Dial Number" script in my "matt's Scripts"
- uses Acid Jazz.
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Sat, 2 Apr 1994 12:22:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: sending raw appleevents
-
- OK, I know how to send a raw appleEvent to an application, such
- as the finder. my question is this: I have an application that claims
- to support AppleEvents, but it isn't appleScriptable. how do i
- figure out the AppleEvents that it supports. I looked at it in ResEdit
- but didn't find anything obvious.
-
- thanx mucho!
-
- ps. the app I am trying to do this with is "FilePlayer 2.0" but there are
- other apps I would like to send appleEvents to also.
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Sat, 2 Apr 1994 10:14:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Cohen <isis@NETCOM.COM>
- Subject: Re: sending raw appleevents
- In-Reply-To: <199404021809.KAA04289@mail.netcom.com> from "Matthew Ahrens" at
- Apr 2, 94 12:22:11 pm
-
- >
- > OK, I know how to send a raw appleEvent to an application, such
- > as the finder. my question is this: I have an application that claims
- > to support AppleEvents, but it isn't appleScriptable. how do i
- > figure out the AppleEvents that it supports. I looked at it in ResEdit
- > but didn't find anything obvious.
-
- Get the AEHandler FKEY (it's on the AppleScript & various developer CDs). It
- will display all of the current application & system AppleEvent and Coercion
- handlers. Unfortunately, some applications just install handlers for an entire
- class or even '****', so it won't tell much in that case.
-
- --
- Mike Cohen | "Software that means business"
- ISIS International |
- (818) 788-4747 Voice | isis@netcom.com | ALink: D6734
- (818) 501-0653 Fax | NewtonMail, eWorld: MikeC | AOL: MikeC20
- =========================================================================
- Date: Sat, 2 Apr 1994 10:31:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: sending raw appleevents
-
- At 12:22 4/2/94 -0500, Matthew Ahrens wrote:
- >OK, I know how to send a raw appleEvent to an application, such
- >as the finder. my question is this: I have an application that claims
- >to support AppleEvents, but it isn't appleScriptable. how do i
- >figure out the AppleEvents that it supports. I looked at it in ResEdit
- >but didn't find anything obvious.
-
-
- You can't learn everything without the cooperation of the developer of the
- application. [The easiest way to find out is to be told.]
-
- Barring that, until recently the Developer CDs had a little FKEY which puts
- up a window showing every AE-related handler installed by the front-most
- application, and every installed System-level handler. Warning...this FKEY
- crashes when sufficiently-new Finder versions are in front...7.1.3 is
- sufficiently new. This could well be why the FKEY disappeared.
-
- [You can, if you are very patient, use the FKEY to lead you to the
- handlers, and MacsBug or whatever to disassemble them, so in principle you
- can learn everything there is to learn about the application's AE support.
- It would be easier to write your own application. The FKEY can also be
- used to remove handlers, and exercise them, although I haven't tried
- either.]
-
- Note that some applications install a wildcard handler: class '****', id
- '****'. Any event not dispatched to something more specific goes there.
- [Frontier does that, and has a table (system.verbs.traps) into which one
- can put a subtable for a class ('misc' is in the as-shipped Frontier). The
- tables contain scripts which are named for the event id (the 'misc' table
- ships with 'dosc'). [Meaning one can customize Frontier to accept many
- different events.]
-
- So just seeing all the posted handlers doesn't necessarily tell you what
- events an application handles. It also doesn't tell you anything about
- what the parameters are for non-standard events (or whether the parameters
- for standard events are standard).
-
- --JOhn
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sat, 2 Apr 1994 19:30:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: coercing file references to anything
-
- i can't seem to coerce a file reference to anyhting else. for example,
-
- (file "Duo-Gnosis:test") as string
- or
- (file "Duo-Gnosis:test") as alias
- or
- alias (file "Duo-Gnosis:test")
-
- result in an error: Can't get file "File "Duo-Gnosis:test"
-
- I am using AppleScript 1.0, if it matters.
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Sat, 2 Apr 1994 19:31:15 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: posting AppleScript Extension
-
- would someone with the AppleScript Developer's Kit ver 1.1 be so
- kind as to post the applescript extension 1.1 on gaea or info-mac?
- I believe that if you read the liscence, you can distribute the
- extension to anyone.
-
- on a side issue, are there any changes in the Script Editor from ver
- 1.0 to 1.1
-
- (I have AS 1.0, which I got with TAO of applescript. does anyone know
- if they are offoring an upgrade to AS 1.1?)
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Sat, 2 Apr 1994 20:21:50 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Frontmost memory leak
-
- ">Regarding the memory leak with FrontMost... I've written one application
- ">with it and did some recent checking. It appears that each successive
- ">launch of the application grabs another 100-300K of memory by the System as
- ">shown in the "About This Macintosh..." box. I'm not sure of a good way to
- ">see the specific size of my system heap though (any ideas??) At the start,
- ">my System was at 4900K and after about 7 launches, it ballooned to 6500K.
- ">No other apps were launched. I guess it's time to reboot!
-
- "Wouldn't ZoneRanger work for this. If my memory isn't completely gone, you
- "should be able to examine the individual blocks.
-
- "pf
-
- You could also use NowMenus Memory View
-
- Jami1
- =========================================================================
- Date: Sat, 2 Apr 1994 21:29:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: sending raw appleevents
-
- >You can't learn everything without the cooperation of the developer of the
- >application. [The easiest way to find out is to be told.]
-
- This is the truth.
-
- >Barring that, until recently the Developer CDs had a little FKEY which puts
- >up a window showing every AE-related handler installed by the front-most
- >application, and every installed System-level handler. Warning...this FKEY
- >crashes when sufficiently-new Finder versions are in front...7.1.3 is
- >sufficiently new. This could well be why the FKEY disappeared.
-
- This is not. :)
-
- I just flipped up that AEInteraction FKEY in my 7.1.3 and it works fine.
- It probably got skipped because Ed didn't remember to resubmit it. That's
- kind of an annoying bother, particularly if you write a lot of stuff, and
- Ed Lai has.
-
- >[You can, if you are very patient, use the FKEY to lead you to the
- >handlers, and MacsBug or whatever to disassemble them, so in principle you
- >can learn everything there is to learn about the application's AE support.
- >It would be easier to write your own application. The FKEY can also be
- >used to remove handlers, and exercise them, although I haven't tried
- >either.]
-
- This is probably what made you think it crashed. This FKEY throws you
- rather unceremoniously into Macsbug (and probably TMON too, if I know Ed)
- with a disassembly of the handler code that gets that event or coercion.
- Nice for setting breakpoints. I just wish it knew about the osax machanism
- and took me to the osax code itself instead of the osax loader code which
- handles all the osax events.
-
- I've never seen the AEInteraction FKEY crash, and I use it a lot. You can
- find it on the AppleScript CD too.
-
- Jon
- =========================================================================
- Date: Sun, 3 Apr 1994 08:20:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: sending raw appleevents
-
- >>Barring that, until recently the Developer CDs had a little FKEY which puts
- >>up a window showing every AE-related handler installed by the front-most
- >>application, and every installed System-level handler. Warning...this FKEY
- >>crashes when sufficiently-new Finder versions are in front...7.1.3 is
- >>sufficiently new. This could well be why the FKEY disappeared.
- >
- >This is not. :)
-
- Yes...last evening I noticed that the FKEY is back on the April Developer CD.
- From one of the CDs where I looked for it, it was notable by its
- absence: listed in the summary part of the documentation of the FKEY
- collection, details ripped out of the document, and not in the folder with
- the others. Since I noticed this after the FKEY started crashing for me, I
- seem to have made a faulty assumption.
-
- >
- >I just flipped up that AEInteraction FKEY in my 7.1.3 and it works fine.
-
- Here, ever since going to Finder 7.1.3, the FKEY crashed immediately upon
- being called up with Finder in front. So I gave up trying.
-
- After experiment: the FKEY is fine on "Zeus", the 8100. It still crashes
- on the IIci (clever name: "JWB"). Bus error at ... while fetching
- instructions from 5C44B854 and 5C44B856 (not surprising that it can't do
- that).
-
- I guess it's time to reinstall some things on the IIci.
-
- Thanks for the correction [again]. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 4 Apr 1994 01:21:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Sean Elfstrom <selfstro@ENGR.TRINITY.EDU>
- Subject: -108 and -1752 errors
-
- What causes these errors when I try to run a script from the Finder
- using OSAMenu? I have Sys 7.1 and AppleScript 1.0. If I'm in another
- app, and try to run the same scripts, it generally works, but since
- I'm trying to work with Finder Selections via Jon's Commands, I'd
- like for it to work in the Finder as well.
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- selfstro@cs.trinity.edu | 715 Stadium Dr. #707
- NeXTMail: selfstro@oberon.cs.trinity.edu | San Antonio, TX 78212-7200
- =========================================================================
- Date: Sun, 3 Apr 1994 16:16:36 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Adam C. Engst" <ace@TIDBITS.COM>
- Organization: TidBITS
- Subject: FrontMost memory leak
-
- The latest word on the FrontMost memory leak...
-
- cheers ... -Adam
-
- > I finally heard from Apple (SOS-APPL) after a couple of weeks and a
- > little prodding. This concerned the problem I mentioned about memory losses
- > when using the FrontMost portion of AppleScript.
- >
- > Apple confirmed the bug that eats up 100k to 400k after each FrontMost
- > execution. They are looking into it, and so don't know if or when they will
- > have a solution. They also don't know how a solution might come -- in a
- > patch or wait for a release.
- >
- > Rick Hyman
-
- --
- Adam C. Engst, TidBITS Editor -- ace@tidbits.com -- info@tidbits.com
- Author of The Internet Starter Kit for Macintosh -- tisk@tidbits.com
- =========================================================================
- Date: Mon, 4 Apr 1994 09:46:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Example Excel AppleScripts?
- In-Reply-To: Your message of "Fri, 01 Apr 94 09:41:44 PST"
-
- >There should be excel examples on gaea but I'll have to look
- >to make sure. If
- >not I really dont know where to find any examples. As for the Excel
- >SDK (which the
- >manual refers to) is very AppleEvent oriented, but, AppleEvents and
- >AppleScript are
- >VERY closely tied together. Really the only way I know to learn about
- >Excel3&4 is to
- >open the application's dictionary and use what it shows. Since all you
- >can really do
- >is get or set things it's not too bad. You can also 1. Evaluate
- >formulas, 2. Execute a
- >macro command, 3. Execute an entire macro. Good luck.
-
- I haven't put any out there, but there are some on one of the AppleScript CDs.
- I'm trying to find out if I can put them on gaea with the FileMaker ones. If
- not, you could always find someone with the CD (think it was the beta one).
- You might want to look at
-
- ftp://gaea.kgs.ukans.edu/applescript/docs/xldoc.hqx
-
- I'll keep you posted on my progress with the examples.
-
- pf
-
-
- +++++++++++ opic I
- have started, could you please resend your message?
-
- I was having some problems with my mailer and your mail may have been lost.
-
- thanx a lot, and sorry for the bandwith!
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Mon, 4 Apr 1994 20:05:56 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
- Subject: Re: using Finder Scripting Tool
-
- In message <199404050041.SAA07033@fsa.cpsc.ucalgary.ca> Macintosh Scripting
- Systems writes:
- > using Finder Scripting Toolkit
- > Okey-dokey,
- > I'm really frustrated here. Has anyone been using Dan Ranson's Finder
- > Scripting
- > Toolkit with any success? If so what am I doing wrong? I'm trying the most
-
- Mark your posted material seems to have got a bit corrupted and I couldn't
- see what was going on. However, I can confirm that the finder events do
- work as specified. They don't seem to do any coercion so you have to have
- exactly the structure specified, ie an alias to the folder and a list of
- aliases to files.
-
- One thing you CAN get away with that helps a lot is that the alias to the
- folder can be an alias to a file within the folder. This means, for example,
- that if you are just opening one file you can use the same alias in both
- positions.
-
- I've been using the finder calls successfully in scripts within my application
- both on the local machine and across the net. They are very neat compared
- with loading the whole of finderlib.
-
- b.
-
-
- Brian Gaines Knowledge Science Institute, University of Calgary
- gaines@cpsc.ucalgary.ca Calgary, Alberta, Canada T2N 1N4
- =========================================================================
- Date: Tue, 5 Apr 1994 11:54:30 +0930
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU>
- Subject: Thanks!
-
- To all of you out there who responded to my problems regarding
- Applescripting FileMakerPro from Hypercard2.2 - Thanks.
-
- I now have HC2.2 producing stand-alone applications (apparently I hadn't
- transferred the StackToApp extension to my extensions folder (pity the HC
- installation doesn't do this for you).
-
- I still can't by-pass the FileMakerPrto "open file" dialog box but I'm
- still trying. I can do it from HC, but its certainly not "pretty".
-
- So, thanks again!
-
- Paul J. Stoll
- Computer Assisted Learning Unit
- Flinders University of South Australia
- Flinders Medical Centre
- Bedford Park. 5042.
- South Australia.
- =========================================================================
- Date: Mon, 4 Apr 1994 23:22:21 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Thanks!
-
- At 11:54 4/5/94 +0930, Paul J. Stoll wrote:
- >I still can't by-pass the FileMakerPrto "open file" dialog box but I'm
- >still trying. I can do it from HC, but its certainly not "pretty".
-
- That can be done from a UserTalk (Frontier) script, but you also (under
- Frontier) need to bring FileMaker to the front before the open message.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 5 Apr 1994 20:34:59 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jiaw-yih Hwang <joy1@MAIL.NCKU.EDU.TW>
- Subject: Scriptible Communication Software:?
-
- Hi! Netter:
- Is there any coummunication software which could eastablish a SLIP conection
- and
- could be scripted.
-
- ====================================================================
- /=====| Jiaw-yih Hwang
- / | Department of Interior Design,
- / | Tainan Junior College of Home Economics, Taiwan
- ============ ------------------------------
- []-[]----} joy1@mail.ncku.edu.tw
- /_ ------------------------------
- == "Less is More."
- [_ "These are rumors. I reserve the right to be wrong."-Murph
- ====================================================================
- =========================================================================
- Date: Tue, 5 Apr 1994 09:13:44 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: reading the contents of a text file
-
- >I am running version 1.1 of Applescript with a powermac 8100 and they
- >appears to be a major bug in Apple script. I was wondering if anyone else
- >had seen this.
- >
- >Although the stuff is impossible to read it appears to work.
- >
- >
- >Comments or suggestions?
-
- I'd re-install AS 1.1 - this is not normal. Your dialect file may be
- trashed. You can also try going into the script editor's edit,applescript
- formatting..., and choose defaults to see if that clears it up.
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Tue, 5 Apr 1994 08:41:28 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Scriptible Communication Software:?
- In-Reply-To: Your message of "Tue, 05 Apr 94 20:34:59 CST"
-
- >Hi! Netter:
- >Is there any coummunication software which could eastablish a SLIP conection a
- >nd
- >could be scripted.
- >
-
- Pick up a copy of InterSlip AE. You'll find it at
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/InterSLIP_AE_1.0b1.sit.hqx
-
- Cheers.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Tue, 5 Apr 1994 11:14:21 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: Where is drag manager?
-
- I guess the subject says it all. where can I find the drag Manager,
- if it is available yet.
-
- tia!
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Tue, 5 Apr 1994 11:46:34 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: Re: coercing file references to anything
-
- Leonard Rosenthol <leonardr@NETCOM.COM> mentioned that i
- am trying to do a double coercion. i am not. i am
- trying to do anything useful with the "Finder Selection" command in
- "Jon's Commands". David Ray <daver@NETCOM.COM>
- mentioned that he also has the same
- problem in AS 1.0. i also have version 1.0. I have asked before, and
- now I am PLEADING. PLEASE SEND ME APPLESCRIPT 1.1! This IS LEGAL.
- All that I want is the Extension. if you will read your liscence, it
- says that you can distribute the extension & osaxen to anyone you like.
-
- thanx very much!
-
- --
- My opinions are mine only and tentati he SIZE -1 resource. Add
- >100,000 or so to the second size box in that resource (shown in decimal
- >bytes by ResEdit, other editors may differ). Quit ResEdit or whatever.
- >Drag the Finder out of the System Folder (to Trash is OK). Drag your
- >modified Finder into the System folder. Restart.
-
- Just an optimization: drag the Finder (or any other busy file) out of the
- system folder to the desktop. Option-drag it back and edit that one.
- Restart. It's just a bit less dragging around and you have the old one
- lying on the desktop if you need it after you screw up. ;)
-
- >>i can't seem to coerce a file reference to anyhting else. for example,
- >>
- >>(file "Duo-Gnosis:test") as string
- >>or
- >>(file "Duo-Gnosis:test") as alias
- >>or
- >>alias (file "Duo-Gnosis:test")
- >
- >This is the same problem I have been running into with the Jons Commands
- >osax. There is a command called "finder selection" that returns a list
- >with format like {file "Mac:folder:file"}. The problem is that if I want
- >to use "finder selection" in a script, I can't coerce the result into a
- >string. I get an error if I use any of the following:
- >
- >set theFile to item 1 of finder selection
- >return (theFile as string) <--- error
- >
- >Jon Pugh who wrote the osax says that he has no problem coercing it into
- >a string, using Applescript 1.1. I'm using Applescript 1.0. maybe that's
- >the culprit.
-
- I just checked with a friend at Apple and he confirms that the file object
- specifier to string coercion was added in Applescript 1.1. I might add an
- fss to string coercion to the next version of Jon's Commands.
-
- >>I just flipped up that AEInteraction FKEY in my 7.1.3 and it works fine.
- >>It probably got skipped because Ed didn't remember to resubmit it. That's
- >>kind of an annoying bother, particularly if you write a lot of stuff, and
- >>Ed Lai has.
- >
- >
- >Jon is correct...the AE Interaction FKEY works fine with all the Finders
- >I've tried it with (through 7.1.4).
- >
- >What the FKEY doesn't seem to work with is Finder Scripting Extension (ie,
- >the "Scriptable Finder"). The crash PC is (per Macsbug as seen on my 8100)
- >1DA bytes into the CODE resource named "%EntryVector" [a quite reasonable
- >place to crash]). Crash seen both with Finder 7.1.3/Finder Scripting
- >Extension 1.1 on my IIci, and Finder 7.1.4/Finder Scripting Extension 1.1
- >on the 8100. [Proper install from an Installer floppy on the IIci...drag
- >install of the extension on the Power Mac.]
-
- Hmmm, my Finder is the scriptable one and it works fine for me. Perhaps
- it's a memory related problem. I have upped my SIZE resource as described
- previously.
-
- >If it hurts (on your machine), don't do it.
-
- Always good advice.
-
- >on OpenObjects(alias "Mark's HD:Apps:Microsoft Excel 4.0 alias", #194#
- > {"Mark's HD:Apps:Microsoft Excel alias"})
- >end OpenObjects
- >
- >Here I have made two aliases, one to the folder at "Mark's HD:Apps:Microsoft
- >Excel 4.0:" (alias path "Mark's HD:Apps:Microsoft Excel 4.0 alias" and the
- >other to application at "Mark's HD:Apps:Microsoft Excel 4.0:Microsoft Excel"
- >(pointed to by "Mark's HD:Apps:Microsoft Excel alias"). I click the Run button
- >and nada. No complaints from the Editor but no action either. It doesn't seem
- >to matter where I put the two aliases as long as the paths I give the Editor
- is
- >valid.
- >
- >My intention was to use this set of scripts for networking purposes but I
- >haven't yet tried. Is it more reliable over the wire? That would be strangely
- >counter-intuitive. Two fellows piped in on my original query--John Pugh and
- >Matt Ahrens. Might they have any ideas?
-
- Maybe they would...
-
- I've been burned by minimal aliases before. Folder aliases must end in a
- colon. Yours does not. You might also need to skip the aliases to
- aliases. Try:
-
- on OpenObjects(alias "Mark's HD:Apps:Microsoft Excel 4.0 folder:", --
- {alias "Mark's HD:Apps:Microsoft Excel 4.0 folder:Excel"})
- end OpenObjects
-
- Jon
- =========================================================================
- Date: Tue, 5 Apr 1994 15:12:18 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: Re> Where is drag manager?
-
- Is the drag manager part of System 7 Pro? Are you talking about the drag
- and drop features of Apple Mail, or something else?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 5 Apr 1994 13:37:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Where is drag manager?
-
- >>The drag manager must be bought as part of the dev. kit from APDA (it's
- >>called the Macintosh Drag and Drop Developers Kit - R0552LL/A - $75 -
- >>800-282-2732).
- >>
- >It was also included on the latest Develop magazine CD.
- >
- Really? I've only seen the DocViewer interface notes on any of the CD's (both
- the Develop CD and the Developer's mailing CD's), not the actual software. I
- guess I'd better look closer!
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Tue, 5 Apr 1994 16:43:28 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
- Subject: Re: Where is drag manager?
-
- At 10:19 AM 4/5/94 -0500, Jay Martin wrote:
- >>I guess the subject says it all. where can I find the drag Manager,
- >>if it is available yet.
- >
- >The drag manager must be bought as part of the dev. kit from APDA (it's
- >called the Macintosh Drag and Drop Developers Kit - R0552LL/A - $75 -
- >800-282-2732). Supposedly, it's distributed with applications that are
- >drag-aware, but I don't know of any shipping yet. It's not currently
- >distributed with the system software (maybe 7.5?).
-
- I think the Drag Manager is part of System 7 Pro (or at least the Powertalk
- mailer and the finder seem to exhibit the same behavior that is mentioned
- in December's _Develop_).
-
- Bob
-
- --
- Bob Snyder N2KGO MIME, RIPEM mail accepted
- snyderra@dunx1.ocs.drexel.edu finger for RIPEM public key
- When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
- =========================================================================
- Date: Tue, 5 Apr 1994 16:56:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Where is drag manager?
- In-Reply-To: <no.id> from "Bob Snyder" at Apr 5, 94 04:43:28 pm
-
- --Bob Snyder wrote:
- >
- >I think the Drag Manager is part of System 7 Pro (or at least the Powertalk
- >mailer and the finder seem to exhibit the same behavior that is mentioned
- >in December's _Develop_).
-
- There is limited Drag Manager support for the PowerTalk system of
- System 7 Pro. It is not the full Macintosh Drag and Drop Extension, and
- will not work with anything other than the Finder, AppleMail, and the
- PowerTalk utilities.
-
- -Hades
- =========================================================================
- Date: Tue, 5 Apr 1994 17:49:13 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Scriptable non-AOCE version of QuickMail??
-
- Subject says it all - does CE Software have a non-AOCE version of QuickMail
- that supports AppleScript?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 5 Apr 1994 14:57:28 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Feinberg <brian@IIT.COM>
- Subject: MacPPP control source
-
- Would it be possible for the author of the MacPPP control OSAX
- to post the source on gaea? I'm another person who's seen the problem
- running it from Frontier, and I'd like to take a look at it, maybe make it
- a UCMD.
-
- --- Brian
- =========================================================================
- Date: Tue, 5 Apr 1994 20:02:47 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Samuel Alcoff <alcoff@ENIAC.SEAS.UPENN.EDU>
- Subject: Eudora Notify troubles...
-
- Hi everybody,
-
- I've been haveing alot of trouble working with the message list
- returned by Eudora 2.0.2 with a Notify event. Here's essentially what I've
- been working with:
-
- --System 7.1 with AppleScript 1.1
-
- --getting Eudora to notify this applet is no problem, so I omitted it.
-
- on =ABevent CSOmeNot=BB messageList
- tell application "Eudora 2.0.2"
- repeat with thisMessage in messageList
- try
- set whofrom to (get Sender of thisMessage)
- on error errMsg number errNum
- display dialog errMsg
- end try
- display dialog whofrom
- end repeat
- end tell
- end =ABevent CSOmeNot=BB
-
-
- Ok, here's what's going wrong: The script compiles fine, but during
- execution it seems to choke on the "set whofrom to (get Sender of
- thisMessage)" line. The error I get back follows:
-
- Can't get Sender of message 178 of mailbox "In" of mail folder "".
-
- The error number is -1728.
-
- If I just make a new script like this:
-
- tell application "Eudora 2.0.2"
- get Sender of message 178 of mailbox "In" of mail folder ""
- end tell
-
- It works fine. So, am I missing some kind of coercion here, or what? I've
- tried coercing thisMessage to reference and text, but niether one works.
- Any ideas? It's driving me crazy!
-
- Thanks,
- Sam
- =========================================================================
- Date: Tue, 5 Apr 1994 20:49:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Headless Pumpkin <sdouglas@HARTFORD.EDU>
- Subject: Re: Re> Where is drag manager?
-
- >>>The drag manager must be bought as part of the dev. kit from APDA (it's
- >>>called the Macintosh Drag and Drop Developers Kit - R0552LL/A - $75 -
- >>>800-282-2732).
- >>>
- >>It was also included on the latest Develop magazine CD.
- >>
- >Really? I've only seen the DocViewer interface notes on any of the CD's (both
- >the Develop CD and the Developer's mailing CD's), not the actual software. I
- >guess I'd better look closer!
- >
- >Jay
-
- I didn't find the DragManager on the Develop Bookmark CD either.
-
- I would recommend however that any graphic artists out there check out
- Pixel Paint Pro 3.0. It is applescriptable, recordable, and comes with
- AppleScript 1.1 and the DragManager!
-
- This program is wonderful. Oh, and it uses Photoshop plug-ins for good
- measure (Kai's PowerTools!!).
-
- Cheers,
-
- -------------------------------------------------------------------------
- Scott Douglass *My joys, my griefs, my passions, and *
- ->sdouglas@hartford.edu<- * my powers, *
- dithyramb@pan.com *Made me a stranger. Byron*
- scott@pumpkin.uucp http://www.hartford.edu/UofHWelcome.html
- finger me for my public key! MIME spoken here!
- =========================================================================
- Date: Tue, 5 Apr 1994 22:58:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Brannon <cbrannon+@PITT.EDU>
- Subject: Eudora Script (save & close)
-
- Here is a script I'm trying to get to work:
-
- tell application "Eudora1.4.2"
- activate
- make inserthere end of mailbox "Out" of mail folder "" objectclass
- message
- copy (the clipboard) to field named "" of message named ""
- copy "Info-Mac" to field named "Subject:" of message named ""
- save
- close
- end tell
-
- The trouble is with the "save" and "close" part. How can I get Eudora to
- save the message (not queue it) and close the window?
-
- The Eudora dictionary says:
- close reference
- save reference -- the object to save
-
- I can't figure out what to put in the "reference" part.
-
- Thanks in advance,
- Chris
- =========================================================================
- Date: Tue, 5 Apr 1994 22:58:30 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Brannon <cbrannon+@PITT.EDU>
- Subject: "save/read data" osax
-
- (gaea.kgs.ukans.edu:applescript/osaxen/savereaddata1.1.cpt.hqx)
-
- I've been trying to use the "save/read data" osax I found on gaea, but I've
- run into a problem with the syntax on the "save data" part.
-
- Here is the dictionary:
-
- save data: Stores data object in file specified.
- save data data -- data or variable object to store
- in alias -- path to file to store in
- [replacing yes/no] -- replace or append data
- [type type class] -- type of file (default TEXT)
- [creator 'sign'] -- creator of file (default 'ttxt')
- [erase boolean] -- with/without erase erase or not the
- file before
- write (default yes)
- Result: integer -- error returned from storing (if any)
-
-
- Here is what I put in my script:
-
- save data newdata in refNum replacing yes
-
- where newdata is a variable containing a list of data, and refNum is a
- variable containing the path to the file I want to write to.
-
- Whenever I run the script, it chokes on the line above, saying "Can't make
- some data into the expected type."
-
- What am I doing wrong?
-
- Thanks,
- Chris
- =========================================================================
- Date: Tue, 5 Apr 1994 20:44:26 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: A bunch of stuff
-
- Jon Pugh (initially quoting me)
-
- >>What the FKEY doesn't seem to work with is Finder Scripting Extension (ie,
- >>the "Scriptable Finder"). The crash PC is (per Macsbug as seen on my 8100)
- >>1DA bytes into the CODE resource named "%EntryVector" [a quite reasonable
- >>place to crash]). Crash seen both with Finder 7.1.3/Finder Scripting
- >>Extension 1.1 on my IIci, and Finder 7.1.4/Finder Scripting Extension 1.1
- >>on the 8100. [Proper install from an Installer floppy on the IIci...drag
- >>install of the extension on the Power Mac.]
- >
- >Hmmm, my Finder is the scriptable one and it works fine for me. Perhaps
- >it's a memory related problem. I have upped my SIZE resource as described
- >previously.
-
-
- Hmmm...the only way I can get the crash to stop is to remove the Finder
- Scripting Extension. I've given Finder 200,000 extra bytes, in addition to
- the 100,000 extra I had already given it to make OSAMenu and FinderMenu
- happy. AND I have run with minimal extensions (just the PowerPC Enabler,
- and the Finder-related PPC-related enabler, and Finder Scripting
- Extension). Nothing else. Including ditching the SCSI chain to get rid of
- the (outrageously old...MUST update) SilverLining driver from the external
- hard drive. No Apple Menu Items, no Control Panels (someone carefully
- makes empty folders where those ought to be).
-
- It would be time to ask Ed, except that I'm quite sure he has more
- important work to do (more important to his management, and more important
- to *me*, to).
-
- Thanks for your time, Jon...you caused me to explore more deeply than I
- would have.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 6 Apr 1994 01:14:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Carl F Steadman (Carl Steadman)" <stead002@MAROON.TC.UMN.EDU>
- Subject: Eudora & scripts always running...
-
- I just finished writing an AppleScript which mails an automatic reply to
- mail which is sent to a particular account, and then redirects the mail to
- a human recipient, which seems to work fine. I have NotifyMail opening
- Eudora when mail arrives at the POP server, and then Eudora sending a
- message to my script using "please notify", which then does its stuff.
-
- Now, to make everything work, I've had to save as an application, and check
- "Stay Open". Is this the nature of "please notify", or am I doing something
- wrong? I'm thinking Eudora should just be able to launch the script, which
- can then quit when it's done, though I could be thinking wrong.
-
- On a connected note, how does one quit a script which you've instructed to
- stay open, and have told not to put up dialog boxes? If I attempt to quit,
- it just re-launches - which isn't a problem now, but it was annoying, for a
- time, when I wanted to make changes.
-
- Thanks.
-
- Carl
-
- Carl Steadman stead002@maroon.tc.umn.edu 612.626.9750
- http://www.cdtl.umn.edu/carl.html
- =========================================================================
- Date: Wed, 6 Apr 1994 03:03:46 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Samuel Alcoff <alcoff@ENIAC.SEAS.UPENN.EDU>
- Subject: Re: Eudora & scripts always running...
-
- I've been playing with Eudora's "please notify" for a while now, and I can
- that I think I know what it does, but I still can't get it to work
- completely :-) (see a previous post by me...)
-
- Anyway, as I recall, I believe that when you send Eudora a please notify
- event, it saves the name of the calling application as a property, so it
- will start up the application if it is not running, even if Eudora has quit
- and been restarted. The only way to turn this off, I believe is through
- telling Eudora to specifically turn notifying off for that application.
-
- As far as getting your stay-open script to quit - that sounds like an error
- in the quit handler to me. I had the same problem. The script will
- compile fine, but will encounter a run-time error before it hits the
- continue statement, not report the error, abort the quit handler, and just
- stay open. It's pretty annoying, and it took me a while to figure this one
- out.
-
- Good Luck,
- Sam
-
- P.S. If you figure out how to access the fields of the messages of the
- message list Eudora returns on the notify event, please post it or send it
- to me, it's probably really easy, but I just can't get it to work.
-
- >I just finished writing an AppleScript which mails an automatic reply to
- >mail which is sent to a particular account, and then redirects the mail to
- >a human recipient, which seems to work fine. I have NotifyMail opening
- >Eudora when mail arrives at the POP server, and then Eudora sending a
- >message to my script using "please notify", which then does its stuff.
- >
- >Now, to make everything work, I've had to save as an application, and check
- >"Stay Open". Is this the nature of "please notify", or am I doing something
- >wrong? I'm thinking Eudora should just be able to launch the script, which
- >can then quit when it's done, though I could be thinking wrong.
- >
- >On a connected note, how does one quit a script which you've instructed to
- >stay open, and have told not to put up dialog boxes? If I attempt to quit,
- >it just re-launches - which isn't a problem now, but it was annoying, for a
- >time, when I wanted to make changes.
- >
- >Thanks.
- >
- >Carl
- >
- > Carl Steadman stead002@maroon.tc.umn.edu 612.626.9750
- > http://www.cdtl.umn.edu/carl.html
- =========================================================================
- Date: Wed, 6 Apr 1994 07:11:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Brannon <cbrannon+@PITT.EDU>
- Subject: Re: Eudora Script (save & close)
-
- Allan Marcus wrote:
- >>The trouble is with the "save" and "close" part. How can I get Eudora to
- >>save the message (not queue it) and close the window?
-
- >When you say "save", do you mean save to a disk file (try Save As), or sav
- >to the out box, but don't send (queue: never)?
-
- Allan,
-
- I mean to save the newly created message to the out box, so I can address
- it, add comments, and send it later.
-
-
- Regards,...Chris
- +--------------------------------------------------------------------------
- Christopher B. Brannon University of Pittsburgh
- cbrannon+@pitt.edu THE*TRUTH*IS*OUT*THERE Political Science
- =========================================================================
- Date: Wed, 6 Apr 1994 09:07:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Dennis J. Wilkinson, II" <djw@CRASUN.CRA.COM>
- Subject: Re: Eudora Notify troubles...
-
- <script deleted>
-
- >Ok, here's what's going wrong: The script compiles fine, but during
- >execution it seems to choke on the "set whofrom to (get Sender of
- >thisMessage)" line. The error I get back follows:
- >
- >Can't get Sender of message 178 of mailbox "In" of mail folder "".
- >
- >The error number is -1728.
-
- You mean you're actually getting an error code back? For myself (and
- apparently for Steve Dorner as well) the script just stops. Period. No
- errors, no return code, and if it's a standalone, it keeps running and will
- accept future notification events. I don' get it, either.
-
- I can iterate over the messages in the "In" folder fine, check if they've
- been read, and take action, but that doesn't do anything for me if
- something's been filtered into another folder by Eudora.
-
- BTW -- if you do something silly, like, say, having Eudora notify an
- applet, trash the applet, and then have Eudora go looking for things that
- don't exist, you can stop notifying everything you notify by removing the
- 'eNot' resource in the Eudora Settings file with the resource mangler of
- your choice. Eudora will build a new one on the next Notify.
-
-
-
- -- Dennis
-
- ----------------------------------------------------------------------------
- Dennis J. Wilkinson, II : Usual disclaimers apply. If I put
- djw@crasun.cra.com : my foot in my mouth, it's my
- Software Engineer : fault, and has nothing at all to
- Charles River Analytics, Cambridge MA : do with CRA, Inc.
- =========================================================================
- Date: Wed, 6 Apr 1994 09:51:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Does Frontier allow custom error handling routines?
-
- Can I put my own custom error handling routine in a Frontier script?
- Searching through the documentation didn't turn up anything. Failing
- that, can anybody tell me how to work around this problem in Eudora:
-
- I use a script called mailSorter() to file away mail from some of the
- more voluminous listservs I subscribe to, in order to separate that
- from personal e-mail. The script relies on the "Sender" field attached
- to most messages generated from a listserv. I can call Eudora with
- the following script to find out the Sender field:
-
- on getSender (i) {
- local (m);
- with objectModel, Eudora {
- m = -
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Wed, 6 Apr 1994 10:22:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: Eudora Script (save & close)
-
- >The trouble is with the "save" and "close" part. How can I get Eudora to
- >save the message (not queue it) and close the window?
- >
- >The Eudora dictionary says:
- > close reference
- > save reference -- the object to save
- >
- >I can't figure out what to put in the "reference" part.
-
- You made a message at the end of the "Out" mailbox. Don't you just use the
- same reference? Alternatively, try using the reference:
-
- message 1
-
- And that's it (no mailbox, no mail folder). "message 1" by itself always
- references the top most window. I haven't tried this yet, so let me know
- if it works....
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Wed, 6 Apr 1994 09:23:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Fred.Terry." <pfterry@LKS.CSI.COM>
- Subject: Scheduler
-
- Everyone,
-
- I've just uploaded a demo version of Mark Alldritt's Scheduler to gaea.
- You'll
- find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/schedulerdemo.hqx
-
- Have fun.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Wed, 6 Apr 1994 11:45:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Allan Marcus <allan_marcus@LANL.GOV>
- Subject: Re: Eudora Script (save & close)
-
- >Allan Marcus wrote:
- >>>The trouble is with the "save" and "close" part. How can I get Eudora to
- >>>save the message (not queue it) and close the window?
- >
- >>When you say "save", do you mean save to a disk file (try Save As), or sav
- >>to the out box, but don't send (queue: never)?
- >
- >Allan,
- >
- >I mean to save the newly created message to the out box, so I can address
- >it, add comments, and send it later.
-
-
- This should work, but it doesn't:
-
- tell application "Eudora"
- activate
- set x to make message InsertHere (end of mailbox "Out" of mail
- folder "")
- set field "To" of x to "allan_marcus@lanl.gov"
- set field "Subject" of x to "Subject"
- set field "" of x to "Body-of-message"
- queue x QueueType 2
- end tell
-
- If I use "queue x QueueType 1" it does work. The dictionary says:
-
- queue message -- The message to queue.
- [QueueType small integer] -- Now 0, Next 1, Later 2, Never 3.
- [When integer] -- When to send message, seconds (local time).
-
- Are 2 and 3 support yet?
-
- Thanks,
-
- Allan
-
- ---------------------------------------
- Allan Marcus
- Los Alamos National Laboratory
- "My opinions are my own, I think..."
-
- Voice: 505-665-1828
- CIS: 76666,2113
- AppleLink: Allan.Marcus
- e-world/NewtonMail: Allan.M
- InterNet: allan_marcus@lanl.gov <- note new address (deja vu!)
- ---------------------------------------
- =========================================================================
- Date: Wed, 6 Apr 1994 10:55:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Dorner <sdorner@QUALCOMM.COM>
- Subject: Re: Eudora Script (save & close)
-
- At 10:42 AM, Allan Marcus wrote:
- >This should work, but it doesn't:
- > queue x QueueType 2
-
- You haven't specified the "when" parameter, which is required for a type of
- later.
-
-
- > queue message -- The message to queue.
- >