Re: "choose file name" Command
Re: "choose file name" Command
- Subject: Re: "choose file name" Command
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 10 Oct 2002 12:32:30 -0700
On 10/10/02 11:20 AM, "John Delacour" <email@hidden> wrote:
>
At 10:00 am -0500 10/10/02, Jeffrey Berman wrote:
>
>
> A wise golden rule. Unfortunately, I was using the "tell" construction just
>
> to demonstrate the general problem within the Script Editor.
>
>
>
> In my actual scripts, the "choose file name" is not in a "tell" block but
>
> is launched from the script menu of Microsoft Entourage.
>
>
In that case it _IS_ in an (implicit) tell block
>
>
> In this situation,
>
> adding the "default name" parameter causes the application to crash. For
>
> example, when I launch a script with your example, Microsoft Entourage
>
> immediately quits.
>
>
>
> My tests within the Script Editor were to see if the problem was specific to
>
> Microsoft Entourage. Given that the same problem occurs from the Finder, it
>
> appears to be a more general issue.
>
>
I have tried it as a script menu item in Eudora (X), Tex-Edit Plus
>
(X), BBEdit 6.5 (X) and Outlook Express 5.0.5 and had no problem with
>
any of them.
It works fine here in Entourage X script menu.
Jeffrey, are you in Jaguar and are you saving your script as a Script Editor
"Compiled Script" (upper-case initials)? That now (SE 1.9) saves the script
in the Data Fork which the Entourage script menu does not recognize. That
will usually cause an error, not a crash. The workaround, for now, is to
save your script as a "compiled script" (all lower-case) high up in the
Format popup of Save As.. dialog in Script Editor. That saves the script in
a Resource Fork. (There's a fix in the works for Entourage so it won't
object to data fork scripts)
But that would not explain why Script Editor crashes when you put it in a
Finder tell block. I suspect that you must have some other scripting
addition with the keyword "default name" somewhere.
--
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.