Re: Creating a folder on the desktop
Re: Creating a folder on the desktop
- Subject: Re: Creating a folder on the desktop
- From: patrick machielse <email@hidden>
- Date: Tue, 06 Sep 2005 20:36:55 +0200
Op 6-sep-2005, om 19:04 heeft Andrew Oliver het volgende geschreven:
On 9/6/05 7:35 AM, "patrick machielse" <email@hidden> wrote:
I can't get this to work
tell application "System Events"
make new folder at desktop folder
end tell
The Finder is generally responsible for all file/folder handling.
System Events handles just that - _system_ events. Creating a
directory is
not a system function, hence the need to use the Finder (or some
other app
that manages the file system.
Well, some would say that creating folders is a system function par
excellence...
More importantly, the System Events library explicitly mentions the
'make' command, with semantics almost identical to those of the
Finders 'make' command, which to me is like a promise that it should
work. Also, I _can_ move folders using "System Events".
Why is it that Finder doesn't understand "~/Desktop"? Finder should
'get with the program', the forward slash has been with us for more
than 4 years now. If anything, the use of ':' should be deprecated,
that should have been in the coffin with OS 9 :-)
Just last night I watched the 2003 WWDC AS presentation from Sal
Soghoian, in which he talked about the 5 ways to reference files in
AS, and today, in 2005, I'm still running into walls.
Trying to find sense in AppleScript,
patrick
_______________________________________________
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