• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: curious bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: curious bug
      • From: Michelle Steiner <email@hidden>
References: 
 >curious bug (From: Michelle Steiner <email@hidden>)

  • Prev by Date: curious bug
  • Next by Date: Re: Finder scripting dies
  • Previous by thread: curious bug
  • Next by thread: Re: curious bug
  • Index(es):
    • Date
    • Thread