Page 1 of 1
Is there a way to display the "Untitled" string in ask file
Posted: Wed Aug 13, 2014 10:12 pm
by Mag
Hi all,
lot of OS X applications when you create a new document set its suggested name as "Untitled" by default (for example Apple Pages). I noticed that this is not possibile in LiveCode. Somebody know if there is some workaround?
Code: Select all
ask file "Save as" with "Untitled" -- don't show the string "Untitled"
ask file "Save as" with "Untitled 2" -- works
Re: Is there a way to display the "Untitled" string in ask f
Posted: Wed Aug 13, 2014 11:01 pm
by Axel-Erfurt
if you add a file extension it works
for example
Code: Select all
ask file "Save as" with "Untitled.txt" as sheet
Re: Is there a way to display the "Untitled" string in ask f
Posted: Thu Aug 14, 2014 2:37 am
by WaltBrown
FYI, on Win7 it does put the word "Untitled" in the standard file dialog when I use your code. Anyone have a Linux report?
Interesting note in the Dictionary entry on "ask file":
Cross-platform note: On Mac OS systems where Navigation Services is in use, if you don't specify a default file name, the file name box contains "untitled". On Unix and Windows systems, the file name box is empty when the dialog box appears. Unix systems currently use LiveCode's built-in dialog box.
Maybe it's a Mac specific issue? What does the Mac display when you leave it empty, or use
The Dictionary implies the Mac should then report the word "untitled" (which I cannot test right now) but Win7 still presents an empty path in the dialog box.
Re: Is there a way to display the "Untitled" string in ask f
Posted: Thu Aug 14, 2014 3:51 am
by dunbarx
Hi.
This works for me, either case. OSX 10.6.8, MacBook Air.
You are saying that the addition of the "2" makes the default text appear, but it is empty without it?
Craig Newman