Strange goings-on
Strange goings-on
- Subject: Strange goings-on
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 15 Apr 2003 14:28:44 -0700
Could someone in OS 10.2.4 or 10.2.5 but who has _not_ installed the beta
System Events 1.2 (for UI scripting) please take a look and see if you have
a "Disk - Folder - File" Suite in the System Events dictionary? If so, does
it work? Can you script disks, folders and files here, as in the Finder and
run the script OK? How about others who _do_ have the beta 1.2 installed?
I'm gong a bit nuts here. I have got the bug back which will not compile any
Finder-specific term in a Finder tell block - e.g. 'process', 'folder'.
'disk'. (It's OK with terms that are also AppleScript language - e.g.
'name', 'file'. Actually I don't know if AS defines 'name', but I'd guess it
might somewhere or other.)
Every time I have to edit a script, it won't re-compile if there's a Finder
tell block in it. I have to dig out the raw code and use that instead. That
compiles and also runs.
When I got fed up with this, I substituted 'application "System Events"' for
'application "Finder"' when all the terms were in the System Events
dictionary. Those compiled just fine. But when I try to run the script I get
a "NSCannotCreateScriptCommand" error on 'disk' and 'folder'.
That indicates to me that the terms in "Disk - Folder - File" Suite in the
System Events dictionary don't function (yet) although they compile. Or is
it just me? And the terms in the Finder dictionary function - with raw codes
- but won't compile otherwise. I know that's just me. Or are the two
applications just interfering with each other?
When I take one of those raw-code Finder scripts over to OS 9, it compiles
(and runs) just fine in a Classic script.
Shane thought this (the Finder part) might have something to do with trying
to script Classic apps while Classic is open in OS X. That was back in OS
10.2.4. Whatever it is, it's still happening in OS 10.2.5. I did do a bit of
Classic scripting in X, it's true. Should that now be avoided totally?
--
Paul Berkowitz
_______________________________________________
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.