Re: Why does the Script Editor Service do this?
Re: Why does the Script Editor Service do this?
- Subject: Re: Why does the Script Editor Service do this?
- From: Michael Cytrynowicz <email@hidden>
- Date: Sat, 18 Jan 2003 16:36:14 -0800
The day is long, and the battle has just began...
So this is a summary of what I found (thanks many people, especially
Michelle, Deivy, Chris Nebel, Paul B)
OMM 10.2.3, Script Editor Beta 2, AS 1.9, System Events 1.2, acessibility on
(for GUI scripting)
If Help Viewer is not running, unless I provide the entire path to it as in
(4,5) a script won9t find it. Instead, the script will look for the Classic
version (2, 3,6, 8), or reports an AS error (9, 10).
On compiling, if HV is not already running, or if a complete path is not
given, AS will cause the extension 3.app2 to be deleted. On one case,
trhying to compile tell application 3Help2`resulted in 3Help2 being
replaced with 3541.html2 (nope, haven9t bought the lottery ticket yet)
I tried everything, from repairing the disk to running Janitor, clearing all
preferences (Finder, etc) bringing in a new copy of Help Viewer, turning
accessibility off, and (thanks Chris N.) starting as root and deleting both
Launcher caches. NOTHING worked.
I am positively convinced this is an issue between the most recent System
Events, and my specific configuration - which is not otherwise
malfunctioning in any way that I know of. Likewise, this is the _only_ app
with whoch I am having any kind of AS trouble (aside from being too ignorant
on how to do the things I9d like to do with it, but this is why I am here
;-)
Thanks all for caring,
Apple: Slap me, hit me, I still love you.
................
Mike Cytrynowicz
Some of the script incipits:
1. tell application "Help Viewer" ---with Help Viewer running, works OK
2. tell application "Help Viewer" ---with Help Viewer _not_ running, will
cause Classic to start
3. tell application "Help Viewer.app" --- on check syntax, deletes 3.app2
and starts Sys 9 (Deivy and others)
4. tell application "tell application
"Dodecaide:System:Library:CoreServices:Help Viewer.app:" ---works OK
(several people)
5. tell application "Finder" to set theURL to url of item
"Dodecaide:System:Library:CoreServices:Help Viewer" --- works OK (clip from
somehwere...)
open location theURL
6. tell application "any blurb2
then manually choosing X Help Viewer from the Script Editor choose
application list --- on check syntax, replaces blurb with 3Help Viewer2 and
starts Sys 9
7. stuff any Classic Help Viewer around, delete originals -- script will run
OK (Michelle)
8. expand one of the stuffed Classic Help Viewer(s) --- script _again_
starts System 9, i.e., it doesn9t find the way home (Michelle)
9. set XHelpAppPath to (path to "csrv" as Unicode text) & "Help Viewer"
----- (Paul B) on run tell AS error no such file
-- or (path to system folder as Unicode text)&"Library:CoreServices:Help
Viewer"
tell application XHelpAppPath
10. set XHelpAppPath to (path to system folder as Unicode text) &
"Library:CoreServices:Help Viewer" ----(Paul B) on run tell AS error no such
file
tell application XHelpAppPath
_______________________________________________
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.