• 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: System Events location specifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events location specifier


  • Subject: Re: System Events location specifier
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 01 Feb 2012 17:57:17 -0600

On Feb 1, 2012, at 2:19 PM, Christopher Stone wrote:

On Feb 01, 2012, at 12:46, Luther Fuller wrote:
and it did work. It seems that the magic words "at end of folder" are necessary.
______________________________________________________________________

'At end of' is not necessary - just the 'folder' object specifier.

set _desktop to (path to desktop folder) as text
tell application "System Events"
make new folder at folder _desktop with properties {name:"JunkMe!"}
end tell

So, I tried that in 10.6.8 and all I got was ...
System Events got an error: Can't get folder " ... ".

What system version did you test with?

I also tried this ...

tell application "System Events"
make new folder at end of disk item _desktop with properties {name:"JunkMe!"}

and it worked, too. But not without at end of.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >System Events location specifier (From: Luther Fuller <email@hidden>)
 >Re: System Events location specifier (From: KOENIG Yvan <email@hidden>)
 >Re: System Events location specifier (From: Luther Fuller <email@hidden>)
 >Re: System Events location specifier (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Using Applescript to talk to other computers.
  • Next by Date: Re: Using Applescript to talk to other computers.
  • Previous by thread: Re: System Events location specifier
  • Next by thread: Re: System Events location specifier
  • Index(es):
    • Date
    • Thread