Re: System Events location specifier
Re: System Events location specifier
- Subject: Re: System Events location specifier
- From: KOENIG Yvan <email@hidden>
- Date: Wed, 01 Feb 2012 21:31:50 +0100
Le 1 févr. 2012 à 19:46, Luther Fuller a écrit :
On Feb 1, 2012, at 11:18 AM, KOENIG Yvan wrote:
tell application "System Events" make new folder at end of folder (locRef as text) … end tell
I tried ...
tell application "System Events" make new folder at end of folder (locRef as text) with properties {name:"TEST_#"}
and it did work. It seems that the magic words "at end of folder" are necessary. Thanks!
at end is really an important thing.
After posting my answer I made some tests. Before them I was always coercing pathname to text and used them with the incantation folder theTextPath or disk item theTextPath. I tested with an alias as a replacement of folder theTextPath and surprise, it behaved flawlessly. I guess that I will drop some instructions in my scripts.
Yvan KOENIG (VALLAURIS, France) mercredi 1 février 2012 21:31:45
|
_______________________________________________
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