Finder scripting dies
Finder scripting dies
- Subject: Finder scripting dies
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 16 Oct 2003 09:43:58 -0700
This is something that's troubled me for a while, but I can't replicate it
at will so I haven't been able to file a bug. For the first time, a user of
one of my run-only scripts has reported the same bug which until now I've
only seen in a script editor. The bug (more like an epidemic) is that the
Finder's scriptability disappears.
Every Finder term, such as 'folder', 'disk', 'update', etc. that isn't also
an AppleScript term (such as 'file', 'open' etc.) is not understood by the
Finder. Opening a saved script shows raw codes instead of the Finder terms.
Up until now, the scripts seemed to run anyway, but my user is getting:
Can't get <<class cdis>> of <<class cfol>> "ili 2:Users:raulqr:Sync
Entourage-Address Book 1.2.11:" of application "Finder".
(The script is simply asking for the disk of a folder.)
Whenever I've tried to compile a script under these circumstances, the
script editor (any script editor) doesn't understand 'disk', 'folder', or
'update': thinks they're variable names. On these occasions, only, I can
replace application "Finder" with application "System Events" and 'disk' and
'folder' compile but not, of course, 'update'. Then on another occasion the
script will error and will only get fixed when I remove "System Events" and
put "Finder" back. The other "solution" seems to be to quit and relaunch the
script editor, or to log out and log in. But for my user, log out/log in
doesn't help, nor does rebooting.
I must say that this sort of freakiness seems very amateurish. I'm not
allowed to say whether or not I've seen the same thing in Panther. The worst
thing is that I can't replicate it at will, so I don't know how to report
the bug. If others are seeing this too, my hope is that we might be able to
track down what circumstances trigger the problem.
--
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.