Re: Creating a folder on the desktop (recap)
Re: Creating a folder on the desktop (recap)
- Subject: Re: Creating a folder on the desktop (recap)
- From: Martin Orpen <email@hidden>
- Date: Fri, 09 Sep 2005 00:05:47 +0100
on 8/9/05 13:51, patrick machielse at email@hidden wrote:
> Still this situation remains a bit problematic; when I need
> both the label and the visibility of a folder I'll need to query both
> System Events and Finder? Easy once you know, I guess.
Why's that? Do you have a lot of invisible folders with labels? :-)
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}
--
Martin Orpen
_______________________________________________
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