Re: asking Finder to create a new empty file
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