Re: System Events location specifier
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