One too many end if's there. Prolly a typo.
Bob
On Jun 29, 2011, at 4:31 PM, Charles Szasz wrote:
> I have the following code in my save handler:
>
>
> if there is not a folder tNewFolder then
> create folder tNewFolder
>end if
>
>ask file "Save file as
Charles Szasz wrote:
When an user saves a file, the user is presented with a file dialog
that has "Untitled.datatxt" hilited in the Save As dialog. Is there
anyway that only Untitled can be hilited so that the user enters a
name for the file but the .datatxt extension is automatically saved
to t
Charles,
No. You can't do that. Not even with Applescript. Currently, you'd need an
external to do that.
Usually, I check whether the user deleted the file extension. If yes, then I
add the file extension again and check to see if the file already exists. If
the files exists, I show the user a
I have the following code in my save handler:
if there is not a folder tNewFolder then
create folder tNewFolder
end if
ask file "Save file as: " with (tNewFolder & "/Untitled.datatxt")
put it into tSaveFile
if tSaveFile i