Re: curious bug
Re: curious bug
- Subject: Re: curious bug
- From: Rob Jorgensen <email@hidden>
- Date: Thu, 16 Oct 2003 22:07:43 -0400
At 6:37 PM -0700 10/16/03, Michelle Steiner wrote:
I wrote the following script, accidentally omitting "text returned of"
set file_Name to display dialog "Name the file." default answer ""
tell application "Finder"
make new file at the desktop with properties {name:file_Name}
end tell
Instead of throwing an error, it created a file.
--> document file "7Tr" of folder "Desktop" of folder "michelle" of
folder "Users" of startup disk of application "Finder"
The file name in the result is a dot, a capital O with a circumflex,
a capital Y with an umlaut, and a lower-case r.
On the desktop, it's two Chinese characters (Kanji or Hanja,
depending on whether you name them in Japanese or Korean).
Confirmed in OS X 10.2.8. I ran into this recently when debugging
someone else's script. It was the same scenario (omitted "text
returned of") with the same result (file name in foreign characters).
-- Rob
_______________________________________________
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.
References: | |
| >curious bug (From: Michelle Steiner <email@hidden>) |