AppleScript 1.6 and Mac OS 8.6 - SOLVED
AppleScript 1.6 and Mac OS 8.6 - SOLVED
- Subject: AppleScript 1.6 and Mac OS 8.6 - SOLVED
- From: Juergen May <email@hidden>
- Date: Tue, 19 Nov 2002 13:37:12 +0000
Hi!
Rather than send numerous replies to all the people who have offered their
help and advice, I've opted to send this single, general message. Hope
that's OK! :-)
Firstly, thank you all so much for your help - I didn't expect such a
reponse!
As a result of all your thoughts and ideas, I managed to find the problem
which in-turn has led me to the solution! Here's what I've found...
I think it was Paul Berkowitz who first mentioned a possible OSAX
'conflict', so hats-off to him! This seems to be exactly the cause.
As I don't often delve into my Scripting Additions folder, I hadn't noticed
a rather old (circa 1993) OSAX called 'choose files and folders'. As I
understand it, 'Standard Additions' _should_ take precedence over 'choose
files and folders' but for a reason unknown to me, it didn't.
Having done some tests, I now definitely know that the 'choose files and
folders' OSAX compiles the event <<event ScTlstdD>>. It therefore stands to
reason that other users who don't have the correct OSAX were unable to run a
particular part of the script. I've now removed the offending OSAX and
recompiled the script.
I've also moved the 'choose folder' OSAX call from inside the QuarkXPress
tell block. I realise now why I did it... When the script was run from
Script Editor for testing, the line 'tell app "QuarkXPress" to set theFolder
to choose folder"' was used to force QuarkXPress to raise the call, thus
eliminating the annoyance of having to change between XPress and Script
Editor just to choose a folder. Of course, I should have removed the tell
statement before I compiled the script. I'll be sure to remember this in
future!
Anyway... the code seems to be in better shape now so thanks once again to
all of you who contributed to solving this problem for me.
Best wishes,
Juerg
--
Juergen May
<email@hidden>
_______________________________________________
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.