• 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: Creating a folder on the desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating a folder on the desktop
      • From: "John C. Welch" <email@hidden>
    • Re: Creating a folder on the desktop
      • From: kai <email@hidden>
    • Re: Creating a folder on the desktop
      • From: Matt Deatherage <email@hidden>
    • Re: Creating a folder on the desktop
      • From: Christopher Nebel <email@hidden>
    • Re: Creating a folder on the desktop
      • From: Wayne Melrose <email@hidden>
References: 
 >Re: Creating a folder on the desktop (From: Andrew Oliver <email@hidden>)

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