• 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: asking Finder to create a new empty file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: asking Finder to create a new empty file


  • Subject: Re: asking Finder to create a new empty file
  • From: Dave Lyons <email@hidden>
  • Date: Fri, 9 Sep 2005 17:14:11 -0700

That turns out to be "just a bug"...it wasn't doing it on purpose. The resulting file is OK, but it has an empty resource map written to the resource fork. Finder fumbled a parameter to an internal routine and accidentally asked for the "empty" resource fork to be created.

I've filed it in Radar and checked in the fix for the next major release.

Cheers,

--Dave

On Sep 8, 2005, at 4:05 PM, Martin Orpen wrote:
System Events makes better empty files than the Finder. Why does the Finder insist on wasting 286 bytes when doing the equivalent of "touch"?

tell application "System Events"
    set foo to make new file at end of desktop folder
end tell
tell application "Finder"
    set bar to make new file
end tell
size of foo & size of bar

-->{ 0.0, 286.0}

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Creating a folder on the desktop (recap) (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Creating a folder on the desktop (recap)
  • Next by Date: Re: Creating a folder on the desktop (recap)
  • Previous by thread: Re: Creating a folder on the desktop (recap)
  • Next by thread: Re: Creating a folder on the desktop (recap)
  • Index(es):
    • Date
    • Thread