"choose file name" Redux
"choose file name" Redux
- Subject: "choose file name" Redux
- From: Jeffrey Berman <email@hidden>
- Date: Sat, 19 Oct 2002 06:21:55 -0500
A while back I reported a problem I have with the "choose file name" command
since upgrading to Jaguar (10.2.1). When I use the "default name" parameter
as part of the command and the syntax is inside a "tell application" block,
it causes the application to quit unexpectedly and returns a "Connection is
invalid" error message.
The error does not occur when the syntax is not inside a "tell" block.
Unfortunately, most of my scripts using the "choose file name" command are
either for use from the QuicKeys menu or from Microsoft Entourage's script
items menu so the command ends up being embedded in an implicit "tell"
block. Running these commands through QuicKeys or Entourage triggers a
crash of these applications and the error message.
Experimenting within Script Editor, I found that putting the offending
syntax inside almost any application causes that application to unexpectedly
quit. An example would be:
tell application "Finder"
choose file name default name "Test Name"
end tell
Interestingly, I discovered that the error does not occur if I direct the
"tell" to Script Editor or System Events. And I never get the error if the
"default name" parameter is omitted.
When I posted a message about the problem earlier, others indicated they
were not seeing this behavior on their machines. It was suggested I try a
repair disk permissions with Disk Utility, which I did, but that did not
resolve the issue. It was also suggested I remove any third-party scripting
additions from the ScriptingAdditions folders in the /Library and ~/Library
locations. However, because I have no items in either of these folders,
that does not seem to be the culprit either.
At this point I'm stumped. Anyone have any idea what might be triggering a
"Connection is invalid" error message when I try to use the "default name"
part of the "choose file name" command?
-Jeffrey Berman
_______________________________________________
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.